Hébergeur de fichiers indépendant

wundr.html

À propos

Type de fichier
Fichier HTML de 8 Ko (text/html)
Confidentialité
Fichier public, envoyé le 18 octobre 2014 à 14:01, depuis l'adresse IP 105.154.x.x (Maroc)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 24 heures
Statistiques
La présente page de téléchargement a été vue 383 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


    <link rel="stylesheet" href="http://inscription.wundr.co/bundles/wundercollect/css/wundrbounce1.css">

<div class="underlay">
  <div id='wundr-power-footer'>
    powered by <a style="color:#DDD" href="http://wundr.co?utm_source=wunder_widgetnaimadelice - 1&utm_medium=link">wundr</a>&nbsp;&nbsp;&nbsp;
  </div>
</div>
<div class="modal">

<div class="modal-body">
	<div style="background-color:#EEE;height:300px; width:570px;">
		<img src="http://img.wundr.co/lesdelicesdenaima.com/delicesnaima2.png" /> 
	</div>
	<div class="">
		<form target="blank" name="wunder-subscribe"  role="form" method="post" action="http://feedburner.google.com/fb/a/mailverify?uri=LesdelicesdeNaima" >
			<input type="hidden" name="apikey" value="lesdelicesdenaima.com">
              <input type="hidden" name="resource_url" value="http://img.wundr.co/lesdelicesdenaima.com/delicesnaima2.png">
              <input type="hidden" name="resource_slug" value="naimadelice - 1">
              <input type="hidden" name="unique_id" value="b30dd21448f72ed4afec735453d4b10c">
              
			<label  for="inputEmail"></label>
			<input  size="30" required="required" type="email" name="email" id="wundr-email" placeholder="Votre adresse email" style="display:inline">
			<button  id="wundr-btn" type="submit">S'inscrire</button>
			<img id="wundr-tick" style="display:none" src="http://inscription.wundr.co/bundles/wundercollect/images/tick.png" />
			<img id="wundr-loader" style="display:none" src="http://inscription.wundr.co/bundles/wundercollect/images/load.gif" />
		</form>     
	</div>

</div>

<div class="modal-footer">
</div>


</div>
<script>
function ouibounce(el, config) {
  var config     = config || {},
    aggressive   = config.aggressive || false,
    sensitivity  = setDefault(config.sensitivity, 20),
    timer        = setDefault(config.timer, 1000),
    callback     = config.callback || function() {},
    cookieExpire = setDefaultCookieExpire(config.cookieExpire) || '',
    cookieDomain = config.cookieDomain ? ';domain=' + config.cookieDomain : '',
    sitewide     = config.sitewide === true ? ';path=/' : '',
    _html        = document.getElementsByTagName('html')[0];


  function setDefault(_property, _default) {
    return typeof _property === 'undefined' ? _default : _property;
  }

  function setDefaultCookieExpire(days) {
    // transform days to milliseconds
    var ms = days*24*60*60*1000;

    var date = new Date();
    date.setTime(date.getTime() + ms);

    return "; expires=" + date.toGMTString();
  }

  setTimeout(attachOuiBounce, timer);
  function attachOuiBounce() {
    _html.addEventListener('mouseleave', handleMouseleave);
    _html.addEventListener('keydown', handleKeydown);
  }

  function handleMouseleave(e) {
    if (e.clientY > sensitivity || (checkCookieValue('viewedOuibounceModal', 'true') && !aggressive)) return;
    fire();
    callback();
  }

  var disableKeydown = false;
  function handleKeydown(e) {
    if (disableKeydown || checkCookieValue('viewedOuibounceModal', 'true') && !aggressive) return;
    else if(!e.metaKey || e.keyCode != 76) return;

    disableKeydown = true;
    fire();
    callback();
  }

  function checkCookieValue(cookieName, value) {
    // cookies are separated by '; '
    var cookies = document.cookie.split('; ').reduce(function(prev, curr) {
      // split by '=' to get key, value pairs
      var el = curr.split('=');

      // add the cookie to fn object
      prev[el[0]] = el[1];

      return prev;
    }, {});

    return cookies[cookieName] === value;
  }

  function fire() {
    // You can use ouibounce without passing an element
    // https://github.com/carlsednaoui/ouibounce/issues/30
    if (el) el.style.display = 'block';
    disable();
  }

  function disable(options) {
    var options = options || {};

    // you can pass a specific cookie expiration when using the OuiBounce API
    // ex: _ouiBounce.disable({ cookieExpire: 5 });
    if (typeof options.cookieExpire !== 'undefined') {
      cookieExpire = setDefaultCookieExpire(options.cookieExpire);
    }

    // you can pass use sitewide cookies too
    // ex: _ouiBounce.disable({ cookieExpire: 5, sitewide: true });
    if (options.sitewide === true) {
      sitewide = ';path=/';
    }

    // you can pass a domain string when the cookie should be read subdomain-wise
    // ex: _ouiBounce.disable({ cookieDomain: '.example.com' });
    if (typeof options.cookieDomain !== 'undefined') {
      cookieDomain = ';domain=' + options.cookieDomain;
    }

    document.cookie = 'viewedOuibounceModal=true' + cookieExpire + cookieDomain + sitewide;

    // remove listeners
    _html.removeEventListener('mouseleave', handleMouseleave);
    _html.removeEventListener('keydown', handleKeydown);
  }

  return {
    fire: fire,
    disable: disable
  };
}
</script>


