wundr.html
À propos du fichier
- Type de fichier
- Fichier HTML de 7 Ko (text/html)
- Confidentialité
- Fichier public, envoyé le 17 octobre 2014 à 20:40, depuis l'adresse IP 105.156.x.x (Maroc)
- Sécurité
- Ne contient aucun Virus ou Malware connus - Dernière vérification: 3 jours
- Statistiques
- La présente page de téléchargement a été vue 698 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'>
</div>
</div>
<div class="modal">
<div class="modal-body">
<div style="background-color:#EEE;height:300px; width:570px;">
<img src="http://inscription.wundr.co/media/resources/544110fce1ffc.png" />
</div>
<div class="">
<form target="blank" name="wunder-subscribe" role="form" method="post" action="http://inscription.wundr.co/leads" >
<input type="hidden" name="apikey" value="lesdelicesdenaima.com">
<input type="hidden" name="resource_url" value="/media/resources/544110fce1ffc.png">
<input type="hidden" name="resource_slug" value="Newsletter - ">
<input type="hidden" name="unique_id" value="6853613b71bc246d0dfb293ab819ab00">
<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: "6853613b71bc246d0dfb293ab819ab00",
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",
"Newsletter - ",
"http://inscription.wundr.co/media/resources/544110fce1ffc.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 wundr.html sur le Web et les réseaux sociaux:
Télécharger le fichier wundr.html