<!doctype html>
<html prefix='og: http://ogp.me/ns#'>
<head>
    <script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');  ga('create', 'UA-102582581-1', 'auto');  ga('send', 'pageview');</script>
        <!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '834085480054351'); // Insert your pixel ID here.
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=834085480054351&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
    <meta charset="UTF-8">
    <link rel="icon" href="images/favicon.ico" type="image/x-icon">
    <title>Biore Z</title>
    <meta property="og:title" content="Biore排汗爽身淨味劑 ">
    <meta property="og:type" content="website">
    <meta property="og:description" content="盡情流汗一整天，不怕異味突襲！【分享抽正品】分享TVC就有機會獲得商品喔！">
    <meta property="og:url" content="http://www.kaobiorez.com.tw/testabc">
    <meta property="og:image" content="http://www.kaobiorez.com.tw/images/fb_img.jpg">
    <link href="test/style.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/plugins/sweetalert.min.css">
</head>
<body>
     <!-- Lightning Bolt Begins -->
    <script type="text/javascript" id="lightning_bolt" src="//cdn-akamai.mookie1.com/LB/LightningBolt.js"></script>
    <!-- Lightning Bolt Ends -->
<!--#include virtual="/common/tw/header.shtml" -->
<!--img src="/images/kao_common_header_ci.gif" /-->
<div class="header hide"></div>
<div class="navbar">
    <img src="images/logo.svg" class="logo">
    <ul>
        <li><a onclick="sampling_done();" target="_blank">千人試用募集</a></li>
        <li><a href="#box1">關於Biore Z</a></li>
        <li><a href="#box2">日本突破新技術</a></li>
        <li><a href="#box3">廣告分享</a></li>
        <li><a href="javascript:alert('活動尚未開始，敬請期待');">使用心得分享</a></li>
        <li><a href="#box5">Q&amp;A</a></li>
        <li><a href="javascript:alert('活動尚未開始，敬請期待');">活動報導</a></li>
        <li><a href="https://www.facebook.com/bioretw/" target="_blank">Biore 紛絲頁</a></li>
        <li><a href="https://www.kaosmile.com.tw/product_list.html?get_lv1=%E8%8A%B1%E7%8E%8B%E5%85%A8%E7%B3%BB%E5%88%97%E5%93%81%E7%89%8C&get_lv2=Biore&get_lv3=%E6%8E%92%E6%B1%97%E7%88%BD%E8%BA%AB%E6%B7%A8%E5%91%B3%E5%8A%91" target="_blank">立即購買</a>
        </li>
        <li><a href="javascript:alert('活動尚未開始，敬請期待');">得獎名單</a></li>
    </ul>
    <img src="images/sub-logo.svg" class="sub-logo">
</div>
<div class="navbar-bg"></div>
<div class="wallpaper">
    <div id="home">
        <div class="banner">
            <div class="b1">
                <div class="section section1">
                    <a onclick="sampling_done();" class="go_sampling"><img src="images/banner-01a.png" class="p1 animated shake go"></a>
                    <img src="images/banner-01b.png" class="p2 animated bounceIn go" data-id="2">
                </div>
            </div>
            <div class="b2">
                <div class="section section2">
                    <a onclick="sampling_done();" class="go_sampling"><img src="images/banner-02c.png" class="p3 animated fadeIn"></a>
                    <img src="images/banner-02b.png" class="p2 animated fadeIn">
                    <img src="images/banner-02a.png" class="p1">
                </div>
            </div>
<!--
            <div class="b3">
                <div class="section section3">
                    <a onclick="sampling_done();" target="_blank"><img src="images/banner-03a.png" class="p1 animated shake go"></a>
                    <img src="images/banner-03b.png" class="p2 animated bounceIn2">
                </div>
            </div>
