Afficher/masquer le menu
Liens Ecyseo
  • Tags cloud
  • Daily
  • Pictures wall
  • Search
  • Display options
    • Links per page :
    • 20 links
    • 50 links
    • 100 links
  • RSS Feed
  • Login

J'ai besoin d'intimité. Non pas parce que mes actions sont douteuses, mais parce que votre jugement et vos intentions le sont.

5167 links 

page 8 / 14

Liste des liens

263 results tagged javascript x
Le juge Trévidic. « La religion n'est pas le moteur du jihad » - France - Le Télégramme, quotidien de la Bretagne - Fou à lier
2015-09-3 15:41 - permalink -

En effet, pas con.

Voici le script qui s'en charge :
{code
/ mise en place du copyright /
$(document).ready(function(){
$(document).on('copy',function(){
body=document.getElementsByTagName('body')[0];
selection=getSelection();
copyright=selection+"

© Le Télégramme - Plus d’information sur "+location.href;
copyElm=document.createElement('div');
body.appendChild(copyElm);
//copyElm.style.display='none';
copyElm.innerHTML=copyright;
selection.selectAllChildren(copyElm);
copyElm.style.left='-99999px';
setTimeout(function(){body.removeChild(copyElm)},0)
});
$(document).on('cut',function(){
$(document).trigger('copy');
});
});
code}

copyreicht javascript
- http://foualier.gregory-thibault.com/?wXG90A
sorttable: Make all your tables sortable
2015-08-27 15:28 - permalink -

Coudifiée

javascript librairie sort sorttable table
- http://www.kryogenix.org/code/browser/sorttable/
Récupérer les paramètres GET d’une URL avec JavaScript - JavaScript / jQuery | Creative Juiz
2015-08-19 23:39 - permalink -

À la façon de PHP.
Direct dans mon snippetvamp.

Merci Geoffrey :D

javascript
- http://www.creativejuiz.fr/blog/javascript/recuperer-parametres-get-url-javascript
You might not need jQuery plugins – When youmightnotneedjquery you also might not need jQuery plugins.
2015-07-20 17:22 - permalink -

Liste de scripts en pur javascript

javascript
- http://youmightnotneedjqueryplugins.com/
peachananr/purejs-onepage-scroll - KraZhtest - Liens utiles - C'est le bordel
2015-07-16 0:7 - permalink -

Trop bien, merci KraZhtest !

javascript scroll
- http://user23.net/links/index.php?ZND7Yw
plainJS - The Vanilla JavaScript Repository - Links Lounge
2015-07-7 11:15 - permalink -

Une collection de scripts en pur javascript. Miam :D
via Links lounge

javascript
- http://links.la-bnbox.fr/?q3z6iQ
ProgressBar.js
2015-06-29 18:19 - permalink -

Pas mal. Après, à voir si ce n'est pas trop lourd pour juste une animation...

bibliothèque effets javascript progession
- http://kimmobrunfeldt.github.io/progressbar.js/
ramjet.js
2015-06-27 1:26 - permalink -

Bibliothèque javascript sans dépendances pour créer des animations et transformer un élément en un autre.

animation bibliothèque javascript
- http://www.rich-harris.co.uk/ramjet/
Tout plein de scripts utiles
2015-06-23 2:1 - permalink -

Ils sont basés majoritairement (voire exclusivement) sur jquery.

github javascript
- https://github.com/filamentgroup
Un input:file personnalisé en CSS et JS - Tutoriels | Creative Juiz
2015-06-23 1:49 - permalink -
css javascript tutoriels
- http://www.creativejuiz.fr/blog/tutoriels/input-file-personnalise-css-js
pure JavaScript equivalent to jQuery's $.ready() how to call a function when the page/dom is ready for it - Stack Overflow
2015-06-15 16:15 - permalink -

The simplest thing to do in the absence of a framework that does all the cross-browser compatibility for you is to just put a call to your code at the end of the body. This is faster to execute than an onload handler because this waits only for the DOM to be ready, not for all images to load. And, this works in every browser.

<html>
<head>
</head>
<body>
Your HTML here

