This file contains 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
/* | |
* Implements 'onenter' event for `events` object in Backbone.View. | |
* Author: Emil Stenqvist <[email protected]> | |
*/ | |
(function(global) { | |
var Backbone = global.Backbone; | |
if(!Backbone) throw "this shim needs Backbone"; | |
var delegateEvents = Backbone.View.prototype.delegateEvents; |
This file contains 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
/* | |
* pickAll: tiny underscore extension by @svammel | |
* | |
* Example: | |
* | |
* var users = [ | |
* { "user": "john", "email": "[email protected]", "url": "www.john.com" }, | |
* { "user": "pete", "email": "[email protected]", "url": "www.pete.com" } | |
* ]; | |
* |
This file contains 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
<script src="//diu127fbe6pn6.cloudfront.net/shootitlive.load.v1.js?project=13&client=greenfield" async></script> |
This file contains 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 parseQueryString = function(url) { | |
var a = document.createElement('a'); | |
a.href = url; | |
str = a.search.replace(/\?/, ''); | |
return deparam(str, true /* coerce values, eg. 'false' into false */); | |
}; | |
// And in the script tags loop | |
var info = parseQueryString(el.src); |
This file contains 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
(function(global) { | |
// Globals | |
if(!global.Silp) { global.Silp = {}; }; | |
var Silp = global.Silp; | |
// To keep track of which embeds we have already processed | |
if(!Silp.foundEls) Silp.foundEls = []; | |
var foundEls = Silp.foundEls; | |
var els = document.getElementsByTagName('script'); |
This file contains 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
<script> | |
var s = document.createElement('script'); | |
s.src = "//awesome-service.com/init.js"; | |
s.async = true; | |
// This global is picked up by init.js whenever it loads | |
window.awesome_options = { project: 13, client: 'greenfield' }; | |
document.body.appendChild(s); | |
</script> |
This file contains 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
<script src="//awesome-service.com/init.js"></script> | |
<script> | |
awesomeInit({ | |
// Parameters | |
project: 13, client: 'greenfield' | |
}); | |
</script> |
This file contains 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
<script src="//diu127fbe6pn6.cloudfront.net/shootitlive.load.v1.js?project=13&client=greenfield" async></script> |
This file contains 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
<script>42</script> |
This file contains 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
<div id="abc319dhaj"></div> | |
<script> | |
(function() { | |
var s = document.createElement('script'); | |
s.src = '//s3-eu-west-1.amazonaws.com/silp.shootitlive.com/master/silp.js'; | |
s.async = true; | |
window.silp_options = (window.silp_options || []).concat([ { project: 13, client: 'greenfield', element_id: 'abc319dhaj' }]; | |
document.body.appendChild(s); | |
}()); | |
</script> |