// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Worker Polyfill</title> | |
| <script src="polyfill.worker.js"></script> | |
| </head> | |
| <body> | |
| <h1>Worker Polyfill</h1> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Callback functions | |
| //built-in callback functions | |
| //setTimeout, Arr.forEach, geolocation.getCurrentPosition | |
| //make your own callback functions | |
| //setTimeout( hello, 2000, 'Bob') | |
| let names = ['Inga','Tom','Mattias','Carlos']; | |
| names.forEach(hello); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var checkLinker = function(str) { | |
| // First browser fingerprint method. | |
| // Uses the clientId / gid string, user agent, time, and browser plugin descriptions. | |
| var joiner = function (cidGid, offset) { | |
| var a = new Date, | |
| b = window.navigator, | |
| c = b.plugins || []; | |
| var d = [cidGid, b.userAgent, a.getTimezoneOffset(), a.getYear(), a.getDate(), a.getHours(), a.getMinutes() + offset]; | |
| for (var e = 0; e < c.length; ++e) { |