| Server IP : 104.21.37.246 / Your IP : 172.71.28.145 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/kainumber.com/auspiciousday/ |
Upload File : |
<?php include('../include/class.php');?>
<?php
include("test.php");
$namefile = imm();
$DestinationFile = 'share/'.$namefile; //ไฟล์รูปภาพที่จะจัดเก็บ
$DestinationFile = 'share/'.$namefile;;
$og_image = 'https://www.kainumber.com/auspiciousday/'.$DestinationFile;
$og_image2 = 'https://www.kainumber.com/auspiciousday/'.$DestinationFile;
$og_image3 = 'http://www.kainumber.com/auspiciousday/'.$DestinationFile;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<link rel="apple-touch-icon" href="../image/icon.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="../image/icon.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="../image/icon.png"/>
<link rel="icon" href="../image/favicon.ico">
<meta property="og:image" content="<?php echo $og_image3?>">
<meta property="og:image:secure_url" content="<?php echo $og_image?>">
<meta property="og:type" content="article" />
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="599">
<meta property="og:image:height" content="360">
<link href="../bootstrap-5/css/bootstrap.min.css" rel="stylesheet">
<script src="../bootstrap/js/ie-emulation-modes-warning.js"></script>
<script src="../bootstrap/js/ie-emulation-modes-warning.js"></script>
<script src="../include/function.js"></script>
</head>
<body>
<?php include("../css/css.php"); ?>
<?php include('../theme/menu.php')?>
<?php //include('../banner/index.php')?>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Share+Tech+Mono">
<!-- /.body -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js"></script>
<style media="screen">
.bg-auspiciousday{
background-image: url(../image/auspiciousday-blue.jpg);
background-position: top center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
position: absolute;
}
#clock {
color: #ffffff;
text-align: center;
left: 50%;
top: 50%;
color: #ffffff;
/*text-shadow: 0 0 20px rgb(255 255 255), 0 0 20px rgba(10, 175, 230, 0);*/
.t{}
.time {
letter-spacing: 0.05em;
font-size: 80px;
padding: 5px 0;
}
.date {
letter-spacing: 0.1em;
font-size: 24px;
}
.text {
letter-spacing: 0.1em;
font-size: 80px;
padding: 20px 0 0;
}
}
@media only screen and (orientation: landscape) {
.fs-15{font-size: 8.5rem!important;}
.fs-12{font-size: 6.5rem!important;}
.fs-10{font-size: 3.5rem!important;}
.box-w{width: 325px;}
.text2{letter-spacing: 3.5px;}
.text3{letter-spacing: 3.5px;}
}
@media only screen and (orientation: portrait) {
.fs-15{font-size: 3.5rem!important;}
.fs-12{font-size: 2.5rem!important;}
.fs-10{font-size: 2rem!important;}
.box-w{width: 224px;}
.text2{letter-spacing: 2px;}
.text3{-webkit-letter-spacing: -1px;letter-spacing: 3px;}
/*
.footer {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}
*/
}
.text-time{
border: 3px solid #fff568;
border-radius: 15px 15px;
}
@media (min-width: 768px) {
.pt-md-7{padding-top: 5rem!important}
}
@media not all and (min-resolution:.001dpcm) {
@supports (-webkit-appearance:none) and (display:flow-root) {
.text3{letter-spacing: -1px;}
.bg-auspiciousday{
-webkit-background-size: cover;
-webkit-background-attachment: scroll;
background-attachment: scroll;
}
}
}
</style>
<div class="w-100 bg-auspiciousday">
<div class="container mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-3 pt-md-5">
<div class="col-md-12 px-md-2" >
<div class="row justify-content-center">
<div class="col-12 col-md-8 col-lg-8 text-center justify-content-center">
<div id="clock" class="text-center justify-content-center d-grid ">
<p class="time fw-dsdigit fs-15">{{ time }}<span class="time_s fs-1">{{ time_s }}</span> </p>
<div class=" justify-content-center d-flex">
<p class="text fs-1 text-time mb-0 fw-dsdigit mt-md-5 box-w" id="tt" style=""> 00:00 - 00:00</p>
</div>
<p class="date text3 fs-1 mb-5 mt-md-3 fw-bold mt-5" >{{ date }}</p>
<p class="text text2 fs-1 mb-0" id="au1">0000</p>
<p class="text text2 fs-10 mb-0 fw-KING84" id="au2">ฤกษ์ดีมากๆ <span>ออกเดินทางได้</span> </p>
<p class="text text2 fs-10 mb-0 fw-KING84" id="au3"> <span>ประสบความสำเร็จ</span> </p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<?php
function sofa_get_uri(){
$host = $_SERVER['SERVER_NAME'];
$self = $_SERVER['REQUEST_URI'];
$query = !empty($_SERVER['QUERY_URI']) ? $_SERVER['QUERY_STRING'] : null;
$ref = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
return $ref;
}
$link = sofa_get_uri();
?>
<div class="row" align="center" style="border:0px solid #F00;max-width:600px;margin:0 auto;">
<div class="col-12 text-primary fw-bold text-spacing-md fs-3">
แชร์
</div>
<div class="d-flex justify-content-center pt-3 " >
<div class="line-it-button " data-lang="th" data-type="share-c" data-env="REAL"
data-url="<?php echo $link; ?>"
data-color="default"
data-size="large"
data-count="false"
data-ver="3" style="display: none;">
</div>
<a class="ps-3"
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../image/logo-facebook.png" width="45" height="45" class="img-fluid" />
</a>
</div>
<script src="https://www.line-website.com/social-plugins/js/thirdparty/loader.min.js" async="async" defer="defer"></script>
<!---
<div class="col-md-12 div_mobile" style="margin-top:20px;">
<div data-href="https://www.simded.com/auspiciousday/"
data-layout="button_count" data-size="large" data-mobile-iframe="true">
<a class="fb-xfbml-parse-ignore" target="_blank"
href="https://www.facebook.com/sharer/sharer.php?u=https://www.kainumber.com/auspiciousday/&src=sdkpreparse">
<img src="../image/btn_face.png" width="198" height="53" />
</a>
</div>
</div>
-->
</div>
</div>
<div class="container mt-5 px-md-5">
<div class="row px-md-5 d-md-flex justify-content-center pt-3">
<div class="col-12 col-md-auto text-center px-0 mb-3 ">
<a href="https://lin.ee/egzGHWJ" target="_blank" class="text-decoration-none text-light">
<img src="../image/line_n1.png" alt="" >
@kainumber
</a>
</div>
<span class="col-md-auto px-2 d-none d-md-block">/</span>
<div class="col-12 col-md-auto text-center px-0">
<a href="https://th-th.facebook.com/kainumber/" target="_blank" class="text-decoration-none text-light">
<img src="../image/fb_n1.png" alt="" >
อาจารย์ไก่ เบอร์มงคล
</a>
</div>
</div>
<div class="row px-md-5 d-md-flex justify-content-center">
<div class="col-12 col-md-5 text-center mt-3">
<img src="../image/text_logotop.png" alt="" class="img-fluid col-8 col-md-8">
</div>
</div>
</div>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script>
var this_main_number = 0;
function share_to_fb()
{
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('https://www.kainumber.com/auspiciousday/'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
}
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/th_TH/sdk.js#xfbml=1&version=v2.12&appId=1936378513267243&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>
var clock = new Vue({
el: "#clock",
data: {
time: "",
time_s: "",
date: ""
}
});
var week = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
var week_th = ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"];
var month = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var month_th = ["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"];
var month_short = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var month_short_th = ["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."];
var timerID = setInterval(updateTime, 1000);
var au1 =document.getElementById('au1');
var au2 =document.getElementById('au2');
var au3 =document.getElementById('au3');
var tt =document.getElementById('tt');
var bg =document.getElementsByClassName('bg-auspiciousday');
updateTime();
function updateTime() {
var cd = new Date();
clock.time =
zeroPadding(cd.getHours(), 2) +
":" +
zeroPadding(cd.getMinutes(), 2);
clock.time_s =
":" +
zeroPadding(cd.getSeconds(), 2);
clock.date =
week_th[cd.getDay()] +
" ที่ " +
cd.getDate() +
" " +
month_short_th[cd.getMonth()];
var time_see = zeroPadding(cd.getHours(), 2)+zeroPadding(cd.getMinutes(), 2);
var time_see2 = zeroPadding(cd.getHours(), 2)+":"+zeroPadding(cd.getMinutes(), 2)+":"+zeroPadding(cd.getSeconds(), 2);
//checkBetweenDay(time_see,time_see);
//console.log(time_see);
if(cd.getDay()==0) // sun
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('0000');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('X');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('n');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('00');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('0');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('0000');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('X');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('n');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 0100 && parseInt(time_see) <= 0112){dataShow('n');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('00');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('0');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==1) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('0');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('0000');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('X');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('n');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('00');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('0');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('0000');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('X');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('X');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('n');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('00');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==2) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('00');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('0');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('0000');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('X');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('n');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('00');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('0');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('0000');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('0000');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('X');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('n');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==3) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('n');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('00');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('0');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('0000');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('X');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('n');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('00');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('0');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('0');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('0000');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('X');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==4) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('X');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('n');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('00');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('0');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('0000');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('X');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('n');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('00');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('00');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('0');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('0000');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==5) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('0000');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('X');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('n');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('00');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('0');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('0000');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2248){dataShow('X');tt.innerHTML="20:25 - 22:48";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('n');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('n');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('00');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('0');tt.innerHTML="03:07 - 06:00";}
}
if(cd.getDay()==6) // wed
{
if(parseInt(time_see) >= 601 && parseInt(time_see) <= 824 ){dataShow('0');tt.innerHTML="06:01 - 08:24";}
if(parseInt(time_see) >= 825 && parseInt(time_see) <= 1041){dataShow('0000');tt.innerHTML="08:25 - 10:41";}
if(parseInt(time_see) >= 1042 && parseInt(time_see) <= 1312){dataShow('X');tt.innerHTML="10:42 - 13:12";}
if(parseInt(time_see) >= 1313 && parseInt(time_see) <= 1536){dataShow('n');tt.innerHTML="13:13 - 15:36";}
if(parseInt(time_see) >= 1537 && parseInt(time_see) <= 1800){dataShow('00');tt.innerHTML="15:37 - 18:00";}
if(parseInt(time_see) >= 1801 && parseInt(time_see) <= 2024){dataShow('0');tt.innerHTML="18:01 - 20:24";}
if(parseInt(time_see) >= 2025 && parseInt(time_see) <= 2241){dataShow('0000');tt.innerHTML="20:25 - 22:41";}
if(parseInt(time_see) >= 2249 && parseInt(time_see) <= 2400){dataShow('X');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 100 && parseInt(time_see) <= 112){dataShow('X');tt.innerHTML="22:49 - 01:12";}
if(parseInt(time_see) >= 113 && parseInt(time_see) <= 336){dataShow('n');tt.innerHTML="01:13 - 03:36";}
if(parseInt(time_see) >= 337 && parseInt(time_see) <= 600){dataShow('00');tt.innerHTML="03:07 - 06:00";}
}
}
function zeroPadding(num, digit) {
var zero = "";
for (var i = 0; i < digit; i++) {
zero += "0";
}
return (zero + num).slice(-digit);
}
function checkBetweenDay(time1,time2) {
var cd = new Date();
var timeStart = new Date(cd.getDate()+"/"+cd.getMonth()+"/"+cd.getFullYear()+" "+time1);
var timeEnd = new Date(cd.getDate()+"/"+cd.getMonth()+"/"+cd.getFullYear()+" "+time2);
var hourDiff = timeEnd.getHours() - timeStart.getHours();
var MinDiff = timeEnd.getMinutes() - timeStart.getMinutes();
return hourDiff;
}
function dataShow(val) {
if(val=="0000"){
au1.innerHTML = "0000";
au2.innerHTML = "ฤกษ์ดีมากๆ ออกเดินทางได้";
au3.innerHTML = "ประสบความสำเร็จ";
if(window.innerHeight <= window.innerWidth){
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-green.jpg)";
}else{
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-green.jpg)";
}
}
if(val=="00"){
au1.innerHTML = "00";
au2.innerHTML = "ฤกษ์ดี มีโชคลาภ";
au3.innerHTML = "ให้รีบออกเดินทาง";
if(window.innerHeight <= window.innerWidth){
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-blue.jpg)";
}else{
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-blue.jpg)";
}
}
if(val=="0"){
au1.innerHTML = "0";
au2.innerHTML = "อย่าเพิ่งออกเดินทาง";
au3.innerHTML = "อันตราย จะทำสิ่งใดก็พ่ายแพ้";
if(window.innerHeight <= window.innerWidth){
bg[0].style.backgroundImage = "url(../image/auspiciousdayv4-orange.jpg)";
}else{
bg[0].style.backgroundImage = "url(../image/auspiciousdayv4-orange.jpg)";
}
}
if(val=="X"){
au1.innerHTML = "X";
au2.innerHTML = "ฤกษ์ไม่ดี อัปมงคล";
au3.innerHTML = "ห้ามจัดงานมงคลใดๆ";
if(window.innerHeight < window.innerWidth){
bg[0].style.backgroundImage = "url(../image/auspiciousdayv4-red.jpg)";
}else{
bg[0].style.backgroundImage = "url(../image/auspiciousdayv4-red.jpg)";
}
}
if(val=="n"){
au1.innerHTML = "";
au2.innerHTML = "ฤกษ์ปกติ";
au3.innerHTML = "ไร้โชค ไร้เคราะห์ ออกเดินทางได้";
//console.log(window.innerHeight +" "+window.innerWidth);
if(window.innerHeight <= window.innerWidth){
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-yellow.jpg)";
}else{
bg[0].style.backgroundImage = "url(../image/auspiciousdayv5-yellow.jpg)";
}
}
}
function seeBrowser(){
var ua = navigator.userAgent.toLowerCase();
//console.log(ua.indexOf('chrome'));
if (ua.indexOf('safari') != -1) {
if (ua.indexOf('chrome') > -1) {
return 1;
} else {
return 2;
}
}
}
</script>
<div id="#fm_reading"></div>
<!-- /.body -->
<?php include('../include/footer.php')?>
</div>
<?php include('../include/footer_js.php')?>