On click container, get his children a href go to this page url
1 2 3 4 |
$( ".portfolio .mod-banner__img" ).click(function() { //alert($(this).find("a").attr("href")); window.location = $(this).find("a").attr("href"); }); |
1 2 3 4 |
$( ".portfolio .mod-banner__img" ).click(function() { //alert($(this).find("a").attr("href")); window.location = $(this).find("a").attr("href"); }); |
Ask to user “yes or no” to go on the extension Number + ; ext 9 and 1 next
1 |
<a href="tel:1-555-555-5555;9;1">Number + ; ext 9 and 1 next</a> |
Automaticaly go to the good extensions Numéro + , ext 9 and 1 next
1 |
<a href="tel:1-555-555-5555,9,1">Numéro + , ext 9 and 1 next</a> |
1 2 3 |
if (window.location.href.indexOf("your-string") > -1) { alert("Action"); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
jQuery(document).ready(function($) { if (window.location.href.indexOf("?elementId=3") > -1) { //alert("found it"); var myMemberString = $( "div.search-object-detail-bloc ul li:nth-child(2)" ).html(); var arr = myMemberString.split(' '); // URL arr[0] var memberUrl = arr[0]; var memberName = myMemberString.split('.jpg').pop().split('-')[0]; // returns 'Prénom - Nom' //var memberPoste = myMemberString.split('-')[1]; var memberEmail = myMemberString .match(/([a-zA-Z0-9._+-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);; $( "div.search-object-detail-bloc ul" ).append("<li><img src='" + memberUrl + "' /></li>"); $( "div.search-object-detail-bloc ul" ).append("<li><strong>" + memberName + "</strong></li>"); // $( "div.search-object-detail-bloc ul" ).append("<li>" + memberPoste + "</li>"); $( "div.search-object-detail-bloc ul" ).append("<li>" + memberEmail + "</li>"); } }); |
1 2 3 4 5 6 7 |
.grid-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 28px; } .grid-container > div { } |
1 2 3 4 5 6 7 8 9 10 11 |
$(function() { var lang_switch = document.querySelector("a.switch-language"); var lang_list = { "fr" : "EN", "en" : "FR" }; if(lang_switch) { if(document.body.classList.contains("lang-fr")) { lang_switch.text = lang_list.fr; } else if(document.body.classList.contains("lang-en")) { lang_switch.text = lang_list.en; } } }); |
1 |
document.write('<link rel="stylesheet" href="http://localhost/client/public/main.css?'+Date.now()+'">'); |
1 2 3 4 |
var content1 = $( ".classcontent1" ).html(); var content2 = $( ".classcontent2" ).html(); $('.classcontent1').html(content2); $('.classcontent2').html(content1); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
/** DISABLED OUTLINE IMAGE AND BUTTON **/ input, select, textarea { outline: none !important; } *:focus, *:hover, img { outline: none; } a:active, a:focus { outline: 0; -moz-outline-style: none; } .btn:focus, .btn:active:focus, .btn.active:focus { outline: 0; -moz-outline-style: none; } /** DISABLED LINK **/ .linkdisabled{ pointer-events: none; cursor: default; text-decoration: none; } |
1 2 3 4 |
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^(.*)$ https://yoursite.com/ [R=301,L] |