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
jQuery(document).ready(function($) | |
{ | |
var tableau_photo = ['image1.jpg', 'image2.jpg', ...]; | |
var indexTrairementImg; | |
function commencer() | |
{ | |
indexTrairementImg = 0; | |
traitement_image(tableauDimage[indexTrairementImg]); | |
} |
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
function restartGif(img) { | |
var gifUrl = img.src; | |
img.src = "blank.png"; | |
img.onload = function() { | |
img.src = gifUrl; | |
} | |
} |
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
<link href="css/styles.less" media="all" rel="stylesheet" type="text/css" /> | |
<script src="js/less-1.3.3.min.js" type="text/javascript"></script> | |
<div id="onlytome_widget"> | |
<div id="intro"> | |
<div class="accroche">Accédez à votre profil publicitaire</div> |
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
// KnockoutModels | |
var viewModel = function (){ | |
this.userSelection = ko.observableArray([]); | |
this.categories = ko.observableArray( | |
[ | |
{ col_off_hover: "#BAD9CD", col_on: "#1A805A", col_on_hover: "#156648", id: 1, name: "Alimentation", ico: "A" }, | |
{ col_off_hover: "#FBC3D2", col_on: "#F2386B", col_on_hover: "#D9325E", id: 2, name: "Animaux de compagnie", ico: "B" }, | |
{ col_off_hover: "#CDE0E5", col_on: "#5899A9", col_on_hover: "#377D8E", id: 3, name: "Auto moto", ico: "C" }, | |
//col_off_hover: "#", col_on: "#", col_on_hover: "#", { id: 4, name: "Business", ico: "" }, |
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
// congifuration LESScss | |
less = { | |
env: "development", // or "production" | |
async: false, // load imports async | |
fileAsync: false, // load imports async when in a page under | |
// a file protocol | |
poll: 1000, // when in watch mode, time in ms between polls | |
functions: {}, // user functions, keyed by name | |
dumpLineNumbers: "comments", // or "mediaQuery" or "all" | |
relativeUrls: false,// whether to adjust url's to be relative |
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
// KnockoutModels | |
var viewModel = { | |
self: this, | |
userSelection: ko.observableArray([] | |
), | |
categories: ko.observableArray( | |
[ | |
{ col_off_hover: "#BAD9CD", col_on: "#1A805A", col_on_hover: "#156648", id: 1, name: "Alimentation", ico: "A" }, |
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
var FourColors = function(inactive, inactiveHover, active, activeHover) { | |
this.inactive = inactive; | |
this.inactiveHover = inactiveHover; | |
this.active = active ; | |
this.activeHover = activeHover; | |
} | |
var Category = function(id, name, icon, colors) { | |
this.id = id; | |
this.name = name; |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
/*$(".nice-list-head").click(function(){ | |
$(".nice-list-head", this).toggle(); | |
});*/ | |
$(".nice-list-toogler").click(function(){ | |
var parent = $(this).parent(); | |
var target; | |
$(".nice-list-selection", parent).toggle(); | |
target.toggle(); |
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
function changecss(myclass,element,value) { | |
var CSSRules; | |
if (document.all) { | |
CSSRules = 'rules' | |
} | |
else if (document.getElementById) { | |
CSSRules = 'cssRules' | |
} | |
for (var i = 0; i < document.styleSheets[0][CSSRules].length; i++) { | |
if (document.styleSheets[0][CSSRules][i].selectorText == myclass) { |
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
App.factory('AuthService', function($http) { | |
return $http({ | |
method: 'POST', | |
url: AUTHEN_BASE_URL, | |
data: AUTHEN_PARAMS, | |
headers: {'Content-Type': 'application/x-www-form-urlencoded'} | |
}) | |
.then( | |
function success(response) { | |
$http.defaults.headers.common['X-EZ-USER'] = '[email protected]'; |
OlderNewer