Skip to content

Instantly share code, notes, and snippets.

View jdbruxelles's full-sized avatar
😎
Yep, I'm fine

José dBruxelles jdbruxelles

😎
Yep, I'm fine
View GitHub Profile
@jdbruxelles
jdbruxelles / unlipage.js
Last active April 10, 2017 12:35
Pagination
function loophalaman(a){var b="";nomerkiri=parseInt(numshowpage/2),nomerkiri==numshowpage-nomerkiri&&(numshowpage=2*nomerkiri+1),mulai=nomerhal-nomerkiri,mulai<1&&(mulai=1),maksimal=parseInt(a/postperpage)+1,maksimal-1==a/postperpage&&(maksimal-=1),akhir=mulai+numshowpage-1,akhir>maksimal&&(akhir=maksimal),b+="";var c=parseInt(nomerhal)-1;nomerhal>1&&(b+=2==nomerhal?"page"==jenis?'<li class="showpage"><a href="'+home_page+'">'+upPageWord+"</a></li>":'<li class="showpageNum"><a href="/search/label/'+lblname1+"?&max-results="+postperpage+'">'+upPageWord+"</a></li>":"page"==jenis?'<li class="showpageNum"><a href="#" onclick="redirectpage('+c+');return false">'+upPageWord+"</a></li>":'<li class="showpageNum"><a href="#" onclick="redirectlabel('+c+');return false">'+upPageWord+"</a></li>"),mulai>1&&(b+="page"==jenis?'<li class="showpageNum"><a href="'+home_page+'">1</a></li>':'<li class="showpageNum"><a href="/search/label/'+lblname1+"?&max-results="+postperpage+'">1</a></li>'),mulai>2&&(b+="");for(var d=mulai;d<=
/* we_lilstyle.CSS 1.0 de Jose Ngoyi */
html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}
/* Extrait de normalize.css de Nicolas Gallagher et Jonathan Neal - git.io/normalize */
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}
audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline}
audio:not([controls]){display:none;height:0}[hidden],template{display:none}
a{background-color:transparent;-webkit-text-decoration-skip:objects}
a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}
dfn{font-style:italic}mark{background:#ff0;color:#000}
@jdbruxelles
jdbruxelles / index.html
Last active April 7, 2021 18:13
People module with PubSub pattern 2
<div class="hero-unit jdb-light-gray" id="statsModule"></div>
<script id="stats-template" type="text/template">
<h2 class="jdb-center">Stats</h2><hr class="jdb-border-dark-gray"/>
<strong>N<sup><u>bre</u></sup> de pers.: {{people}}</strong>
</script>
<div id="peopleModule">
<h1 class="jdb-light-gray no-btm-marge">Membres</h1>
<div class="jdb-whith jdb-padding jdb-border-bottom">
<input class="jdb-border jdb-center jdb-hover-light-gray" id="addPersonIn" placeholder="Prénom Nom" type="text"/>
<button class="jdb-btn jdb-hover-green" id="addPerson"><i class="fa fa-user"></i> Ajouté</button>
var i, metas = document.getElementsByTagName("meta");
if (navigator.userAgent.match(/iPhone/i)) {
for (i = 0; i < metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
document.addEventListener("gesturestart", gestureStart, false);
}
function gestureStart() {
@jdbruxelles
jdbruxelles / Animaux.html
Created September 16, 2018 09:43
Liste de trois animaux
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Animaux</title>
</head>
<body>
<div class="pets">
<ol start="10" type="A">
<li>Chien</li>
@jdbruxelles
jdbruxelles / Drapeau de la RDC.html
Created November 25, 2018 16:08
Le drapeau de la R.D.C fait avec de la pure CSS3.
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Drapeau de la R.D.C</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<style type="text/css">
* { box-sizing: border-box }
body, .container {
@jdbruxelles
jdbruxelles / JSON Sample.json
Created January 17, 2019 18:23
JSON content sample
{
"Array": [
1,
2,
3
],
"Boolean": true,
"Null": null,
"Number": 123,
"Object": {
@jdbruxelles
jdbruxelles / Drapeau de la République démocratique du Congo.html
Last active February 16, 2019 18:03
Drapeau de la République démocratique du Congo
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Drapeau de la République démocratique du Congo</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif
@jdbruxelles
jdbruxelles / Drapeau du Maroc.html
Created February 13, 2019 23:30
Drapeau du Maroc
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Drapeau du Maroc</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<style type="text/css">
body {
font: 18px Arial;
@jdbruxelles
jdbruxelles / Backface.html
Last active April 4, 2021 13:36
Backface is a CSSBattle challenge : https://cssbattle.dev/play/33
<div class="divs">
<div class="div1"></div>
<div class="div2"></div>
</div>
<style>
body {
display: flex;
justify-content: center;
align-items: center;