Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commencé à enlever les console.log

  • Loading branch information...
commit b434d75a4e6b0f8968070f1dd6f2c495799a8044 1 parent 2bc5453
Ellis authored
Showing with 6 additions and 10 deletions.
  1. +4 −4 demo.html
  2. +0 −1  demo.js
  3. +2 −5 jquery.placeholder.js
8 demo.html
View
@@ -23,8 +23,8 @@
<form action="/Login" method="post">
<fieldset>
- <label for="username1">Utilisateur</label> <input id="username1" type="text" value="initial value" />
- <label for="password1">Mot de passe</label> <input id="password1" type="password" value="" />
+ <label for="username1">Utilisateur</label> <input id="username1" type="text" value="initial value" /><br />
+ <label for="password1">Mot de passe</label> <input id="password1" type="password" value="" /><br />
</fieldset>
<button class="btn-primary btn-large" value="Click me" type="submit">Click me</button>
@@ -40,12 +40,12 @@
<p>
<label for="username2" class="placeholder">Utilisateur</label>
<input class="placeholder" id="username2" type="text" value="initial value" />
- <span class="placeholder">Utilisateur</span>
+ <span class="placeholder">Utilisateur</span><br />
</p>
<p>
<label for="password2" class="placeholder">Mot de passe</label>
<input class="placeholder" id="password2" type="password" value="" />
- <span class="placeholder">Mot de passe</span>
+ <span class="placeholder">Mot de passe</span><br />
</p>
</fieldset>
<button class="btn-primary btn-large" value="Click me" type="submit">Click me</button>
1  demo.js
View
@@ -4,7 +4,6 @@
$(document).ready(function() {
$('#left input[type=text], #left input[type=password]').placeholder({
- 'background' : '#f0f0f0',
'text' : {
'username' : 'nom d\'utilisateur',
'password' : 'mot de passe',
7 jquery.placeholder.js
View
@@ -18,10 +18,7 @@
$.fn.placeholder = function(options) {
console.log('jQuery.fn.placeholder invoked');
- console.log($);
- var s = $('<span />');
- console.log(s);
// valeurs par défaut, on les étend par les options reçus en paramètre
var settings = $.extend({
@@ -35,8 +32,8 @@
console.log(this);
console.log($this);
- span = $this.clone();
- span.attr('id', $this.attr('id') + '_spanned');
+ var s = $('<span />');
+ s.attr('id', $this.attr('id') + '_spanned');
console.log(span);
_render($this);
Please sign in to comment.
Something went wrong with that request. Please try again.