Skip to content

Instantly share code, notes, and snippets.

Brah Bassim brahbassim

View GitHub Profile
brahbassim / delete-confirm.js
Last active Jul 21, 2018
A gist to create confirmation js with sweet alert
View delete-confirm.js
// Add .delete-confirm class to your delete button or href
// Swal
$('.delete-confirm').on('click', function(e) {
var href = this;
title: "Êtes-vous sûr?",
text: "Après suppression l'article ne sera plus accessible",
View gist:1ddb10f3668f89bab3e704e6258f6d83
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^devarts\.io$ [OR]
RewriteCond %{HTTP_HOST} ^www\.devarts\.io$
RewriteRule ^(.*)$$1 [R,L]
You can’t perform that action at this time.