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
/*! | |
* Pikaday | |
* | |
* Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday | |
*/ | |
(function (root, factory) | |
{ | |
'use strict'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Pikaday - jQuery + Date.js Example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<link rel="stylesheet" href="https://dbushell.github.io/Pikaday/css/pikaday.css"> | |
<script src="https://dbushell.github.io/Pikaday/pikaday.js"></script> | |
<script src="https://dbushell.github.io/Pikaday/plugins/pikaday.jquery.js"></script> |
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> | |
function isCyrillic(input){ | |
return javaCast("string", input).matches("(.*)[\u0400-\u04FF](.*)"); | |
/* Prior method that was used. Slower. | |
return createObject("java", "java.util.regex.Pattern").compile(javaCast("string", "[\u0400-\u04FF]")).matcher(javaCast("string", input)).find(); | |
*/ | |
} | |
</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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>CFLoop Test - CFScript versus CFML</title> | |
</head> | |
<body> | |
<h1>CFLoop Test - CFScript versus CFML</h1> | |
<cfset testresults = arraynew(2)> | |
<cfset myarray = arraynew(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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>clickDiv</title> | |
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script> | |
<script> | |
$(function(){ | |
if ($('.clickDiv').has('a').length){ | |
$('.clickDiv').has('a').css('cursor','pointer'); | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js" type="text/javascript"></script> | |
<title>ColdFusion isDate, DateFormat, LSDateFormat & Date.JS Test</title> | |
</head> | |
<body> | |
<h1>ColdFusion isDate, DateFormat, LSDateFormat & Date.JS Test</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
<!--- Reported July 2013. Marked by Adobe as "NotWorthEffort". | |
Try it here http://www.trycf.com/gist/7989967 | |
Railo.Lucee both function correctly. Adobe ColdFusion 10.0.15 does not. | |
---> | |
<h1>Trim() Adds Doubles Apostrophes in CFQuery</h1> | |
<p><a href="https://bugbase.adobe.com/index.cfm?event=bug&id=3585643" target="_blank">https://bugbase.adobe.com/index.cfm?event=bug&id=3585643</a></p> | |
<p>Please test this code using your ColdFusion server or <a href="http://cflive.net/" target="_blank">CFLive (CF & Railo)</a> | |
or <a href="http://www.trycf.com/scratch-pad/gist/7989967" target="_blank">TryCF.com</a></p> |
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.validator.addMethod("taxid", function(value, element) { | |
return this.optional(element) || /^(\d{3})-?\d{2}-?\d{4}$/i.test(value) || /^(\d{2})-?\d{7}$/i.test(value) | |
}, "Invalid Tax ID"); |
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 like LastPass, but the input field styling on repetitive admin forms is distracting and unnecessary. | |
// This resets the background image, padding and hides the inset LastPass button. (No visible button, but still clickable.) | |
// <input type="password" name="Password" class="noLastPassStyle"> | |
input.noLastPassStyle { | |
background-image:none !important; | |
background-attachment:none !important; | |
padding-right:0 !important; | |
border:1px solid #ABADB3 !important; | |
} |
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
<cfif thisTag.executionMode neq "start"><cfexit method="exitTag"></cfif><cfsetting enablecfoutputonly="YES"> | |
<!--- Server-based optimization technologies (like Google PageSpeed) may minify | |
or rewrite the HTML/JS/CSS and break CFDump's output. | |
Defaults for optional attributes, taken from the docs | |
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_d-e_08.html ---> | |
<cfparam name="attributes.var" default=""> | |
<cfparam name="attributes.output" default="browser"> | |
<cfparam name="attributes.format" default="html"> | |
<cfparam name="attributes.abort" default="false"> | |
<cfparam name="attributes.label" default=""> |