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
<script> | |
$("#myParagraph").footnote().css("background-color", "yellow"); | |
</script> |
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
(function ($) { | |
$.fn.footnote = function () { | |
console.log("footnote"); | |
var footnotes = this.find("span.footnote"); | |
footnotes.css("color", "red"); | |
return footnotes; | |
}; | |
}(jQuery)); |
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
(function ( $ ) { | |
// use $ in your code as the jQuery alias here | |
}( jQuery )); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Footnoter</title> | |
</head> | |
<body> | |
<p id="myParagraph"> | |
In up so discovery my middleton eagerness dejection explained. Estimating excellence ye contrasted | |
insensible as. Oh up unsatiable <span class="footnote">Unpacked reserved sir.</span> interested. | |
Present suppose in esteems indemesne colonel it to. End horrible she landlord screened stanhill. |
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
$.fn.greenify = function() { | |
this.css( "color", "green" ); | |
}; | |
$( "a" ).greenify(); // Makes all the links green. | |
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
<div style="border: 1px solid orange"> | |
<span style="width: 300px; margin-left: 100px; padding: 3px 3px 3px 3px; | |
background-color: lightgreen">Now is the time for all good men to come to the aid of their country. The quick fox jumped over the lazy dog.</span> | |
<span style="width: 300px; margin-left: 100px; padding: 3px 3px 3px 3px; | |
background-color: lightgreen">Now is the time for all good men to come to the aid of their country. The quick fox jumped over the lazy dog.</span> | |
</div> |
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
* { | |
border: 1px solid red !important; | |
} |
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
<div style="width: 300px; border: 1px solid blue"> | |
<div style="position: absolute; | |
background-color: powderblue;">hello</div> | |
</div> | |
<div style="position: relative;"> </div> | |
<div style="width: 300px; border: 1px solid red"> | |
<div style="position: absolute; | |
background-color: lightgoldenrodyellow">hello there</div> | |
</div> | |
<div style="position: relative;"> </div> |
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
<div style="width: 300px; background-color: azure; border: 1px solid blue"> | |
<div style="padding: 20px; background-color: lightgoldenrodyellow">This box has a padding of 20 pixels. Now is the time for all good men to come to the aid of their country. The quick fox jumped over the road.</div> | |
<div></div> | |
<div style="padding: 20px; width: 100%; background-color: lightcoral">This box has a padding of 20 pixels and a width of 100%. Now is the time for all good men to come to the aid of their country. The quick fox jumped over the road.</div> | |
</div> |
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
<caching> | |
<outputCache defaultProvider="MyRedisOutputCache"> | |
<providers> | |
<add name="MyRedisOutputCache" | |
host = "127.0.0.1" [String] | |
port = "" [number] | |
accessKey = "" [String] | |
ssl = "false" [true|false] | |
databaseId = "0" [number] | |
applicationName = "" [String] |