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 class="validation-summary"> | |
<div class="validation-summary__content-container"> | |
<p class="validation-summary__title">Please double-check the form for the following errors</p> | |
<ol class="validation-summary__list"> | |
<li class="validation-summary__error"> | |
<a href="#interest_rate-errors">Based on 25 year repayment mortgage at: must be a number</a> | |
</li> | |
<li class="validation-summary__error"> | |
<a href="#annual_income-errors">Annual income must be a number</a> |
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
{ | |
errors: [ | |
{ | |
inputs: ['user_email'], | |
error_number: 1, | |
error_message: "Please provide a valid email address" | |
}, | |
{ | |
inputs: ['user_password', 'user_password_confirm'], | |
error_number: 2, |
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
<!-- | |
The main thing to note here is the data-dough-collapsable-trigger="1" and data-dough-collapsable-target="1" | |
This is how the trigger and target correspond to each other. | |
You can set the value to anything you like, it just need to match the trigger and target. We have just used "1" in this example. | |
--> | |
<p class="hidden-for-print collapsable__trigger" data-dough-component="Collapsable" data-dough-collapsable-trigger="1"> | |
This is the text for the show/hide trigger link (it will be converted to a link by the Javascript) | |
</p> |
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
<html><head></head></html> |
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
test |
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
contents |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
if (swfobject.hasFlashPlayerVersion("8.0.0")) { | |
// insert the chromeless player with custom controls and skinning | |
alert('you have flash, so getting the chromeless/skinned player'); | |
// Lets Flash from another domain call JavaScript | |
var params = { allowScriptAccess: "always" }; | |
// The element id of the Flash embed | |
var atts = { id: "ytPlayer" }; | |
// All of the magic handled by SWFObject (http://code.google.com/p/swfobject/) | |
swfobject.embedSWF("http://www.youtube.com/apiplayer?" + |
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 sillyWords = ["incredible", "awesome", "amazing", "fantastic"]; | |
$('button#start').click(function() { | |
var button = $(this).attr('disabled', 'disabled'); | |
$.get('endpoint/data.html #target', function(data) { | |
// do something amazing with the data | |
if (data) { | |
// fetch word | |
var word = sillyWords[Math.floor(Math.random() * sillyWords.length)]; |
OlderNewer