Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/123click/assets/ |
Upload File : |
home/verseaumee/123click/contacts/js/main.min.js 0000604 00000010113 15075003564 0015443 0 ustar 00 'use strict'
$(document).ready(function () { var colors = ["#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B", "#1B1B1B"]; var rand = Math.floor(Math.random() * colors.length); $('body').css("background-color", colors[rand]); $(".color-tool li a").on("click", function () { var colr = $(this).data("color"); $("body").css("background", colr); }); (function () { function SVGInput(el, options) { this.el = el; this.inputEl = this.el.querySelector('input'); this.init(); } SVGInput.prototype.init = function () { this.shapeEl = this.el.querySelector('span.morph-shape'); var s = Snap(this.shapeEl.querySelector('svg')); this.pathEl = s.select('path'); this.paths = { reset: this.pathEl.attr('d'), active: this.shapeEl.getAttribute('data-morph-active') }; this.initEvents(); }; SVGInput.prototype.initEvents = function () { if (this.inputEl.type === 'checkbox' || this.inputEl.type === 'radio') { this.el.addEventListener('mousedown', this.down.bind(this)); this.el.addEventListener('touchstart', this.down.bind(this)); this.el.addEventListener('mouseup', this.up.bind(this)); this.el.addEventListener('touchend', this.up.bind(this)); this.el.addEventListener('mouseout', this.up.bind(this)); } else { this.el.addEventListener('click', this.toggle.bind(this)); } }; SVGInput.prototype.down = function () { this.pathEl.stop().animate({ 'path': this.paths.active }, 150, mina.easein); }; SVGInput.prototype.up = function () { this.pathEl.stop().animate({ 'path': this.paths.reset }, 1000, mina.elastic); }; SVGInput.prototype.toggle = function () { var self = this; this.pathEl.stop().animate({ 'path': this.paths.active }, 200, mina.easein, function () { self.pathEl.stop().animate({ 'path': self.paths.reset }, 600, mina.elastic); }); };[].slice.call(document.querySelectorAll('.input-wrap')).forEach(function (el) { new SVGInput(el); }); })(); }); var name, picture, l_picture, email, phone, user_name, state; var contactList = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace(tags), queryTokenizer: Bloodhound.tokenizers.whitespace, minLength: 1, prefetch: { url: 'data/contacts_2.json', transform: function (response) { return $.map(response, function (tag) { return { name: tag.name.first + " " + tag.name.last, picture: tag.picture.thumbnail, l_picture: tag.picture.large, email: tag.email, phone: tag.phone, user_name: tag.login.username, state: tag.location.state + ", " + tag.nat } }); }, cache: false, ttl: 3600000, }, }); $('.typeahead').typeahead(null, { name: 'name', display: 'name', source: contactList, templates: { empty: ['<div class="empty-message">', 'Opération non disponible dans votre région.', '</div>'].join(''), suggestion: Handlebars.compile('<div class="ui selection large inverted list kisilist"><div class="item"> <img class="ui avatar image personimage" src="{{picture}}"><div class="content"><div class="header">{{name}}</div><div class="description gorevyeri">{{user_name}} </div></div></div></div>'), }, hint: true }).on('typeahead:selected', function ($e, datum) { $('#info_modal').addClass('visible'); $('.ui.modal').modal({ onShow: function () { $(".close-icon").hide(); }, onHidden: function () { $(".close-icon").show(); } }).modal('setting', 'transition', 'fade up').modal('show'); $(".md_header").html(datum["name"]); $(".md_state").html("State: " + datum["state"]); $(".md-mail_adr").html(datum["email"]); $(".md_phone").html("Phone: " + datum["phone"]); $(".md_username").html(datum["user_name"]); $(".send_mail").attr("href", "mailto:" + datum["email"]); $(".avatar_img").attr("src", datum["l_picture"]); }).on('typeahead:asyncrequest', function () { $(".loader").hide(); }).on('typeahead:asynccancel typeahead:asyncreceive', function () { $(".loader").show(); });; $(document).ajaxComplete(function (event, jqXHR, settings) { $(".loader").hide(); $(".tt-menu").addClass("arrow_box4"); $(".cleard").hide(); }); $('.typeahead').on('keydown', function (e) { $(".cleard").hide(); }); $(".typeahead").on('input', function (e) { $(".cleard").show(); }); $(".cleard").click(function () { $(".cleard").hide(); $('.typeahead').typeahead('val', ''); $(".typeahead").focus(); });