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
.imgclass img{ | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
filter: grayscale(100%); | |
} | |
.imgclass img:hover{ | |
filter: grayscale(0%); | |
-webkit-filter: grayscale(0%); | |
-moz-filter: grayscale(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
<cfset application.pkey = "whateveryouwant"> | |
<cffunction name="epwd" output="no" access="remote"> | |
<cfargument name="pwd" required="yes"> | |
<cfset done = Encrypt(arguments.pwd,application.pkey,'AES/CBC/PKCS5Padding','HEX')> | |
<cfreturn done /> | |
</cffunction> | |
<cffunction name="dpwd" output="no"> | |
<cfargument name="pwd" required="yes"> | |
<cfset done = Decrypt(arguments.pwd,application.pkey,'AES/CBC/PKCS5Padding','HEX')> |
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
<cffunction name="convertBool" output="no"> | |
<cfargument name="str" required="yes"> | |
<cfif arguments.str eq "true"><cfreturn 1/></cfif> | |
<cfif arguments.str eq "yes"><cfreturn 1/></cfif> | |
<cfif arguments.str eq "on"><cfreturn 1/></cfif> | |
<cfif arguments.str eq "1"><cfreturn 1/></cfif> | |
<cfif arguments.str eq "false"><cfreturn 0/></cfif> | |
<cfif arguments.str eq "no"><cfreturn 0/></cfif> | |
<cfif arguments.str eq "off"><cfreturn 0/></cfif> |
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
//in Application.cfc | |
<cfset currentPath = "#cgi.request_url#"> | |
<cfif find("www.",currentPath)> | |
<cfheader statuscode="301" statustext="Moved permanently"> | |
<cfheader name="Location" value="http://domain.com"> | |
<cfabort> | |
</cfif> |
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 daysRemaining(date1,date2) { | |
var numDays = 0; | |
while (date1 LT date2) { | |
date1 = dateAdd("w",1,date1); | |
numDays = numDays + 1; | |
} | |
return numDays; | |
} | |
</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
<cfscript> | |
function timeAgoFormat(date){ | |
var interval = ""; | |
var offset = 0; | |
var result = 0; | |
var res = structNew(); | |
if (isDate(arguments.date)){ | |
var formattedDate = dateFormat(arguments.date, "ddd dd mmm yy"); | |
//& " at " & timeFormat(arguments.date, "HH:MM"); |