Dream Hotel Group unveil first hotel in the Philippines


Dream Hotel Group unveil first hotel in the Philippines | Travel Daily Asia

‘);

/* $(‘#media_leaderboard’).html(”); */

$(‘.asia_topbar’).html(”);

/* $(‘#asia_leaderboard’).html(”); */

$(‘.thailand_topbar’).html(”);

/* $(‘#thailand_leaderboard’).html(”); */

/* $(‘.uk_topbar’).html(”); */

$(‘.uk_topbar’).html(”);

/* $(‘#uk_leaderboard’).html(”); */

$(‘.me_topbar’).html(”);

/* $(‘#me_leaderboard’).html(”); */

/* $(‘.cruise_topbar’).html(”); */

/* $(‘#cruise_leaderboard’).html(”); */

$(‘.india_topbar’).html(”);

$(‘.maldivesrilanka_topbar’).html(”);

/* $(‘#india_leaderboard’).html(”); */

$(“#mainaccoriframe”).hover(function()
{
$(“#mainaccoriframe”).hide();
$(“#mainaccoriframeinner”).show();
$(“#mainclosearea”).hide();
});

$(“#closeiframe”).click(function()
{
$(“#mainaccoriframe”).show();
$(“#mainaccoriframeinner”).hide();
$(“#mainclosearea”).show();
});

}, 750);

if (window.matchMedia(‘(max-width: 320px)’).matches)
{
$(‘.pagination’).children().first().addClass(‘pg_prev_text’);
$(“.pg_prev_text”).text(“Prev”);

/*$(‘.pagination’).children().last().addClass(‘pg_next_text’);
$(“.pg_next_text”).text(“Next”); */
}

if (window.matchMedia(‘(min-width: 900px)’).matches)
{
$(‘#menu-item-333646’).children(‘a’).click(false);
$(‘#menu-item-241261’).children(‘a’).click(false);
$(‘#menu-item-241244’).children(‘a’).click(false);
}

$(‘.search-hv’).click(function() {
$(‘.search-dd’).slideToggle(“fast”);
});

$(‘.travel_job’).click(function(e)
{
e.preventDefault();
var link = $(‘.travel_job a’).attr(‘href’);
window.open(link, ”, ‘fullscreen=yes,scrollbars=yes,status=yes’);
return false;
});

/* $(‘.paidpr’).click(function(e)
{
e.preventDefault();
newwindow($(‘.paidpr a’).attr(‘href’));
}); */
/* if(window.location.href.indexOf(“/india”) > -1)
{
$(‘.training_link a’).attr(‘href’,’http://traveluni.com/traveldaily.india’);
}
else if(window.location.href.indexOf(“/uk”) > -1)
{
$(‘.training_link a’).attr(‘href’,’http://traveluni.com/traveldaily.co.uk’);
}
else if(window.location.href.indexOf(“/me”) > -1)
{
$(‘.training_link a’).attr(‘href’,’http://traveluni.com/traveldaily.me/’);
}
else
{
$(‘.training_link a’).attr(‘href’,’http://traveluni.com/traveldaily.asia’);
} */

$(‘.training_link a’).attr(‘href’,’http://traveluni.com/traveldaily.asia’);

/* $(‘.travel_job a’).attr(‘href’,’http://www.traveldailymedia.com/asia/#traveljobs247′); */

$(‘.training_link’).click(function(e)
{
e.preventDefault();
newtab($(‘.training_link a’).attr(‘href’));
});

$( “#pdfdatepicker” ).datepicker({
changeMonth: true,
changeYear: true,
dateFormat : ‘dd-M-y’,
setDate : ‘today’,
minDate: new Date(2014, 0, 1),
maxDate: new Date(),

});

$( “#prpublishdate” ).datepicker({
dateFormat : ‘dd-M-y’,
setDate : ‘today’,
minDate: ‘0’,
});

$(“#prpublishdate”).datepicker(‘setDate’, new Date());

$(“#chk_start_date”).datepicker();
$(“#chk_end_date”).datepicker();
$(“#pdfdatepicker”).datepicker(‘setDate’, new Date());
/* $(“#pdfdatepicker”).datepicker(); */

/* $(‘#pdfdatepicker’).datepicker({
dateFormat : ‘mm/dd/yy’
}); */

$(“#yearlist”).on(“change”, function() {
$(“#newsletterform”).submit();
});

var current_pr = $(“#publishing_region”).val();
$(“.paidpr_”+current_pr).show();

var current_facetoface = $(“#facetofacepublishing_region”).val();
$(“.facetoface_”+current_facetoface).show();

var current_addlinktostory = $(“#addlinktostory_region”).val();
$(“.addlinktostory_”+current_addlinktostory).show();

var current_breakingnewspr = $(“#breakingnewspr_region”).val();
$(“.breakingnewspr_”+current_breakingnewspr).show();

$(“#publishing_region”).change(function(){
current_pr = $(this).val();
$(“#pmpro_levels_table > tbody”).children().hide();
$(“.paidpr_”+current_pr).show();
});

$(“#facetofacepublishing_region”).change(function(){
current_pr = $(this).val();
$(“#pmpro_levels_table > tbody”).children().hide();
$(“.facetoface_”+current_pr).show();
});

$(“#addlinktostory_region”).change(function(){
current_pr = $(this).val();
$(“#pmpro_levels_table > tbody”).children().hide();
$(“.addlinktostory_”+current_pr).show();
});

$(“#breakingnewspr_region”).change(function(){
current_pr = $(this).val();
$(“#pmpro_levels_table > tbody”).children().hide();
$(“.breakingnewspr_”+current_pr).show();
});

/* PR script start */

$(‘input[name=prdata]’).change(function(){
var value = $( ‘input[name=prdata]:checked’ ).val();
if(value == ‘image’)
{
$(‘.fileToUpload’).show(‘slow’);
$(‘.description’).hide(‘slow’);
}
else if(value == ‘description’)
{
$(‘.fileToUpload’).hide(‘slow’);
$(‘.description’).show(‘slow’);
}
});

$(‘.addprbtn’).click(function(){
var fileupload = 2;
var file = $(“#fileToUpload”)[0].files[0];
var value = $(‘input[name=prdata]:checked’).val();
if(value == ‘image’)
{
if(file)
{
if(file.name!=””)
{
var fileType = file[“type”];
var img_type = [“image/gif”, “image/jpeg”, “image/png”, “application/pdf”];
if ($.inArray(fileType, img_type) > 0) {
fileupload = 1;
}
else
{
fileupload = 0;
}
}

if(fileupload == 0 || fileupload == 2)
{
alert(‘Allow Only File with type gif, jpeg, png, pdf’);
return false;
}
}
else
{
alert(‘Please Select File’);
return false;
}
}
else if(value == ‘description’)
{
if($(“#description”).val().trim() == “”)
{
alert(‘Please Enter PR Description’);
return false;
}
}
});

$( “#editprpublishdate” ).datepicker({
dateFormat : ‘dd-M-y’,
minDate: ‘0’,
});

var defvalue = $(‘input[name=editprdata]:checked’).val();
if(defvalue == ‘image’)
{
$(‘.fileToUpload’).show(‘slow’);
$(‘.description’).hide(‘slow’);
}
else if(defvalue == ‘description’)
{
$(‘.fileToUpload’).hide(‘slow’);
$(‘.description’).show(‘slow’);
}

$(‘input[name=editprdata]’).change(function(){
var value = $( ‘input[name=editprdata]:checked’ ).val();
if(value == ‘image’)
{
$(‘.fileToUpload’).show(‘slow’);
$(‘.description’).hide(‘slow’);
}
else if(value == ‘description’)
{
$(‘.fileToUpload’).hide(‘slow’);
$(‘.description’).show(‘slow’);
}
});

$(‘.editprbtn’).click(function(){
var fileupload = 2;
var file = $(“#editfileToUpload”)[0].files[0];
var value = $(‘input[name=editprdata]:checked’).val();
if(value == ‘image’)
{
if(file)
{
if(file.name!=””)
{
var fileType = file[“type”];
var img_type = [“image/gif”, “image/jpeg”, “image/png”, “application/pdf”];
if ($.inArray(fileType, img_type) > 0) {
fileupload = 1;
}
else
{
fileupload = 0;
}
}

if(fileupload == 0 || fileupload == 2)
{
alert(‘Allow Only File with type gif, jpeg, png, pdf’);
return false;
}
}
}
else if(value == ‘description’)
{
if($(“#editdescription”).val().trim() == “”)
{
alert(‘Please Enter PR Description’);
return false;
}
}
});

$(‘.f2fbtn’).click(function(){
if($(“#person_interview”).val().trim() == “”)
{
alert(‘Please Enter Person to be interviewd’);
return false;
}
if($(“#subj_cover”).val().trim() == “”)
{
alert(‘Please Enter Subjects to be covered’);
return false;
}

var phone = $(“#phone_interview”).val().trim();
var phonePattern = new RegExp(“^(\+)?(\d+)$”);
var result = phonePattern.test(phone);

if($(“#phone_interview”).val().trim() == “” || result == false)
{
alert(‘Please Enter Valid Phone contact, Only allow numberic’);
return false;
}

var email = $(“#email_interview”).val().trim();
var emailPattern =/^(([^()[]\.,;:s@”]+(.[^()[]\.,;:s@”]+)*)|(“.+”))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;
var emailresult = emailPattern.test(email);

if($(“#email_interview”).val().trim() == “” || emailresult == false)
{
alert(‘Please Enter Valid Email contact’);
return false;
}
});

$(‘.addstorybtn’).click(function(){
if($(“#tdstoryname”).val().trim() == “”)
{
alert(‘Please Enter TD story Name’);
return false;
}
if($(“#uniqueurl”).val().trim() == “”)
{
alert(‘Please Enter Unique URL’);
return false;
}

var urlregex = new RegEXp(“/(b((?:https?|ftp)://|www.)([0-9A-Za-z]+.?)+b)/g”);
var uniqueurl = $(“#uniqueurl”).val().trim();
var urlregexresult = urlregex.test(uniqueurl);

if($(“#uniqueurl”).val().trim() == “” || urlregexresult == false)
{
alert(‘Please Enter Valid Unique URL’);
return false;
}
});

/* PR script end */

$(‘.overlay’).click(function(){
var link = $(‘.takeoverlink’).attr(‘href’);
window.open(link);
})

$(‘.not-click’).click(function(){
if(!$(this).hasClass(‘moved’))
{
$(‘#mobile_section’).addClass(‘sub-menu-visible’);
}
});

$(‘li .back’).click(function()
{
if($(‘#mobile_section’).hasClass(‘sub-menu-visible’))
{
if($(this).closest(‘.sub-menu’).parent().closest(‘ul’).hasClass(‘sub-menu’))
{

}
else
{
$(‘#mobile_section’).removeClass(“sub-menu-visible”);
}
}

});

/*$(‘li ul li .back’).click(function()
{
$(‘#mobile_section’).hasClass(‘sub-menu-visible’);

}); */
var ajax_url = ‘http://www.traveldailymedia.com/wp-content/themes/tdmedia/php_session.php’ ;
$.ajax({
url: ajax_url,
type: ‘POST’,
success:function(data) {
/* alert(data); */
}
});

});

var myIndex = 0;
var myIndex_two = 0;

/* carousel_two(); */
carousel();

function carousel()
{
var i;
var x = document.getElementsByClassName(“mySlides”);

for(i = 0; i x.length)
{
myIndex = 1;
}

x[myIndex-1].style.display = “block”;
setTimeout(carousel, 2000);

}

/* function carousel_two()
{
var j;
var y = document.getElementsByClassName(“mySlides_two”);

for(j = 0; j y.length)
{
myIndex_two = 1;
}

document.getElementsByClassName(‘mySlides_two’)[myIndex_two-1].contentWindow.location.reload();

y[myIndex_two-1].style.display = “block”;
setTimeout(carousel_two, 14000);

} */



Source link

Leave a Reply

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