This file contains 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 auto_refresh = setInterval( | |
function () { | |
$('#voteListing ul').load('/home/listing').fadeIn("slow"); | |
}, 10000); // refresh every 10000 milliseconds |
This file contains 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
int value = (nullableValue.HasValue) ? nullableValue.Value : 0 ; |
This file contains 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
/** iOS button notification | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
min-height:100%; | |
font-family: Verdana,sans-serif; | |
} | |
.notificationCont { | |
position: relative; |
This file contains 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 spinner; | |
function FireSpinner() { | |
var opts = { | |
lines: 12, // The number of lines to draw | |
length: 12, // The length of each line | |
width: 7, // The line thickness | |
radius: 23, // The radius of the inner circle | |
color: '#fff', // #rgb or #rrggbb | |
speed: 1, // Rounds per second |
This file contains 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="search"] { | |
-webkit-appearance: textfield; | |
} | |
input[type="search"]::-webkit-search-decoration, | |
input[type="search"]::-webkit-search-cancel-button, | |
input[type="search"]::-webkit-search-results-button, | |
input[type="search"]::-webkit-search-results-decoration { | |
display: none; | |
} |
This file contains 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 ModuleName = { | |
init: function () { | |
this.cacheElements(); | |
this.bindEvents(); | |
}, | |
cacheElements: function () { | |
this.$elementName = $('#element'); | |
}, | |
bindEvents: function () { | |
this.$elementName.on('click', this.methodName) |
This file contains 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
[DisplayFormat(ApplyFormatInEditMode = true,DataFormatString = "{0:HH:mm}")] | |
[RegularExpression(@"^(?:0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$", ErrorMessage = "Invalid time.")] | |
public DateTime? YourDateTime { get; set; } |
This file contains 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> | |
@{ | |
int Count = 0; | |
} | |
@foreach (var item in Model) | |
{ | |
<tr data-row="@Count"> | |
<td></td> | |
<td></td> | |
<td></td> |
This file contains 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 App = ( function () { | |
return { | |
init: function() { | |
this.cacheElements(); | |
this.bindEvents(); | |
}, | |
cacheElements: function() { | |
this.$myid = $('#myid'); | |
}, | |
bindEvents: function() { |
This file contains 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
<h1>Heading 1</h1> | |
<h2>Heading 2</h2> | |
<h3>Heading 3</h3> | |
<h4>Heading 4</h4> | |
<h5>Heading 5</h5> | |
<p>Lorem ipsum dolor sit amet, <strong>bold</strong> adipiscing elit. Nunc molestie ipsum sit amet sem. Praesent dictum malesuada metus. Mauris pharetra ligula <strong>strong</strong> eget erat. Vestibulum ante <em>italic</em> ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur ultrices. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">link</a> ultrices posuere cubilia Curae; Praesent convallis dolor ut dui. Phasellus justo arcu, dignissim ac, sodales ac, sagittis in, leo. Sed volutpat, urna ut eleifend elementum, sem est gravida nisl, sit amet venenatis ante turpis vel augue. Fusce placerat pulvinar risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer nec quam a libero commodo blandit. Vivamus nibh velit, gravida sit amet, pretium ut, blandit vel, turpis. Aenean non odio. Vivamus enim. Cras <u>underline</u> sodales vu |
OlderNewer