Skip to content

Instantly share code, notes, and snippets.

View brahbassim's full-sized avatar

Brah Bassim brahbassim

View GitHub Profile
Group 1
Comments : 10/20
Algo : 12/20
Code clean : 14/20
Repository presentation : 10/20
----------------------- = 11,5/20
Group 2
Comments : 8/20
@brahbassim
brahbassim / delete-confirm.js
Last active July 21, 2018 11:55
A gist to create confirmation js with sweet alert
// Add .delete-confirm class to your delete button or href
<script>
// Swal
$('.delete-confirm').on('click', function(e) {
var href = this;
e.preventDefault();
swal({
title: "Êtes-vous sûr?",
text: "Après suppression l'article ne sera plus accessible",
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^devarts\.io$ [OR]
RewriteCond %{HTTP_HOST} ^www\.devarts\.io$
RewriteRule ^(.*)$ https://devarts.io/$1 [R,L]