var publicite_txt = '
';
var domaine = 'www.widgeo.net';
var noscripttag = '\n ';
function reqnewcounter(act,ty) {
if(check() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
selStr = dc.c.value;
if( jQuery('input[name=checkbox_enable_modif]:checked').val() == 'old' ){
var existant_id_val = dc.existant_id.value;
}
else{
var existant_id_val = 0;
}
$.ajax({
type: "POST",
url: "requete.php",
async: false,
data: "counter="+selStr+"&do="+act+"&email="+dc.email.value+"&site="+dc.site.value+"&url="+dc.url.value+"&depart="+dc.depart.value+"&gmt="+dc.gmt.value+"&test="+dc.test.value+"&size="+dc.counter_size.value+"&cat="+dc.category.value+"&existant_id="+existant_id_val+"",
success: function(msg){
if(typeof(window['dc.fonce.value']) != "undefined"){var coulf = dc.fonce.value; coulf = coulf.replace("#","");} else{ var coulf = ""; }
if(typeof(window['dc.claire.value']) != "undefined"){var coulc = dc.claire.value; coulc = coulc.replace("#","");} else{ var coulc = ""; }
var codehtml = 'Copy-Past these following code on your Website / Blog ';
codehtml += '
';
codehtml += '
How to put a script on my blog / website ?
';
codehtml += '
Your Chrome ext GeoCounter id :
';
//codehtml += publicite_txt;
codehtml += '
';
Shadowbox.open({content:''+codehtml+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
ga('send', 'event', 'Widgeo', 'Get Button Fired', ty);
console.log('Get Button Fired!');
}
});
}
function textarea_press(){
var url = new URL(window.location.href);
var clickid = url.searchParams.get('clickid');
var img = new Image();
img.src = 'https://ad.propellerads.com/conversion.php?aid=170375&pid=&tid=38359&visitor_id='+clickid+';?>&payout=';
ga('send', 'event', 'Widgeo', 'Copy Code Fired', '');
console.log('Copy Fired!');
}
function reqnewcounter2015(act,ty) {
if(check() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
selStr = dc.c.value;
if( jQuery('input[name=checkbox_enable_modif]').is(':checked') ){
existant_id_val = dc.existant_id.value;
}
else{
existant_id_val = 0;
}
$.ajax({
type: "POST",
url: "requete.php",
async: false,
data: "counter="+selStr+"&do="+act+"&email="+dc.email.value+"&site="+dc.site.value+"&url="+dc.url.value+"&depart="+dc.depart.value+"&gmt="+dc.gmt.value+"&test="+dc.test.value+"&cat="+dc.category.value+"&existant_id="+existant_id_val+"",
success: function(msg){
console.log(msg);
var ff = dc.ff.value;
var txt = dc.txt_col.value; txt = txt.replace('#','');
var bg = dc.bg_col.value; bg = bg.replace('#','');
var ft = dc.ft.value;
var fw = dc.fw.value;
var fs = dc.fs.value;
var tsh = dc.tsh.value;
var multi = dc.depart.value;
var codehtml = ''
+'Copy-Past these following code on your Website / Blog'
+'
';
codehtml += '
Your Chrome ext GeoCounter id :
';
codehtml += publicite_txt;
codehtml += '
';
Shadowbox.open({content:''+codehtml+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}
});
}
function reqwiboost() {
if(check() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
$.ajax({
type: "POST",
url: "requete.php",
async: false,
data: "do=wiboost&email="+dc.email.value+"&site="+dc.site.value+"&url="+dc.url.value+"&gmt="+dc.gmt.value+"&test="+dc.test.value+"&cat="+dc.category.value+"",
success: function(msg){
if(isNaN(msg) === true){
Shadowbox.open({content:''+msg+'
', player:'html', title:'Error', height:200, width:600});
}
var codehtml = '';
codehtml += '
';
codehtml += publicite_txt;
codehtml += '
';
Shadowbox.open({content:''+codehtml+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}
});
}
function validateUrl(value)
{
var expression = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,8}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi
var regexp = new RegExp(expression);
return regexp.test(value);
}
function couleur(obj) {
obj.style.backgroundColor = "#E5F3FF";
}
function check()
{
var msg = "";
var val_gmt = document.formulaire.gmt.value;
var val_cat = document.formulaire.category.value;
var val_ad = document.formulaire.adult.value;
var val_wiboost_method = document.formulaire.wiboost_method.value;
var val_email = document.formulaire.email.value;
var val_url = document.formulaire.url.value;
var val_title = document.formulaire.site.value;
if(val_wiboost_method > 0){
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if (val_email.match(mailformat)){}
else{
msg += "Email You need an Valid EMAIL for account creation\n";
document.formulaire.email.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.email.style.color = "#000000";
}
if (val_title == ""){
msg += "Title Please indicate your website Title\n";
document.formulaire.site.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.site.style.color = "#000000";
}
}
if( jQuery('input[name=checkbox_enable_modif]:checked').val() == 'old' ){
var val_existant_id = document.formulaire.existant_id.value;
if (!isNaN(parseInt(val_existant_id, 10))) {
console.log(val_existant_id + ' is a number');
}
else {
msg += "("+val_existant_id+") widgeo_id must be a number\n";
document.formulaire.existant_id.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.existant_id.style.color = "#000000";
}
}
if ( !validateUrl(val_url) ){
msg += "URL Please indicate your website URL\n";
document.formulaire.url.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.url.style.color = "#000000";
}
if (val_gmt == ""){
msg += "Please select a UTC timezone : Useful for daily reset\n";
document.formulaire.gmt.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.gmt.style.color = "#000000";
}
if (msg == "") return(true);
else {
alert(msg);
return(false);
}
}
function check_ad()
{
var msg = "";
var val_cat = document.formulaire.category.value;
var val_ad = document.formulaire.adult.value;
if (val_cat == ""){
msg += "Please select a blog category\n";
document.formulaire.category.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.category.style.color = "#000000";
}
if (val_ad == "") {
msg += "Please select if you have an adult content or not\n";
document.formulaire.adult.style.backgroundColor = "rgba(223, 139, 139, 0.50)";
document.formulaire.adult.style.color = "#000000";
}
if (!$('#CheckBox1').is(':checked')){ msg += "You must accept policies\n"; }
if (msg == "") return(true);
else { alert(msg); return(false); }
}
function copy(element) {
var $temp = $(" ");
$("body").append($temp);
$temp.val($(element).val()).select();
document.execCommand("copy");
$temp.remove();
$(element).select();
}
function rssmeteo_fillform(id,titre){
$('input[name=city]').val(titre);
$('input[name=city_meteo]').val(id);
$("#meteoresult").html(titre);
var swftag = ''
+' '
+' '
+' '
+''
+' ';
$("#meteoswf").html(swftag);
return false;
}
function rssmeteo(URI) {
$("#meteoresult").append(' ');
$.ajax({
type: 'GET',
url: URI,
dataType: 'xml',
success: function(xml) {
$("#meteoresult").append( "Choose city : " );
$(xml).find('loc').each(function(){
var id = $(this).attr('id');
var titre = $(this).text();
$('#meteoresult').append(''+titre+' ');
$('#meteoresult a').click(function() {
rssmeteo_fillform($(this).attr("data-id"),$(this).attr("data-titre")); return false;
});
});
$("#loadingmeteo").hide();
}
});
}
function codemeteo(){
if(check_ad() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
var htmleffet = ''
htmleffet += ''
htmleffet += publicite_txt
htmleffet += '
';
Shadowbox.open({content:''+htmleffet+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}
function codemessage() {
if(check_ad() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
var htmleffet = ''
htmleffet += ''
htmleffet += publicite_txt
htmleffet += '
';
Shadowbox.open({content:''+htmleffet+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}
function codeffet() {
if(check_ad() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
var htmleffet = ''
htmleffet += ''
htmleffet += publicite_txt
htmleffet += '
';
Shadowbox.open({content:''+htmleffet+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}
function horloge(adult,gif) {
var taghorloge = ''
+''
+publicite_txt
+'
';
Shadowbox.open({content:''+taghorloge+'', player:'html', title:'', height:400, width:728});
}
function newpr() {
var v = new RegExp();
v.compile("^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$");
if (!v.test(document.formulaire.prurl.value)) {
alert("URL Error");
return;
}
if(check_ad() === false){ return; }
var dc = 'document.formulaire'; dc = eval(dc);
var htmleffet = ''
htmleffet += ''
htmleffet += publicite_txt
htmleffet += '
';
Shadowbox.open({content:''+htmleffet+'', player:'html', title:'Copy-Past these following code on your Website / Blog', height:400, width:728});
}