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
/* Autoriser les fichiers SVG */ | |
function wpc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'wpc_mime_types'); | |
+ ajouter au svg | |
<?xml version="1.0" encoding="utf-8"?> |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
$.ajax({ | |
url: ajaxUrl, | |
type:'POST', | |
data: o, | |
success: function(res){ | |
console.log(res) | |
} | |
}); |
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::-webkit-scrollbar { | |
display: none; | |
} |
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
this.update = function() { | |
if (this.x + this.radius > ww || this.x - this.radius < 0) { | |
this.dx = -this.dx; | |
} | |
if (this.y + this.radius > wh || this.y - this.radius < 0) { | |
this.dy = -this.dy; | |
} | |
this.x += this.dx; | |
this.y += this.dy; | |
} |
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 titleScroller(text) { | |
document.title = text; | |
//console.log(text); | |
setTimeout(function () { | |
titleScroller(text.substr(1) + text.substr(0, 1)); | |
}, 400); | |
}(" OPTOOPTO - TYPE E, C, B, S OR O FOR SOME EXTRA FUN :), Opto Opto (Susana Montecelo Salvado) Opticien-Optométriste: Bilan visuel, Spécialisé Basse Vision, Conseil Scientifique. Basé à Paris.")); |
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
*{ | |
backface-visibility: hidden; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
-o-user-select: none; | |
user-select: none; | |
-webkit-transform-style: flat; | |
-moz-transform-style: flat; | |
-ms-transform-style: flat; |
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
$args_ = array( | |
"post_type" => "page", | |
"post_status" => "publish", | |
'posts_per_page' => get_option( 'posts_per_page' ), | |
'paged' => $paged, | |
"orderby" => "menu_order", | |
"order" => "DESC", | |
"post_parent" => get_the_ID() | |
); | |
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 cc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'cc_mime_types'); |
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
```javascript | |
$(document).keyup(function (event) { | |
//console.log(event.keyCode) | |
switch(event.keyCode){ | |
case 27: | |
$(".dialog-close").click() | |
break; | |
case 39: | |
$(".controls.next").click() | |
break; |