Get country from IP address with JavaScript

This uses the telize site to get a geolocation of an IP address. It's not 100% accurate but fine for country-level location, which is all I wanted. <script type="application/javascript"> function getgeoip(json){ //document.write("Geolocation information for IP address : ", json.ip); //document.write("Country : ", json.country); //document.write("Latitude : ", json.latitude); //document.write("Longitude : ", json.longitude); //document.write("Country: " + json.country);... Continue Reading →

Set a SCORM completion in Storyline using javascript

Run this as a 'run JavaScript' in Storyline and you're done-burgers. Storyline 360 (20.03.2018) function findLMSAPI(win) { if (win.hasOwnProperty("GetStudentID")) return win; else if (win.parent == win) return null; else return findLMSAPI(win.parent); } var lmsAPI = findLMSAPI(this); //set score; the first number is the score lmsAPI.SetScore(100, 100, 0); //set status; possible values: "completed","incomplete", "failed", "passed" lmsAPI.SetReachedEnd();... Continue Reading →

Find duplicates across columns in Excel

=ISNUMBER(MATCH(A1,B$1:B$20,FALSE)) will return TRUE if the name in A1 is in the range B1:B20. Enter it in say C1 and copy down as far as necessary. If you AutoFilter the data for column C = TRUE you will see which rows to delete. src: http://www.mrexcel.com/forum/excel-questions/55208-identify-duplicates-between-2-columns.html

Refer to an object on the Captivate stage

using widgetfactory, you can access captivate items on the stage - and if you can do that, you can do ANYTHING with ANYTHING - very exciting! override protected function enterRuntime():void { var mc:MovieClip = getSlideObjectByName("item"); mc.addEventListener(Event.ENTER_FRAME, function() {mc.rotation++}); } src:http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/

Captivate 6/7 recording size for 1024×768

For a popup window, with resizing enabled but no scrolling etc., popping up in a windows XP resolution of 1024x768, maximum recording size is: 1012x636. ------------ NEWSFLASH! 28.11.2014 with updated browsers forcing an address bar and the rest, new size: 1009x632 you can pop up the simulations with this js: window.open('try it.htm','simulation','scrollbars=0,width=1005,height=658,toolbar=0,menubar=0,location=0,status=0,resizeable=1'); The size is... Continue Reading →

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