<script type="text/javascript">

	/* POST A FORM IN JAVASCRIPT */
	function postForm( $form, callback ){
	  var values = {};
	  $.each( $form.serializeArray(), function(i, field) {
	    values[field.name] = field.value;
	  });

	  $.ajax({
	    type        : $form.attr( 'method' ),
	    url         : $form.attr( 'action' ),
	    data        : values,
	    success     : function(data) {
	      callback( data );
	    }
	  });
	}

	$(document).ready(function(){
	    var forms = [ '[ name="wunder-subscribe"]' ];
	    $( forms.join(',') ).submit( function( e ){
	      e.preventDefault();
          // Mise en attente
          $('#wundr-btn').attr('style','display:none');
          $('#wundr-tick').attr('style','display:none');
          $('#wundr-loader').attr('style', 'vertical-align:middle');

	      postForm( $(this), function( response ){
          $('#wundr-btn').attr('style','display:none');
          $('#wundr-loader').attr('style','display:none');
          $('#wundr-tick').attr('style', 'vertical-align:middle');

	      });
	    return false;
	  });
	});
	</script>

  <script type="text/javascript">
    function newEvent(eventType, apikey, resource_slug, resource_url, url) {
        url = "http://inscription.wundr.co/api/event";
        $.post(url,
                {   version: "v1",
                    eventType: "display_popup",
                    unique_id: "b30dd21448f72ed4afec735453d4b10c",
                    apikey: apikey, 
                    resource_url: resource_url,
                    resource_slug: resource_slug,
                    url: url
                },
                function(data) {
                                }
                );
    }
  </script>

	<script type="text/javascript">
	/* POPIN SCRIPTING  PARAMETERS*/


  var _ouibounce = ouibounce(document.getElementById('wundr-modal'), {
      	  timer: 0,
          sitewide: true,
      	        	  	               cookieExpire: 1,
                       	  callback: function() { 
                            newEvent(   "popup_display", 
                                        "lesdelicesdenaima.com", 
                                        "naimadelice - 1", 
                                        "http://img.wundr.co/lesdelicesdenaima.com/delicesnaima2.png",
                                        "" 
                                    );
                            console.log('fired!'); 
                            $('#wundr-email').focus();
                          }
	});

	$('body').on('click', function() {
	  $('#wundr-modal').hide();
	});

	$('#wundr-modal .modal-footer').on('click', function() {
	  $('#wundr-modal').hide();
	});

	$('#wundr-modal .modal').on('click', function(e) {
	  e.stopPropagation();
	});
</script>




Partager le fichier


Télécharger wundr.html


Télécharger wundr.html