Skip to content

Instantly share code, notes, and snippets.

/* 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"?>
@ahmedghazi
ahmedghazi / .htaccess
Created February 21, 2019 15:46 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#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/
$.ajax({
url: ajaxUrl,
type:'POST',
data: o,
success: function(res){
console.log(res)
}
});
div::-webkit-scrollbar {
display: none;
}
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;
}
(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."));
*{
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;
$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()
);
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
```javascript
$(document).keyup(function (event) {
//console.log(event.keyCode)
switch(event.keyCode){
case 27:
$(".dialog-close").click()
break;
case 39:
$(".controls.next").click()
break;