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
| $(document).ready(function() { | |
| /*#### | |
| Load in script only when a DOM element exists. | |
| Use callback function to run | |
| ####*/ | |
| Modernizr.addTest('foo', $('.bar').length > 0); | |
| Modernizr.load({ |
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
| if (!vwo_$('#newUniqeIdentifier').length) { | |
| // Do your vwo_$ stuff here | |
| // vwo_$('<h1>Foo</h1>').replaceWith( '<h1 id="newUniqeIdentifier">Bar</h1>' ); | |
| } |
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
| // Get discount code in Eventbee widget | |
| var eventID = ''; //Set your event ID here | |
| //Function to get the code from the browser url | |
| function getParameterByName(name) | |
| { | |
| name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
| var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
| var regex = new RegExp(regexS); | |
| var results = regex.exec(window.location.search); |
NewerOlder