-->
        </div>
    </div>
    <div class="small-banner section">
        <button onclick="sampling_done();" class="go_sampling"><img src="images/data-banner.jpg"></button>
    </div>
    <div class="small-banner section">
        <a href="reviews" target="_blank" class="go_sampling"><img src="images/reviews-banner.jpg"></a>
    </div>
    <div id="box1" class="products section">
        <div class="pbox"><img src="images/products.png" usemap="#Map" class="center">
          <map name="Map">
            <area shape="rect" coords="1,234,312,712" href="https://www.kaosmile.com.tw/product_list.html?get_lv1=%E8%8A%B1%E7%8E%8B%E5%85%A8%E7%B3%BB%E5%88%97%E5%93%81%E7%89%8C&get_lv2=Biore&get_lv3=%E6%8E%92%E6%B1%97%E7%88%BD%E8%BA%AB%E6%B7%A8%E5%91%B3%E5%8A%91" target="_blank">
            <area shape="rect" coords="326,233,657,711" href="https://www.kaosmile.com.tw/product_list.html?get_lv1=%E8%8A%B1%E7%8E%8B%E5%85%A8%E7%B3%BB%E5%88%97%E5%93%81%E7%89%8C&get_lv2=Biore&get_lv3=%E6%8E%92%E6%B1%97%E7%88%BD%E8%BA%AB%E6%B7%A8%E5%91%B3%E5%8A%91" target="_blank">
          </map>
        </div>
        <div class="box1-a animatedParent" data-appear-top-offset="400">
            <img src="images/products-1.png" class="box1-left animated bounceIn">
            <img src="images/products2.png" class="box1-right animated bounceIn delay-1000" data-id="2">
        </div>
    </div>
    <div id="box2" class="technology section">
        <img src="images/technology.png" class="center">
        <div class="youtube"><iframe width="585" height="415" src="https://www.youtube.com/embed/MUOqHmrNxpc?ecver=2&rel=0" frameborder="0" allowfullscreen></iframe></div>
        <div class="animatedParent" data-appear-top-offset="500">
            <img src="images/technology-1.png" class="center people2 animated fadeIn">
        </div>
    </div>
    <div id="box3" class="section">
        <div class="mov animatedParent" data-appear-top-offset="-650">
            <div class="youtube"><iframe width="961" height="538" src="https://www.youtube.com/embed/Dz1H0VdGvwU?rel=0" frameborder="0" allowfullscreen></iframe></div>
            <!--<a href="http://www.facebook.com/sharer/sharer.php?u=" class="share-btn" target="_blank"><img src="images/share-btn.png" class="center"></a>//-->
            <button onclick="login();" class="share-btn"><img src="images/share-btn.png" class="center"></button>
            <img src="images/mov-bg3.png" class="mov-bg3 animated bounceIn">
        </div>
    </div>
    <div id="box4" class="section share-out animatedParent hide" data-appear-top-offset="50">
        <h2><img src="images/share-title.png" class="center"></h2>
        <div class="scrollbar-inner">
            <div class="share-box">
                <h3><img src="images/share-sub-title1.png"></h3>
                <ul>
                    <li><img src="images/share-1.png"></li>
                </ul>
            </div>
            <div class="share-box">
                <h3><img src="images/share-sub-title2.png"></h3>
                <ul>
                    <li><img src="images/share-2.png"></li>
                    <li><img src="images/share-2.png"></li>
                    <li><img src="images/share-2.png"></li>
                    <li><img src="images/share-2.png"></li>
                    <li><img src="images/share-2.png"></li>
                    <li><img src="images/share-2.png"></li>
                </ul>
            </div>
        </div>
        <img src="images/share-bg2.png" class="share-p animated fadeInRightShort">
    </div>
    <div id="box5" class="section" style="margin-top: 90px;">
        <h2><img src="images/qa-title.png" class="center"></h2>
        <div class="qa-box">
            <div>
                <ul class="qa">
                    <li><img src="images/q1.png"></li>
                    <li><img src="images/q2.png"></li>
                    <li><img src="images/q3.png"></li>
                </ul>
            </div>
            <div>
                <ul class="qa">
                    <li><img src="images/q4.png"></li>
                    <li><img src="images/q5.png"></li>
                    <li><img src="images/q6.png"></li>
                </ul>
            </div>
            <div>
                <ul class="qa">
                    <li><img src="images/q7.png"></li>
                    <li><img src="images/q8.png"></li>
                    <li><img src="images/q9.png"></li>
                </ul>
            </div>
        </div>
        
    </div>
    <div id="box6" class="section hide">
        <h2 class="animatedParent" data-appear-top-offset="200">
            <img src="images/news-title.png" class="center">
            <img src="images/news-left.png" class="people3 left animated fadeInLeftShort">
            <img src="images/news-right.png" class="people3 right animated fadeInRightShort">
        </h2>
        <div>
            <div class="news">
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
                <div>
                    <div class="item"><img src="images/news.jpg"></div>
                </div>
            </div>
        </div>
    </div>
