{"id":8830,"date":"2021-05-17T15:51:08","date_gmt":"2021-05-17T07:51:08","guid":{"rendered":"https:\/\/bali-family.com\/?post_type=product&#038;p=8830"},"modified":"2022-03-11T15:58:49","modified_gmt":"2022-03-11T07:58:49","slug":"package-calculator-2","status":"publish","type":"product","link":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/","title":{"rendered":"package calculator"},"content":{"rendered":"<p><script type=\"text\/javascript\">\n <!--\nvar prevScrollpos = window.pageYOffset;\nwindow.onscroll = function() {\n  var currentScrollPos = window.pageYOffset;\n  if (prevScrollpos > currentScrollPos) {\n    document.getElementById(\"site-header\").style.top = \"0\";\n  } else {\n    document.getElementById(\"site-header\").style.top = \"-50px\";\n  }\n  prevScrollpos = currentScrollPos;\n}\n \n\nvar xh = document.createElement(\"LINK\");\n  xh.setAttribute(\"rel\", \"stylesheet\");\n  xh.setAttribute(\"type\", \"text\/css\");\n  xh.setAttribute(\"href\", \"https:\/\/bali-family.com\/css\/packages.css\");\n  document.head.appendChild(xh);\nvar xt=document.getElementsByClassName('page-header'); \n      xt[0].id= (\"phead\");\n      \nvar hpara= document.createElement(\"p\"); \ndocument.getElementById(\"phead\").appendChild(hpara);\nhpara.id=\"header-p\"; \n hpara.innerHTML=\"Here you may choose a pre-made plan for your vacation. Everything accurately planned from the moment you reach Bali till the moment we deliver you back safely to the airport. check it out now, the best price is guaranteed! \";\n\nvar night, stay,lunch,pernight,breackfast,allinclusive,extrabreack,extra_breakfast,total_stay_cost, room,meal,room_cost;\nfunction stay_opt(){\nstr=document.getElementById(\"stay-opt\").value;\nvar z = document.getElementById(\"meal\");\nif (str == 0){\nstay=pernight=breackfast=lunch=allinclusive=0;\n}else{\nvar x = str.split(\".\");\nstay=x[0];\npernight=x[1];\nbreackfast=x[2];\nlunch=x[3];\nallinclusive=x[4];\n\nif (x[4]== 0){\nswitch (z.length ){\ncase 4:\nz.remove(1);\n    break;}\n\n}else {\nif (z.length < 4){\nvar option = document.createElement(\"option\");\noption.text = \"All inclusive\";\nz.add(option, z[1]);\n}\n}\n}\nvar gg= assign_stays();\n}\nfunction assign_stays(){\nnight= document.getElementById(\"no-nights\").value;\nroom=document.getElementById(\"no-rooms\").value;\nmeal=document.getElementById(\"meal\").value;\nextrabreack=document.getElementById(\"extra-breackfast\").value;\nroom_cost = room *  pernight;\nmeal_cost = meal_costc();\nextra_breakfast= extrabreack*breackfast;\ntotal_stay_cost= night*(room_cost+meal_cost+extra_breakfast);\n}\n\nfunction meal_costc(){\nswitch (document.getElementById(\"meal\").value) {\n  case \"Breakfast only\":\n    return 0;\n    break;\n  case \"All inclusive\":\n    return (adults * allinclusive)+( child* allinclusive* 0.5);\n    break;\n  case \"Full board\":\n    return (adults * lunch*2)+( child* lunch);\n    break;\n  case \"Half board\":\n    return (adults * lunch)+( child* lunch* 0.5);\n      break;\n\n}\n}\n\nvar date, days,adults,child;\nfunction assign_dates(){\ndate= document.getElementById(\"adate\").value;\ndays=document.getElementById(\"days\").value;\nadults=document.getElementById(\"adults\").value;\nchild=document.getElementById(\"child\").value;\n\n}\n\nvar act1\nfunction myFunction() {\nvar activ= document.getElementById(\"activity\").value;\nif (activ == \"destin\"){\n      document.getElementById(\"select-dest\").classList.remove(\"hideme\");\n            document.getElementById(\"select-fulld\").classList.add(\"hideme\");\n            document.getElementById(\"select-scuba\").classList.add(\"hideme\");\n    }\n     else if (activ == \"fullday\"){\n            document.getElementById(\"select-fulld\").classList.remove(\"hideme\");\n            document.getElementById(\"select-scuba\").classList.add(\"hideme\");\n      document.getElementById(\"select-dest\").classList.add(\"hideme\");\n    \n} else if (activ == \"scuba\"){\n            document.getElementById(\"select-scuba\").classList.remove(\"hideme\");\n  document.getElementById(\"select-fulld\").classList.add(\"hideme\");\n      document.getElementById(\"select-dest\").classList.add(\"hideme\");\n    } \n   else {\n            document.getElementById(\"select-scuba\").classList.add(\"hideme\");\n  document.getElementById(\"select-fulld\").classList.add(\"hideme\");\n      document.getElementById(\"select-dest\").classList.add(\"hideme\");\n    } \n  }\nfunction clone() {\n  var tr= document.createElement(\"tr\");  \n\n var pax1=  document.getElementById(\"adults-dest\").value;\nvar pax2=  document.getElementById(\"child-dest\").value; \n\n  var td1= document.createElement(\"td\");          \ntd1.innerHTML = act1;                \ntr.appendChild(td1); \n\nvar td2= document.createElement(\"td\");          \ntd2.innerHTML = pax1;                \ntr.appendChild(td2); \n\nvar td3= document.createElement(\"td\");          \ntd3.innerHTML = pax2;                \ntr.appendChild(td3); \nvar td4= document.createElement(\"td\");          \nvar span1= document.createElement(\"span\");\ntd4.appendChild(span1); \ntr.appendChild(td4);\nspan1.innerHTML = \"remove\";  \nspan1.classList.add(\"fa\");\nspan1.classList.add(\"fa-close\");\nspan1.onclick = function() {removeit(event)};\ndocument.getElementById(\"t01\").appendChild(tr);\ndocument.getElementById(\"t01\").style.visibility = \"visible\";\ndocument.getElementById(\"pompa\").classList.add(\"hideme\");\ndocument.getElementById(\"activities\").style.maxHeight = \"fit-content\";\n\ndocument.getElementsByClassName(\"buttonizer-group-0-0-1\")[0].style.display=\"flex\";\n      document.getElementById(\"site-header\").style.top = \"0px\";\ndocument.getElementById('act-inf').classList.toggle(\"trans\");\n document.getElementById('toz').scrollIntoView()\n}\nfunction destinationselect(evt){\n  document.getElementById(\"addactivity\").classList.remove(\"hideme\");\n  document.getElementById(\"pax-activ\").classList.remove(\"hideme\");\nvar x= evt.currentTarget;\nact1=  x.value;\n\n  }\n\nfunction removeit(evt){\nvar x= evt.currentTarget;\nvar y=x.parentElement;\ny.parentElement.remove();\n}\n\nfunction submitit(){\nvar z = document.getElementById(\"meal\");\n document.getElementById(\"addproduct\").innerHTML = total_stay_cost+\"  \"+night+\"  \" + room_cost+\"  \"+ meal_cost+\"  \"+extra_breakfast;\n\n}\n\n\nvar coll = document.getElementsByClassName(\"collapsible\");\nvar id;\n\nfor (id = 0; id < coll.length; id++) {\n  coll[id].addEventListener(\"click\", function() {\n\n    var content = this.nextElementSibling;\n\nfor (id = 0; id < coll.length; id++) {\ncoll[id].classList.remove(\"activex\");\n    coll[id].nextElementSibling.style.maxHeight = null;\n      coll[id].nextElementSibling.style.margin= \"0px\";\n}\n    this.classList.toggle(\"activex\");\n    if (content.style.maxHeight){\n      content.style.maxHeight = null;\n      content.style.margin= \"0px\";\n\n    } else {\n      \n      content.style.maxHeight = content.scrollHeight + \"px\";\n     content.style.margin= \"5px\";\n    } \n  });\n}\n\nfunction submit_date(evt){\nevent.preventDefault();\ncoll[0].classList.remove(\"activex\");\n    coll[0].nextElementSibling.style.maxHeight = null;\n      coll[0].nextElementSibling.style.margin= \"0px\";\n      coll[1].nextElementSibling.style.maxHeight = \"fit-content\";\n     coll[1].nextElementSibling.style.margin= \"5px\";\ncoll[1].classList.add(\"activex\");\n\n    } \n \nfunction submit_stays(evt){\nevent.preventDefault();\ncoll[1].classList.remove(\"activex\");\n    coll[1].nextElementSibling.style.maxHeight = null;\n      coll[1].nextElementSibling.style.margin= \"0px\";\n      coll[2].nextElementSibling.style.maxHeight = \"fit-content\";\n     coll[2].nextElementSibling.style.margin= \"5px\";\ncoll[2].classList.add(\"activex\");\n\n    } \n \ndocument.getElementById(\"addact\").onclick = function() {inf('act-inf','toz')};\n\nvar cardofst;\nvar cardid;\nfunction inf(id,go) {\ndocument.getElementsByClassName(\"buttonizer-group-0-0-1\")[0].style.display=\"none\";\nvar xq,iq,xqq,iqq;\ndocument.getElementById(\"site-header\").style.top = \"-70px\"\nxq = document.getElementsByClassName(\"card-inf\");\n        for (iq = 0; iq < xq.length; iq++) {\n          xq[iq].classList.remove(\"hideme\");\nxq[iq].classList.remove(\"trans\");\n}\nvar y=document.getElementById(go);\ncardofst= y.offsetTop;\nvar x=document.getElementById(id);\nvar   pxl=(cardofst+\"px\");\n x.style.top = pxl;\n      x.classList.toggle(\"trans\");\n y.scrollIntoView();\n \t}\n function closeinf(id,go) {\ndocument.getElementsByClassName(\"buttonizer-group-0-0-1\")[0].style.display=\"flex\";\n      document.getElementById(\"site-header\").style.top = \"0px\";\n\n  var x=document.getElementById(id);\n      x.classList.toggle(\"trans\");\nvar y=document.getElementById(go);\n y.scrollIntoView();\n \t}\n\n\n-->\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_cat":[57],"product_tag":[58],"class_list":{"0":"post-8830","1":"product","2":"type-product","3":"status-publish","4":"hentry","5":"product_cat-package_calculator","6":"product_tag-package_calculator","8":"entry","9":"owp-thumbs-layout-horizontal","10":"owp-btn-normal","11":"owp-tabs-layout-horizontal","12":"has-no-thumbnails","13":"has-product-nav"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.7.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>package calculator - Bali Adventure Family<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"package calculator - Bali Adventure Family\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Bali Adventure Family\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BaliAdvFamily\/\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-11T07:58:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/bali-family.com\/#organization\",\"name\":\"bali adventure family\",\"url\":\"https:\/\/bali-family.com\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/BaliAdvFamily\/\",\"https:\/\/www.instagram.com\/bali_adventure_family\/\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bali-family.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bali-family.com\/wp-content\/uploads\/2020\/11\/logo.jpg\",\"contentUrl\":\"https:\/\/bali-family.com\/wp-content\/uploads\/2020\/11\/logo.jpg\",\"width\":300,\"height\":58,\"caption\":\"bali adventure family\"},\"image\":{\"@id\":\"https:\/\/bali-family.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bali-family.com\/#website\",\"url\":\"https:\/\/bali-family.com\/\",\"name\":\"Bali Adventure Family\",\"description\":\"Bali tour package for Family honeymoon diving stays full day trips\",\"publisher\":{\"@id\":\"https:\/\/bali-family.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bali-family.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#webpage\",\"url\":\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/\",\"name\":\"package calculator - Bali Adventure Family\",\"isPartOf\":{\"@id\":\"https:\/\/bali-family.com\/#website\"},\"datePublished\":\"2021-05-17T07:51:08+00:00\",\"dateModified\":\"2022-03-11T07:58:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bali-family.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shop\",\"item\":\"https:\/\/bali-family.com\/index.php\/shop\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"package calculator\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"package calculator - Bali Adventure Family","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/","og_locale":"en_US","og_type":"article","og_title":"package calculator - Bali Adventure Family","og_url":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/","og_site_name":"Bali Adventure Family","article_publisher":"https:\/\/www.facebook.com\/BaliAdvFamily\/","article_modified_time":"2022-03-11T07:58:49+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/bali-family.com\/#organization","name":"bali adventure family","url":"https:\/\/bali-family.com\/","sameAs":["https:\/\/www.facebook.com\/BaliAdvFamily\/","https:\/\/www.instagram.com\/bali_adventure_family\/"],"logo":{"@type":"ImageObject","@id":"https:\/\/bali-family.com\/#logo","inLanguage":"en-US","url":"https:\/\/bali-family.com\/wp-content\/uploads\/2020\/11\/logo.jpg","contentUrl":"https:\/\/bali-family.com\/wp-content\/uploads\/2020\/11\/logo.jpg","width":300,"height":58,"caption":"bali adventure family"},"image":{"@id":"https:\/\/bali-family.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/bali-family.com\/#website","url":"https:\/\/bali-family.com\/","name":"Bali Adventure Family","description":"Bali tour package for Family honeymoon diving stays full day trips","publisher":{"@id":"https:\/\/bali-family.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bali-family.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#webpage","url":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/","name":"package calculator - Bali Adventure Family","isPartOf":{"@id":"https:\/\/bali-family.com\/#website"},"datePublished":"2021-05-17T07:51:08+00:00","dateModified":"2022-03-11T07:58:49+00:00","breadcrumb":{"@id":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bali-family.com\/index.php\/product\/package-calculator-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bali-family.com\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/bali-family.com\/index.php\/shop\/"},{"@type":"ListItem","position":3,"name":"package calculator"}]}]}},"_links":{"self":[{"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/product\/8830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/comments?post=8830"}],"wp:attachment":[{"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/media?parent=8830"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/product_cat?post=8830"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/bali-family.com\/index.php\/wp-json\/wp\/v2\/product_tag?post=8830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}