div.content').html(content); $('div.block-sidebar-subscription > div.content > div.text').css({'padding-bottom': '5px'}); }, success: function (data) { data = $.parseJSON(data); if (data.code == 1) { var content = 'Thank You!'; content += '' + data.message + ''; content += ''; $('div.block-sidebar-subscription > div.content').html(content); $('div.block-sidebar-subscription > div.content > div.text').css({'padding-bottom': '5px'}); }…' />

Web Design Library

Web Design Basics

Tutorials

Web Products

div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); }, success: function (data) { data = $.parseJSON(data); if (data.code == 1) { var content = ‘

Thank You!

‘; content += ‘

‘ + data.message + ‘

‘; content += ”; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else if (data.code == 2) { var content = ‘

‘ + data.message + ‘

‘; content += ”; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else if (data.code > 2) { var content = ‘

‘ + data.message + ‘

‘; content += ”;
$(‘div.block-sidebar-subscription > div.content’).html(content);
$(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’});
} else {
console.log(data);
$(‘div.block-sidebar-subscription > div.content > div.error’).text(data.message).css({‘display’: ‘block’});
$(‘div.block-sidebar-subscription > div.content > div.button-wrapper’).css({‘padding-top’: ‘8px’});
}
}
});
}
}
function sendAjaxEbook(){
if (email.length != 0 && email != ‘E-mail address’) {
$.ajax({
url: ‘/aweber.php’,
type: ‘POST’,
data: {
‘subscriber_email’ : email
},
beforeSend: function() {
var content = ‘

Please wait. System verifies your email.

‘; content += ”; content += ”; content += ”; content += ‘

Beginners Guide to HTML

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); }, success: function (data) { data = $.parseJSON(data); if (data.code == 1) { var $url = ‘/download.php?file=downloads/Beginners_Guide_to_HTML.pdf’; $.ajax({ type: ‘GET’, url: $url, success: function(data){ if(data == true){ alert(‘This file is not available for download.’); }else{ window.location =””+$url+””; } } }) content = ‘

The download process has started! You might have noticed you signed up for something with your email. Don’t fret, we do not spam! We’ll only send you some freebies and other valuable stuff once in a while.

‘; content += ”; content += ”; content += ”; content += ‘

Beginners Guide to HTML

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else if (data.code == 2) { var content = ‘

‘ + data.message + ‘

‘; content += ”; content += ”; content += ”; content += ‘

Beginners Guide to HTML

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); }else if(data.code == 3){ var $url = ‘/download.php?file=downloads/Beginners_Guide_to_HTML.pdf’; $.ajax({ type: ‘GET’, url: $url, success: function(data){ if(data == true){ alert(‘This file is not available for download.’); }else{ window.location =””+$url+””; } } }) content = ‘

The download process has started!

‘; content += ”; content += ”; content += ”; content += ‘

Beginners Guide to HTML

‘;
$(‘div.block-sidebar-subscription > div.content’).html(content);
$(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’});

} else {
console.log(data);
$(‘div.block-sidebar-subscription > div.content > div.error’).text(data.message).css({‘display’: ‘block’});
$(‘div.block-sidebar-subscription > div.content > div.button-wrapper’).css({‘padding-top’: ‘8px’});
}
}
});
}
}
function sendAjaxSocial(){
if (email.length != 0 && email != ‘E-mail address’) {
$.ajax({
url: ‘/aweber.php’,
type: ‘POST’,
data: {
‘subscriber_email’ : email
},
beforeSend: function() {
var content = ‘

Please wait. System verifies your email.

‘; content += ”; content += ”; content += ”; content += ‘

Awesome WP Theme Social Optimized

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); }, success: function (data) { data = $.parseJSON(data); if (data.code == 1) { var $url = ‘/download.php?file=downloads/social_template.zip’; $.ajax({ type: ‘GET’, url: $url, success: function(data){ if(data == true){ alert(‘This file is not available for download.’); }else{ window.location =””+$url+””; } } }) content = ‘

The download process has started! You might have noticed you signed up for something with your email. Don’t fret, we do not spam! We’ll only send you some freebies and other valuable stuff once in a while.

‘; content += ”; content += ”; content += ”; content += ‘

Awesome WP Theme Social Optimized

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else if (data.code == 2) { var content = ‘

‘ + data.message + ‘

‘; content += ”; content += ”; content += ”; content += ‘

Awesome WP Theme Social Optimized

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else if (data.code == 3) { var $url = ‘/download.php?file=downloads/social_template.zip’; $.ajax({ type: ‘GET’, url: $url, success: function(data){ if(data == true){ alert(‘This file is not available for download.’); }else{ window.location =””+$url+””; } } }) content = ‘

The download process has started!

‘; content += ”; content += ”; content += ”; content += ‘

Awesome WP Theme Social Optimized

‘; $(‘div.block-sidebar-subscription > div.content’).html(content); $(‘div.block-sidebar-subscription > div.content > div.text’).css({‘padding-bottom’: ‘5px’}); } else { console.log(data); $(‘div.block-sidebar-subscription > div.content > div.error’).text(data.message).css({‘display’: ‘block’}); $(‘div.block-sidebar-subscription > div.content > div.button-wrapper’).css({‘padding-top’: ‘8px’}); } } }); } } }); });

Source

3 thoughts on “Web Design Library”

Leave a Comment

Your email address will not be published. Required fields are marked *

Get 15% off your membership plan, use Coupon Code [ 15OFF ]

X