<input type="hidden" name="_token" id="token" value="<?php echo e(csrf_token()); ?>">
</div>
<div class="footer hide"></div>
<!--#include virtual="/common/tw/footer.shtml" -->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/jquery.parallaxify.min.js"></script>
<script src="assets/css3-animate-it/css3-animate-it.js"></script>
<script src="assets/jquery.scrollbar/jquery.scrollbar.min.js"></script>
<script src="/js/plugins/sweetalert.min.js"></script>
<script src="assets/slick/slick.min.js"></script>
<script>
$(function(){
    setMenu( $(window).scrollTop() );
    $(window).scroll(function(){
        
        if( $(this).scrollTop()>74 ) {
            $(".navbar").addClass('fixtop');
            $(".navbar-bg").addClass('fixed');
        } else {
            $(".navbar").removeClass('fixtop');
            $(".navbar-bg").removeClass('fixed');
        }
        setMenu( $(window).scrollTop() );
        
    });
    
    $('.banner').slick({
        autoplay: true,
        autoplaySpeed: 3000,
        dots: true,
        arrows: true
    });
    
    $('.banner').on("afterChange", function(slick, currentSlide){
        var i = currentSlide.currentSlide;
        $('.banner img').not(".banner .b1 .p1").removeClass("go");
        switch(i) {
            case 0:
                //$(".banner .b1 .p1").addClass("go");
                setTimeout(function(){ $(".banner .b1 .p2").addClass("go"); }, 400);
                break;
            case 1:
                $(".banner .b2 .p2").addClass("go");
                setTimeout(function(){ $(".banner .b2 .p3").addClass("go"); }, 400);
                break;
            case 2:
                $(".banner .b3 .p1").addClass("go");
                $(".banner .b3 .p2").addClass("go");
                break;
        }
    });
    
    $('.news').slick({        
        dots: true,
        arrows: true,
        infinite: true,
        slidesToShow: 2,
        slidesToScroll: 1
    });
    
    $('.qa-box').slick({        
        dots: true,
        arrows: true,
        infinite: true,
        adaptiveHeight: true
    });
    
    $(".navbar a[href^='#box']").on("click", function(){
        var id = $(this).attr('href');
        $(window).scrollTo(id, 800, {offset:{top:-90}});
        return false;
    });
    
    $('.scrollbar-inner').scrollbar();
    
    $.parallaxify({
        horizontalParallax: true,
        verticalParallax: false,
        parallaxBackgrounds: true,
        parallaxElements: true,
        positionProperty: 'position',
        responsive: false,
        useMouseMove: true,
        useGyroscope: true,
        alphaFilter: 0.9,
        motionType: 'natural',
        mouseMotionType: 'gaussian',
        inputPriority: 'mouse',
        motionAngleX: 80,
        motionAngleY: 80,
        adjustBasePosition: true,
        alphaPosition: 0.05,
    });
});
    
function getID(t) {
    var overBtn;
    var t=t+100;
    $.each( $(".navbar a[href^='#box']") ,function(i,o) {
        var id = $(o).attr('href');
        var p1 = $(id).offset().top;
        var p2 = $(id).offset().top+$(id).outerHeight();
        if( t>p1 && t<p2) {
            overBtn = id;
            return;
        }
    });
    return overBtn;
}
    
function setMenu(t) {
    $(".navbar a[href^='#box']").removeClass("selected");
    var i = getID(t);
    if( $(".navbar a[href='"+i+"']").length == 1 ) {
        $(".navbar a[href='"+i+"']").addClass("selected");
    }
}
</script>
<script type="text/javascript">
    $('.go_sampling').click(function() {
        fbq('track', 'BioreZ_ToSample');
    });
</script>
<script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 857997229;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/857997229/?guid=ON&amp;script=0"/>
    </div>
</noscript>
<!-- Lightning Bolt Begins -->
    <script type="text/javascript" id="lightning_bolt" src="//cdn-akamai.mookie1.com/LB/LightningBolt.js"></script>
    <!-- Lightning Bolt Ends -->


<script src="/js/jquery.cookie.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/zh_TW/all.js"></script>
<script type="text/javascript">
    <?php echo $__env->make("partials.message", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    window.fbAsyncInit = function(){ //fb初始化
        FB.init({
            appId:'459747734404483',
            cookie : true,
            xfbml:true,
            version:'v2.8'
        });
        //Login();
    };
    (function(d){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     ref.parentNode.insertBefore(js, ref);
    }(document));
    localStorage.clear();
    $.cookie('name', null);
    $.cookie('post', null);

    function login()
    {   
        FB.login(function(response) {
           if (response.authResponse) 
           {
                console.log(response);
                FB.api(
                   "/me",
                   function (response) {
                    // console.log(response);
                    if (response && !response.error) {
                            var name=response.name;
                            var user_id=response.id;
                            $("#fb_username").val(name);
                            $.cookie("name", name, { expires: 1 ,path:'/' });//cookie紀錄一天"path:/"為整個網站有效
                            $.cookie("user_id", user_id, { expires: 1 ,path:'/' });//cookie紀錄一天"path:/"為整個網站有效
                    }
                  }
                );
                login_success();
            } else
            {
             console.log('User cancelled login or did not fully authorize.');
            }
         },{scope: 'public_profile'});
    }
    function login_success(){
         FB.ui({
          method: 'share',
          mobile_iframe: true,
          href: 'http://www.kaobiorez.com.tw/testabc',
          display: 'touch',
        }, function(response){
            $.cookie("post_id", response.post_id, { expires: 1 ,path:'/' });
            console.log(response);
            $.ajax({
                url: "fb_submit",
                type: "POST",
                data: {
                    _method: "POST",
                    _token: $('#token').val(),
                    fb_name: $.cookie("name"),
                    fb_id: $.cookie("user_id"),
                },
                dataType: "json",
            }).done(function(r){
                console.log(r);
                if( r.status==0 ) {
                    location.href = "/fb";
                } else {
                }
            });

        });
    }

function sampling_done() {
    swal({
        title: "試用品已索取完畢！",
        text: '立即參與使用心得分享與廣告分享活動就有機會獲得Biore Z 正品！',
        type: "success"
    });
}
    

</script>

</body>
</html>