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 prefix = (function () { | |
| var styles = window.getComputedStyle(document.documentElement, ''), | |
| pre = (Array.prototype.slice | |
| .call(styles) | |
| .join('') | |
| .match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o']) | |
| )[1]; | |
| return { | |
| dom: pre == 'ms' ? 'MS' : pre, | |
| lowercase: pre, |
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
| (function(){ | |
| var standing = '../src/images/mario-standing.png'; | |
| var marioImg = new Image(); | |
| marioImg.src = '../src/images/mario-jumping.png'; //preload the jumping image | |
| xtag.register('x-mario', { | |
| lifecycle: { | |
| created: function(){ | |
| this.xtag.isSuper = this.superMario; |
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
| function(){ | |
| if (tag.shadow && this.createShadowRoot) { | |
| var root = this.createShadowRoot(); | |
| root.appendChild(xtag.createFragment(tag.shadow)); | |
| if (CustomElements && !CustomElements.hasNative) { | |
| Platform.ShadowCSS.shimStyles(tag.tagName, root); | |
| } | |
| } | |
| } |
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
| "I was cautioning folks about email and how we have had several occasions where Congress has asked for emails and there has been an electronic search for responsive emails--so we need to be cautious about what we say in emails." |
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
| /*** General Example ***/ | |
| var googleSearch = new ServiceRequest('www.google.com', { | |
| type: 'search', | |
| context: 'general', // no context defaults to a 'general' search | |
| parameters: { | |
| query: 'origin of wolverine', | |
| skip: 0, | |
| take: 10 | |
| } |
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
| { | |
| "search": { | |
| "url": "http://www.target.com/api/search", | |
| "cache": 600000 | |
| } | |
| } |
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 fragment = xtag.createFragment(function(){/* | |
| <dl> | |
| <dt></dt> | |
| <dd></dd> | |
| </dl> | |
| */}); | |
| xtags.pseudo.once = { | |
| onCompiled: function(fn){ |
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
| // Assume the following template: | |
| /* | |
| <template id="list_template"> | |
| <a> | |
| <h2 class="title"></h2> | |
| </a> | |
| <ul></ul> | |
| </template> | |
| */ |
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 worker = new TransactionWorker({ | |
| credentials: [{}, {}, {}], | |
| remotes: ['https://foo.com', 'https://bar.com'], | |
| lifecycle: { | |
| test: function(){ | |
| }, | |
| success: function(){ |
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 matches = [], | |
| valueFlag = 0; | |
| key.replace(/\(|\)/g, function(match){ | |
| if (match == '(') return ++valueFlag == 1 ? '\u276A' : '('; | |
| return !--valueFlag ? '\u276B' : ')'; | |
| }).replace(/:((\w+)\u276A(\S+?)\u276B)|:([\w-]+)/g, function(z, zz, name, value, solo){ | |
| matches.push([name || solo, value]); | |
| }); |
OlderNewer