<script>
// self executing function here
(function() {
   // your page initialization code here
   // the DOM will be available here

})();
</script>
</body>
</html>

If you really don't want to do it this way and you need cross browser compatibility and you don't want to wait for window.onload, then you probably should go look at how a framework like jQuery implements it's $(document).ready() method. It's fairly involved depending upon the capabilities of the browser.

To give you a little idea what jQuery does (which will work wherever the script tag is placed), if supported, it tries the standard:

document.addEventListener('DOMContentLoaded', fn, false);

with a fallback to:

window.addEventListener('load', fn, false )

or for older versions of IE, it uses:

 document.attachEvent("onreadystatechange", fn);

with a fallback to:

 window.attachEvent("onload", fn);

And, there are some work-arounds in the IE code path that I don't quite follow, but it looks like it has something to do with frames.

Here is a full substitute for jQuery's .ready() written in plain javascript:

 (function(funcName, baseObj) {
    // The public function name defaults to window.docReady
    // but you can pass in your own object and own function name and those will be used
    // if you want to put them in a different namespace
    funcName = funcName || "docReady";
    baseObj = baseObj || window;
    var readyList = [];
    var readyFired = false;
    var readyEventHandlersInstalled = false;

    // call this when the document is ready
    // this function protects itself against being called more than once
    function ready() {
        if (!readyFired) {
            // this must be set to true before we start calling callbacks
            readyFired = true;
            for (var i = 0; i < readyList.length; i++) {
                // if a callback here happens to add new ready handlers,
                // the docReady() function will see that it already fired
                // and will schedule the callback to run right after
                // this event loop finishes so all handlers will still execute
                // in order and no new ones will be added to the readyList
                // while we are processing the list
                readyList[i].fn.call(window, readyList[i].ctx);
            }
            // allow any closures held by these functions to free
            readyList = [];
        }
    }

    function readyStateChange() {
        if ( document.readyState === "complete" ) {
            ready();
        }
    }

    // This is the one public interface
    // docReady(fn, context);
    // the context argument is optional - if present, it will be passed
    // as an argument to the callback
    baseObj[funcName] = function(callback, context) {
        // if ready has already fired, then just schedule the callback
        // to fire asynchronously, but right away
        if (readyFired) {
            setTimeout(function() {callback(context);}, 1);
            return;
        } else {
            // add the function and context to the list
            readyList.push({fn: callback, ctx: context});
        }
        // if document already ready to go, schedule the ready function to run
        if (document.readyState === "complete") {
            setTimeout(ready, 1);
        } else if (!readyEventHandlersInstalled) {
            // otherwise if we don't have event handlers installed, install them
            if (document.addEventListener) {
                // first choice is DOMContentLoaded event
                document.addEventListener("DOMContentLoaded", ready, false);
                // backup is window load event
                window.addEventListener("load", ready, false);
            } else {
                // must be IE
                document.attachEvent("onreadystatechange", readyStateChange);
                window.attachEvent("onload", ready);
            }
            readyEventHandlersInstalled = true;
        }
    }
})("docReady", window); 

The latest version of the code is shared publicly on GitHub at https://github.com/jfriend00/docReady

Usage:

// pass a function reference
docReady(fn);

// use an anonymous function
docReady(function() {
    // code here
});

// pass a function reference and a context
// the context will be passed to the function as the first argument
docReady(fn, context);

// use an anonymous function with a context
docReady(function(context) {
    // code here that can use the context argument that was passed to docReady
}, ctx);

This has been tested in:

IE6 and up
Firefox 3.6 and up
Chrome 14 and up
Safari 5.1 and up
Opera 11.6 and up
Multiple iOS devices
Multiple Android devices

Working implementation and test bed: http://jsfiddle.net/jfriend00/YfD3C/

Here's a summary of how it works:

