1Fox = {}; 2 3Fox.Strings = { 4 add: function (object) 5 { 6 jQuery.extend(this, object); 7 return this; 8 } 9}; 10 11Fox.Options = { 12 // Fox.Options.add('key', {...}); 13 add: function (key, data) 14 { 15 var o = {}; 16 o[key] = data; 17 jQuery.extend(this, o); 18 return this; 19 }, 20 21 // Return by copy: Fox.Options.get('key'); 22 // Return by reference: Fox.Options['key']; 23 get: function (key) 24 { 25 return jQuery.extend({}, this[key]); 26 } 27}; 28 29 30(function () 31{ 32 Fox.Strings.add( 33 { 34 JCANCEL: "Annuler", 35 COM_FOXCONTACT_BROWSE_FILES: "Explorer les fichiers", 36 COM_FOXCONTACT_FAILED: "Ãchec", 37 COM_FOXCONTACT_SUCCESS: "Succès", 38 COM_FOXCONTACT_NO_RESULTS_MATCH: "Il n'y aucun résultat", 39 COM_FOXCONTACT_MISSING_JQUERY: "Can't find jQuery framework, Fox Contact will not work properly.", 40 COM_FOXCONTACT_READ_MORE: "Lire la suite...", 41 COM_FOXCONTACT_REMOVE_ALT: "Supprimer", 42 JURI_ROOT: "" 43 } 44 ); 45 46 Date.monthNames = ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"]; 47 Date.dayNames = ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"]; 48 Date.monthNumbers = { 49 "janvier": 0, 50 "février": 1, 51 "mars": 2, 52 "avril": 3, 53 "mai": 4, 54 "juin": 5, 55 "juillet": 6, 56 "août": 7, 57 "septembre": 8, 58 "octobre": 9, 59 "novembre": 10, 60 "décembre": 11 61 }; 62 63 // Calendar default options 64 Fox.Options.add('calendar', { 65 dayOfWeekStart: JSON.parse("1"), 66 lang: 'dynamic', 67 i18n: { 68 dynamic: { 69 months: Date.monthNames, 70 dayOfWeek: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"] 71 } 72 } 73 }); 74 75})(); 76 77 78jQuery(document).ready(function ($) 79{ 80 $('.fox-item-captcha-img-reload').each(function () 81 { 82 $(this).click(function () 83 { 84 var image = document.getElementById($(this).attr("data-captcha-img")); 85 86 // Generates a unique id with an 8 digits fixed length 87 var uniqueid = Math.floor(Math.random() * Math.pow(10, 8)).toString(); 88 while (uniqueid.length < 8) 89 { 90 uniqueid = '0' + uniqueid; 91 } 92 93 // Update the image src 94 image.src = image.src 95 .replace(/uniqueid=[0-9]{8}/, "uniqueid=" + uniqueid) // non SEF case 96 .replace(/uniqueid\/[0-9]{8}/, "uniqueid/" + uniqueid) // SEF case 97 ; 98 }).show(); 99 }); 100}); 101 102 103/* Enable the following function if you want to enable autofocus to the first input of the first form in the page */ 104/* 105 jQuery(document).ready(function ($) 106 { 107 $('.fox-form').find('input[type=text]').filter(':visible:first').focus(); 108 }); 109 */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.