Travel Through Paradise logo

A Philippines Travel Blog And Guide

A Philippines Travel Blog

Vlogs made in the Bicol Region

Below are all my vlogs made in the Bicol Region, listed in chronological order.

var limit = 5; var start = 0; $(document).ready(function(){ function initialload(){ var orderbyresult = $('.orderby').val(); if(orderbyresult === "newtoold"){ loadvlogsbyregion(limit, start, region, "desc"); }else{ loadvlogsbyregion(limit, start, region, "asc"); } } initialload(); function loadvlogsbyregion(limit, start, region, orderby){ $.ajax({ url: "/phpmysqlscripts/getvlogs/getvlogsbyregion.php", method: "POST", data:{limit: limit, start: start, region: region, orderby: orderby}, beforeSend: function() { $(".loadmore").text("Loading..").css("opacity", "0.9107"); }, dataType: "json", success: function(data){ $('.introtext').append(data.vlogresponse); $(".loadmore").text("Load More").css("opacity", "1"); if(!data.testresult){ $(".loadmore").text("All Vlogs Loaded").attr("title","Click to move back to top of page"); $('.loadmore').on('click', movebacktotop); } },error: function (jqXHR, exception) { var msg = ''; if (jqXHR.status === 0) { msg = 'Not connect.\n Verify Network.'; } else if (jqXHR.status === 404) { msg = 'Requested page not found. [404]'; } else if (jqXHR.status === 500) { msg = 'Internal Server Error [500].'; } else if (exception === 'parsererror') { msg = 'Requested JSON parse failed.'; } else if (exception === 'timeout') { msg = 'Time out error.'; } else if (exception === 'abort') { msg = 'Ajax request aborted.'; } else { msg = 'Uncaught Error.\n' + jqXHR.responseText; } $('.introtext').html(msg); } }); } function movebacktotop(){ document.body.scrollTop = 0; document.documentElement.scrollTop = 0; } $(".loadmore").on( "click", function() { var loadmoretext = $(".loadmore").text(); var orderbyresult = $('.orderby').val(); if(loadmoretext === "Load More"){ start = start + limit; if(orderbyresult === "newtoold"){ loadvlogsbyregion(limit, start, region, "desc"); }else{ loadvlogsbyregion(limit, start, region, "asc"); } } }); $( ".orderby" ).change(function() { var orderbyresult = $('.orderby').val(); $('.youtubevid').remove(); limit = 5; start = 0; $('.loadmore').off('click', movebacktotop); if(orderbyresult === "newtoold"){ loadvlogsbyregion(limit, start, region, "desc"); }else{ loadvlogsbyregion(limit, start, region, "asc"); } }); }); // JavaScript Document// JavaScript Document