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> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| document.write('Your browser complies with my needs... '); |
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
| <!-- | |
| add to web.config | |
| several options available | |
| reference (note there are additional references on this page): | |
| http://stackoverflow.com/questions/6156639/x-ua-compatible-is-set-to-ie-edge-but-it-still-doesnt-stop-compatibility-mode | |
| --> | |
| <system.webServer> | |
| <httpProtocol> | |
| <customHeaders> |
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
| // Credits to : http://blog.smalldo.gs/2011/09/jquery-load-check/ | |
| // check if jquery is loaded from a browser console | |
| if (jQuery) | |
| console.dir("jQuery "+$().jquery +" loaded"); | |
| else | |
| console.dir("jQuery NOT loaded"); | |
| if($.ui) | |
| console.dir("jQuery UI "+$.ui.version+" loaded"); |
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
| public long GetEpochTime() { | |
| DateTime dtCurTime = DateTime.Now; | |
| DateTime dtEpochStartTime = Convert.ToDateTime("1/1/1970 8:00:00 AM"); | |
| TimeSpan ts = dtCurTime.Subtract(dtEpochStartTime); | |
| long epochtime; | |
| epochtime = ((((((ts.Days * 24) + ts.Hours) * 60) + ts.Minutes) * 60) + ts.Seconds); | |
| return epochtime; | |
| } |
NewerOlder