Skip to content

Instantly share code, notes, and snippets.

Avatar

Brah Bassim brahbassim

View GitHub Profile
View gist:1ddb10f3668f89bab3e704e6258f6d83
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]
@brahbassim
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
<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",
View HACKATHONMARKS
Group 1
Comments : 10/20
Algo : 12/20
Code clean : 14/20
Repository presentation : 10/20
----------------------- = 11,5/20
Group 2
Comments : 8/20