var divs = $("div");
var divs = document.querySelectorAll("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
| <!-- Summary is deprecated --> | |
| <div class="table-responsive"> | |
| <table id="tableid" aria-describedby="captionid"> | |
| <caption id="captionid" role="alert" aria-live="polite">[Data] sorted by [column header]</caption> | |
| <colgroup> | |
| <col /> | |
| <col /> | |
| </colgroup> | |
| <col /> | |
| <col /> |
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
| /* | |
| Quick fade on target to attract user attention | |
| http://snook.ca/archives/html_and_css/yellow-fade-technique-css-animations | |
| */ | |
| :target { | |
| -webkit-animation: target-fade 3s 1; | |
| -moz-animation: target-fade 3s 1; | |
| } | |
| @-webkit-keyframes target-fade { | |
| 0% { background-color: rgba(255,255,0,1); } |
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
| <cfscript> | |
| // place this in your Site or Theme eventHandler.cfc, then reload your application! | |
| public any function onApplicationLoad(mo) { | |
| arguments.$.getBean('contentUtility').findAndReplace( | |
| find='h2' | |
| , replace='h3' | |
| , siteid=arguments.$.event('siteid') | |
| ); | |
| } | |
| </cfscript> |
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
| <!--- Parse form fields of the same name as an array instead of a list, to avoid issues with commas | |
| more info: http://www.stillnetstudios.com/cf-form-array-comma-workaround/ | |
| ---> | |
| <cffunction name="FormFieldAsArray" returntype="array" output="false" hint="Returns a Form/URL variable as an array."> | |
| <cfargument name="fieldName" required="true" type="string" hint="Name of the Form or URL field" /> | |
| <cfset var tmpPartsArray = Form.getPartsArray() /> | |
| <cfset var returnArray = arrayNew(1) /> | |
| <cfset var tmpPart = 0 /> | |
| <cfset var tmpValueArray = "" > |
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
| <input type="date" name="inspectionStart" value="#Dateformat(somedate,"yyyy-mm-dd")#"> | |
| <script> | |
| $(document).ready(function () { | |
| // If a browser doesn't support HTML5 date input types, then load a backup/polyfill | |
| if(!Modernizr.inputtypes.date){ | |
| // Convert the format from the HTML5 dateformat of yyyy-mm-dd to mm/dd/yyyy | |
| $('input[type=date]').each(function(){ | |
| var thisdate=$(this).val(); |
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
| // CONVERT A STRING TO A VALID FILENAME | |
| function CreateFileName(string){ | |
| var str=Trim(string); | |
| // replace invalid filename characters: /\:*?"<>| and whitespaces with underscores | |
| str=ReReplace(str,"[*?\""]","","ALL"); | |
| str=ReReplace(str,"\s","_","ALL"); | |
| str=ReReplace(str,"[:<>|]","-","ALL"); | |
| str=Replace(str,"\","_-_","ALL"); | |
| str=Replace(str,"/","_-_","ALL"); | |
| // leading period is also invalid for MACs |
OlderNewer