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 new_login_page() { | |
?> | |
<style type="text/css"> | |
body.login div#login h1 a { | |
background-image: "your image"; | |
background-size: 100%; | |
width: 220px; | |
padding-bottom: 30px; | |
} | |
.login #login_error, .login .message, .login .success { |
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
var counter = function(e, nb = 50, inverse = false) { | |
var span = e.nextSibling.nextSibling | |
var parent = e.parentNode.parentNode | |
if (inverse == false) { | |
span.innerText = e.value.length + '/' + nb + ' caractères restant' | |
if (e.value.length > nb || e.value.length == 0) { | |
parent.classList.add('has-error') |
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
var obfusque = function() { | |
var links = document.querySelectorAll('.obf') | |
console.log(links) | |
if(links) { | |
for (var i = 0; i < links.length; i++) { | |
var link = links[i] | |
link.addEventListener('click', function (e) { | |
var href = atob(this.dataset.href) | |
window.location.replace(href) | |
}) |
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
window.onbeforeunload = confirmExit; | |
function confirmExit() { | |
return "You have attempted to leave this page. Are you sure?"; | |
} |
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
<a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('frm-logout').submit();"> | |
<form id="frm-logout" action="{{ route('logout') }}" method="POST" style="display: none;"> | |
{{ csrf_field() }} | |
</form> |
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
/* eslint-disable no-console */ | |
console.log(someThing); | |
/* eslint-enable no-console */ |
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
<template> | |
<div> | |
<v-btn @click="addPage({ | |
name: 'Item', //Must be unique !! | |
route: '/item', | |
})"></v-btn> | |
</div> | |
</template> | |
<script> |
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
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
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
/* eslint-disable no-console */ | |
/* eslint-disable no-unused-vars */ | |
const state = { | |
timers: [], | |
}; | |
// getters | |
const getters = { | |
timers: state => state.timers, |
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
array.acceptedGrants.some(r => $authUser.role.grantsSerialized.includes(r)) | |
OlderNewer