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
$(document).ready(function() { | |
$(document).on('click', "[href='#email-me-quote']", function(e) { | |
e.preventDefault(); | |
}); | |
}); |
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
<?php | |
// our provided uri | |
$uri = "https://services.codeweavers.net/public/v2/stock"; | |
// build the JSON array | |
$data = array( | |
"Credentials" => array( | |
"username" => "kurts dealer", | |
"password" => "kh" | |
), |
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
document.getElementById("call-to-action").onclick = function() | |
{ | |
setCookie('financeMileage', document.getElementById('finance_mileage').value, 3); | |
setCookie('financeDeposit', document.getElementById('finance_deposit').value, 3); | |
setCookie('financeTerm', document.getElementById('finance_term').value, 3); | |
}; | |
function setCookie(name, value, expiryInDays) | |
{ | |
var today = new Date(); |
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
/* Quote with Two payments */ | |
"Payments":[ | |
{ | |
"Amount":255.94, | |
"NumberOfPayments":29 | |
}, | |
{ | |
"Amount":400.94, | |
"NumberOfPayments":1 | |
} |
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
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>Json Payment Search</title> | |
<script src="<%= Url.Content("~/Scripts/jquery-1.4.2.min.js") %>" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var request = { |
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
technicalSpecification: { | |
manufacturer: 'BMW', | |
description: '3 Series Diesel Touring 316d Sport 5dr', | |
model: '3 Series', | |
variant: 'Diesel Touring', | |
derivative: '316d Sport 5dr', | |
bodyStyle: 'hatchback', | |
colour: 'Mahogany', | |
doors: 5, | |
transmission: 'manual', |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://services.codeweavers.net/v2/script/FinancePlugin?key=YOUR_API_KEY_HERE"></script> | |
<script type='text/javascript'> | |
function loadPlugin() { | |
codeweavers.main({ | |
pluginContentDivId: 'PLUGIN_DIV_ID', | |
vehicle: { | |
type: 'car', |
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
formValues: { | |
emailAddress: 'cwtest@codeweavers.net', | |
title: 'Mr', | |
forename: 'Code', | |
surname: 'Weaver' | |
} |
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
{ | |
formValues: { }, | |
onSuccess: function (message) { }, | |
onError: function (message) { } | |
} |
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
<div class="cw-plugin"> | |
<div id="cw-vehicle-injection"></div> | |
<div id="cw-finance-options"> | |
<div id="cw-form-container" class="cw-finance-options clearfix"> | |
<div class="cw-calculation-form-row"> | |
<label for="cw-annual-mileage">Expected Annual Mileage</label> | |
<select id="cw-annual-mileage" class="cw-element"> | |
<option selected="selected" value="10000">10000</option> | |
<option value="11000">11000</option> | |
</select> |