Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String generateHTLM(String title,String image){
- String str = "";
- str = "<link rel='stylesheet' href='http://mysite.it/wp-content/plugins/scrollblog/js/couraselcss.css' />" +
- "<script src='http://code.jquery.com/jquery-1.9.0.min.js'></script>" +
- "<script src='http://mysite.it/wp-content/plugins/scrollblog/js/jquery.touchcarousel-1.1.min.js'></script>" +
- "<script type='text/javascript'></script>" +
- "jQuery(document).ready(function($) {" +
- "$(function(){" +
- "var mesi=new Array(\"01\",\"02\",\"03\",\"04\",\"05\",\"06\",\"07\",\"08\",\"09\",\"10\",\"11\",\"12\");" +
- "var giorni=new Array(\"\",\"01\",\"02\",\"03\",\"04\",\"05\",\"06\",\"07\",\"08\",\"09\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"24\",\"25\",\"26\",\"27\",\"28\",\"29\",\"30\",\"31\");" +
- "var ore=new Array(\"00\",\"01\",\"02\",\"03\",\"04\",\"05\",\"06\",\"07\",\"08\",\"09\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\");" +
- "//autorefresh images" +
- "setInterval(function(){" +
- "$('.autorefresh').each(function() {" +
- "var url = $(this).attr('src').split('?')[0];" +
- "$(this).attr('src', url + '?' + Math.random());" +
- "})" +
- "}, 300000);" +
- "setInterval(function(){" +
- "$('.autorefresh2link').each(function() {" +
- "var url = $(this).attr('href').split('?')[0];" +
- "var src = url.split('/');" +
- "var stime = \"http://mysite.it/date.php\";" +
- "url =\"\";" +
- "var t = $(this);" +
- "$.get(stime, function(data){" +
- "var time = new Date(data);" +
- "var str = src[7];" +
- "var len = (str.length)-8;" +
- "var y = time.getUTCFullYear();" +
- "var m = mesi[time.getUTCMonth()];" +
- "var d = giorni[time.getUTCDate()];" +
- "var h = ore[time.getUTCHours()];" +
- "var fnum = \"\";" +
- "if(h<=3){" +
- "fnum = \"0000.gif\";" +
- "}" +
- "else if(h<=7){" +
- "fnum = \"0001.gif\";" +
- "}else if(h<=11){" +
- "fnum = \"0002.gif\";" +
- "}else if(h<=15){" +
- "fnum = \"0003.gif\";" +
- "}else if(h<=19){" +
- "fnum = \"0004.gif\";" +
- "}else if(h<=23){" +
- "fnum = \"0005.gif\";" +
- "}url = src[0]+\"//\"+src[2]+\"/\"+src[3]+\"/\"+src[4]+\"/\"+src[5]+\"/\"+y+\"\"+m+\"\"+d+\"/\"+str.substring(0,len)+fnum+\"?\"+Math.random();" +
- "t.attr('href', url);" +
- "t.children(\"img\").attr('src', url);" +
- "});" +
- "})" +
- "}, 60000);" +
- "setInterval(function(){" +
- "$('.autorefreshlinkWebcam').each(function() {" +
- "var src = $(this).attr('href').split('/');" +
- "//var jsontime = \"http://json-time.appspot.com/time.json?tz=GMT&callback=?\";" +
- "var stime = \"http://mysite.it/date.php\";" +
- "var url =\"\";" +
- "var t = $(this);" +
- "$.get(stime, function(data){" +
- "var time = new Date(data);" +
- "var str = src[8];" +
- "var len = (str.length)-8;" +
- "var y = time.getUTCFullYear();" +
- "var m = mesi[time.getUTCMonth()];" +
- "var d = giorni[time.getUTCDate()];" +
- "var h = ore[time.getUTCHours()];" +
- "var fnum = (Math.floor((60*time.getUTCHours()+time.getUTCMinutes())/3));" +
- "if(fnum<100){" +
- "fnum = \"0\"+fnum;" +
- "}" +
- "url = src[0]+\"//\"+src[2]+\"/\"+src[3]+\"/\"+src[4]+\"/\"+src[5]+\"/\"+y+\"\"+m+\"\"+d+\"/\"+h+\"00/\"+str.substring(0,len)+\"0\"+fnum+\".jpg\";" +
- "t.attr('href', url);" +
- "t.children(\"img\").attr('src', url);" +
- "});" +
- "})" +
- "}, 60000);" +
- "});" +
- "});" +
- "</script>" +
- "<style>" +
- "img{ width:100%%; height:auto; }" +
- "iframe{ width:100%%; height:auto; }" +
- "object{ width:100%%; height:auto; }" +
- "hr.embosed { width:100%%; height:0; color:none; background:none; border:1px solid red; border-top:0.5px solid #555555; border-bottom:1px solid #d3d3d3; }" +
- "</style>" +
- "<body background='URL DI UN BACKGROUND LOCALE O CODICE COLORE' style='padding:0; margin:0px; font-family:HelveticaNeue;'>" +
- "<div>" +
- "<div style='border-radius: 4px; '>" +
- "<div style='font-size:18px;font-weight:bold;padding:10px;'>title</div>" +
- "<div style='padding:10px;font-size:12px; margin-top:-15px;'></div>" +
- "<div id='get_post_gallery'></div>" +
- "<div style='padding:10px;font-size:12px; margin-top:-20px;'>content</div>" +
- "<div id='commentsContainer' style='background-color: #C8C8C8;border-bottom-right-radius:4px;border-bottom-left-radius:4px;'>" +
- "<div style='font-size:14px;padding-left:10px;padding-top:10px;'>" +
- "<a href='http://share/' style='color:black; text-decoration:none;'>LINK CONDIVIDI*</a>" +
- "</div>" +
- "</div>" +
- "</div>" +
- "</div>" +
- "<br>" +
- "<br>" +
- "<br>" +
- "</body>";
- return str;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement