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
| .slider { | |
| /* set initial width */ | |
| width: 520px; | |
| /* hide the content that overflows (to allow second box to show through) */ | |
| overflow: hidden; | |
| display: inline-block; | |
| /* skew container so that it has angled edge, and set up transition */ | |
| transform: skewX(-20deg); |
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
| /* | |
| Include Client API | |
| */ | |
| <script src="https://api.trello.com/1/client.js?key=<api key>"></script> | |
| <script> | |
| var getListCards = function(){ | |
| /* | |
| Note to get the List ID use Trello Sandbox examples to first get the relavent Board ID then in turn use this to get the relavent List ID (https://developers.trello.com/sandbox) | |
| */ | |
| Trello.get('/lists/<Card ID>/cards?fields=all&cards=open&card_fields=all&members=true', |
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
| .feature-table { | |
| width:600px; | |
| } | |
| .feature-desc { | |
| } | |
| .feature-image { |
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
| table { border-collapse:collapse; } |
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
| /* | |
| jQuery Plugin Boilerplate | |
| Thanks to http://stackoverflow.com/a/22976877/417933 | |
| */ | |
| (function($) { | |
| var CustomPlugin = function($el, options) { |
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 | |
| styleSheets = document.styleSheets, | |
| totalStyleSheets = styleSheets.length; | |
| for (var j = 0; j < totalStyleSheets; j++){ | |
| var | |
| styleSheet = styleSheets[j], | |
| rules = styleSheet.cssRules, | |
| totalRulesInStylesheet = rules.length, | |
| totalSelectorsInStylesheet = 0; |
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 the DOM is already ready | |
| if ( jQuery.isReady ) { | |
| // Execute the function immediately | |
| fn.call( document, jQuery ); | |
| } // ... | |
| function myClickHandler(event) { | |
| // do stuff | |
| $(document).ready(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
| <div class="container"> | |
| <div class="message">red</div> | |
| <div style="3000px;color:#fff">adawdawdawd</div> | |
| awdawd | |
| ad | |
| adawdawda | |
| </div> | |
| <div class="foo">Foobar</div> |
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
| // source: http://stackoverflow.com/a/4399718/417933 | |
| function getTextNodesIn(node, includeWhitespaceNodes) { | |
| var textNodes = [], nonWhitespaceMatcher = /\S/; | |
| function getTextNodes(node) { | |
| if (node.nodeType == 3) { | |
| if (includeWhitespaceNodes || nonWhitespaceMatcher.test(node.nodeValue)) { | |
| textNodes.push(node); | |
| } | |
| } else { |
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
| #* BOOTSTRAP 2.3.2 LANGUAGE SELECTOR | |
| I've found this doesnt work consistently in LR 6.1 GA2 also it prefixes the text with 'Beta' for some unknown reason | |
| $taglibLiferay.language("fm",null,"languageId",1) | |
| *# | |
| <div class="dropdown"> | |
| <a class="dropdown-toggle" id="language-selector" role="button" data-toggle="dropdown" href="#"> | |
| <strong>#*$locale.getDisplayName()*#$locale.getLanguage().toUpperCase() ($locale.getCountry().toUpperCase())</strong> | |
| <i class="-icon-caret-down"></i> | |
| </a> |
NewerOlder