1. Create an IIFE (immediately invoked function expression) to we can have non-public state variables.
2. Declare a public function {s{i docReady(fn, context)i}s}
3. When {s{i docReady(fn, context)i}s} is called, check if the ready handler has already fired. If so, just schedule the newly added callback to fire right after this thread of JS finishes with {s{i setTimeout(fn, 1).i}s}
4. If the ready handler has not already fired, then add this new callback to the list of callbacks to be called later.
5. Check if the document is already ready. If so, execute all ready handlers.
6. If we haven't installed event listeners yet to know when the document becomes ready, then install them now.
7. If {s{i document.addEventListener i}s} exists, then install event handlers using .addEventListener()i}s} for both {s{i "DOMContentLoaded" i}s} and {s{i "load" i}s} events. The {s{i "load" i}s} is a backup event for safety and should not be needed.
8. If {s{i document.addEventListener i}s} doesn't exist, then install event handlers using {s{i .attachEvent() i}s} for {s{i "onreadystatechange" i}s} and {s{i "onload" i}s} events.
9. In the {s{i onreadystatechange i}s} event, check to see if the {s{i document.readyState === "complete" i}s} and if so, call a function to fire all the ready handlers.
10. In all the other event handlers, call a function to fire all the ready handlers.
11. In the function to call all the ready handlers, check a state variable to see if we've already fired. If we have, do nothing. If we haven't yet been called, then loop through the array of ready functions and call each one in the order they were added. Set a flag to indicate these have all been called so they are never executed more than once.
12. Clear the function array so any closures they might be using can be freed.

Handlers registered with {s{i docReady() i}s} are guaranteed to be fired in the order they were registered.

If you call {s{i docReady(fn)i}s} after the document is already ready, the callback will be scheduled to execute as soon as the current thread of execution completes using setTimeout(fn, 1) i}s}. This allows the calling code to always assume they are async callbacks that will be called later, even if later is as soon as the current thread of JS finishes and it preserves calling order.

via http://user23.net/links/index.php

javascript
- https://stackoverflow.com/questions/9899372/pure-javascript-equivalent-to-jquerys-ready-how-to-call-a-function-when-the/9899701#9899701
Le Jardin de JavaScript
2015-06-9 0:31 - permalink -

Que du bon. À lire absolument.

javascript tutoriels
- http://bonsaiden.github.io/JavaScript-Garden/fr/
HTML5 Image uploader with Jcrop
2015-06-4 10:41 - permalink -
css html5 javascript tutoriels
- http://www.script-tutorials.com/html5-image-uploader-with-jcrop/
Animate.css
2015-05-14 10:55 - permalink -

Une banque d'animations en css

css3 javascript
- http://daneden.github.io/animate.css/
Animate transition
2015-05-4 15:3 - permalink -

Library for transition animations between blocks (pages) in an application
via : Marquetapages Shazen

css javascript
- https://rapid-application-development-js.github.io/AnimateTransition/
CodyHouse
2015-04-10 18:56 - permalink -

Des tonnes d'astuces css, html ou javascript

css html javascript
- http://codyhouse.co/
A markdown parser and compiler. Built for speed.
2015-04-9 22:3 - permalink -

Un parser pour Markdown en javascript. À tester.

javascript markdown
- https://github.com/chjj/marked
Awesomplete: Ultra lightweight, highly customizable, simple autocomplete, by Lea Verou
2015-04-9 16:33 - permalink -

Pour précompléter un input.
Voir également : http://lea.verou.me/2015/02/awesomplete-2kb-autocomplete-with-zero-dependencies/

css html5 javascript
- https://leaverou.github.io/awesomplete/#advanced-examples
Read Understanding ECMAScript 6 | Leanpub
2015-03-31 18:52 - permalink -
javascript tutoriels
- https://leanpub.com/understandinges6/read/#leanpub-auto-who-this-book-is-for
A Baseline for Front-End [JS] Developers: 2015 - Adventures in JavaScript Development
2015-03-31 18:52 - permalink -
javascript tutoriels
- http://rmurphey.com/blog/2015/03/23/a-baseline-for-front-end-developers-2015/
page 8 / 14


Tags


  • shaarli
  • wikipedia

Tags cloud

Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation
Affiches "loi aviva" créées par Geoffrey Dorne le 13 Mai, 2020 - Mastodon 1 - Mastodon 2