<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel=icon type=image/png href="data:image/png;base64,iVBORw0KGgo=">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{{$title}}</title>
    <style>
        /*
       html5doctor.com Reset Stylesheet
       v1.4.1
       2010-03-01
       Author: Richard Clark - http://richclarkdesign.com
       */

        html,
        body,
        div,
        span,
        object,
        iframe,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        blockquote,
        pre,
        abbr,
        address,
        cite,
        code,
        del,
        dfn,
        em,
        img,
        ins,
        kbd,
        q,
        samp,
        small,
        strong,
        sub,
        sup,
        var,
        b,
        i,
        dl,
        dt,
        dd,
        ol,
        ul,
        li,
        fieldset,
        form,
        label,
        legend,
        table,
        caption,
        tbody,
        tfoot,
        thead,
        tr,
        th,
        td,
        article,
        aside,
        canvas,
        details,
        figcaption,
        figure,
        footer,
        header,
        hgroup,
        menu,
        nav,
        section,
        summary,
        time,
        mark,
        audio,
        video {
            margin: 0;
            padding: 0;
            border: 0;
            outline: 0;
            font-size: 100%;
            vertical-align: baseline;
            background: transparent;
        }

        html {
            background: #fff;
        }

        body {
            line-height: 1.5;
            font-size: 0.24rem;
            font-family: "Microsoft YaHei";
            margin: auto;
            max-width: 750px;
        }

        :focus {
            outline: 1;
        }

        article,
        aside,
        canvas,
        details,
        figcaption,
        figure,
        footer,
        header,
        hgroup,
        menu,
        nav,
        section,
        summary {
            display: block;
        }

        ul {
            list-style: none;
        }

        blockquote,
        q {
            quotes: none;
        }

        blockquote:before,
        blockquote:after,
        q:before,
        q:after {
            content: "";
            content: none;
        }

        a {
            margin: 0;
            padding: 0;
            border: 0;
            font-size: 100%;
            vertical-align: baseline;
            background: transparent;
            text-decoration: none;
        }

        ins {
            background-color: #ff9;
            color: #000;
            text-decoration: none;
        }

        mark {
            background-color: #ff9;
            color: #000;
            font-style: italic;
            font-weight: bold;
        }

        del {
            text-decoration: line-through;
        }

        abbr[title],
        dfn[title] {
            border-bottom: 1px dotted #000;
            cursor: help;
        }

        table {
            border-collapse: collapse;
            border-spacing: 0;
        }

        hr {
            display: block;
            height: 1px;
            border: 0;
            border-top: 1px solid #cccccc;
            margin: 0;
            padding: 0;
        }

        input,
        select {
            vertical-align: middle;
            padding: 0;
            margin: 0;
        }

        input[type="button"],
        input[type="submit"],
        input[type="reset"] {
            -webkit-appearance: none;
        }

        img {
            -webkit-tap-highlight-color: transparent;
        }

        html {
            background: #f2f2f2;
        }

        html, body {
            max-width: 500px;
            font-size: 100px;
        }

        .main {
            position: relative;
        }

        .container {
            position: fixed;
            top: 1.2rem;
            bottom: 0;
            left: 0.125rem;
            right: 0.125rem;
            background: #fff;
            color: #333;
        }

        .head-box {
            position: absolute;
            top: -0.6rem;
            left: 50%;
            transform: translateX(-50%);
            line-height: 1;
            text-align: center
        }

        .head-box .head {
            width: 0.65rem;
            height: 0.65rem;
        }

        .head-box .shadow {
            position: absolute;
            width: 0.75rem;
            left: 50%;
            top: 0.9rem;
            height: auto;
            transform: translateX(-50%);
        }

        .wrapper {
            position: absolute;
            bottom: 0;
            top: 0.45rem;
            overflow: scroll;
        }

        .notice-text {
            margin-top: .05rem;
            font-size: 0.14rem;
            padding: 0 0.2rem;
        }

        .notice-text .title {
            margin-bottom: 0.1rem;
            font-size: 0.17rem;
            font-weight: 500;
            color: #420A1E;;
        }

        .notice-text .text {
            text-indent: 2em;
            font-weight: 500;
            color: #420A1E;
            line-height: 1.65;
        }

        .notice-text .text i {
            font-style: normal;
            font-weight: bold;
            color: #f14747;
        }

        .qrcode {
            text-align: center;
            margin-top: 0.15rem;
            line-height: 1;
            padding-bottom: 0.5rem;
            font-size: 0;
        }

        .qrcode img {
            width: 2.4rem;
            height: 2.4rem;
        }

        .friend {
            font-size: 0.13rem;
            color: #333;
            margin-top: 0rem;
            text-align: center;
        }

        .friend i {
            font-style: normal;
            color: #f14747;
        }

        .qrcode .read-qr {
            font-size: 0.17rem;
            color: #f14747;
            font-weight: bold;
        }

        @media screen and (min-width: 414px) {

            .head-box {
                top: -.5rem;
            }

            .head-box .head {
                width: 0.7rem;
                height: 0.7rem;
            }

            .wrapper {
                top: 0.5rem;
            }

            .notice-text {
                font-size: .2rem;
            }

            .notice-text .title {
                font-size: .22rem;
            }

            .qrcode {
                margin-top: .2rem;
            }

            .friend {
                margin-bottom: .1rem;
                font-size: .15rem;
            }

            .qrcode .read-qr {
                font-size: .2rem;
            }
        }

        @media screen and (max-width: 320px) {
            .notice-text {
                padding: 0 .15rem;
            }

            .qrcode {
                margin-top: .2rem;
            }

            .qrcode img {
                width: 2.4rem;
                height: 2.4rem;
            }
        }

        ul,
        li {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .wrapper1 {
            width: 85%;
            height: 35px;
            overflow: hidden;
            margin: .2rem auto 0;
            background: #e6e6e6;
            font-size: 0.12rem;
            color: #666;
            border-radius: 50px;
            padding: 2px;
        }

        ul::after {
            content: "";
            display: block;
            clear: both;
        }

        ul {
            position: relative;
            transform: translate3d(0, 0, 0);
        }

        li {
            width: 100%;
            height: 37px;
            line-height: 37px;
            text-align: center;
        }

        li .item {
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .item img {
            width: 35px;
            height: 35px;
            border-radius: 50%;
        }

        .item span {
            font-weight: bold;
            margin-left: 0.06rem;
        }

        .item i {
            font-style: normal;
        }

        .top {
            top: 0.8rem;
        }
    </style>
</head>
<body>
<section class="main">
    @if($template == 3)
        <div class="wrapper1">
            <ul>
                <li>
                    <p class="item">
                        <img
                                src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/1.png"
                                alt=""
                        />
                        <span>梅子：</span><i>这本小说超好看的，点赞</i>
                    </p>
                </li>
                <li>
                    <p class="item">
                        <img
                                src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/2.png"
                                alt=""
                        />
                        <span>柒柒：</span><i>关注了真有大礼包，领了2000书币</i>
                    </p>
                </li>
                <li>
                    <p class="item">
                        <img
                                src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/3.png"
                                alt=""
                        />
                        <span>月月：</span><i>好看的小说真多，每天都能领书币</i>
                    </p>
                </li>
                <li>
                    <p class="item">
                        <img
                                src="https://cdn-novel.iycdm.com/h5/subscribe/headimg/1.png"
                                alt=""
                        />
                        <span>梅子：</span><i>这本小说超好看的，点赞</i>
                    </p>
                </li>
            </ul>
        </div>
    @endif

    @if($template == 3)
        <div class="container">
            @else
                <div class="container top">
                    @endif

                    <div class="head-box">
                        <img src="{{$head_img}}" alt="" class="head">
                        <img src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MiA3OS4xNjA5MjQsIDIwMTcvMDcvMTMtMDE6MDY6MzkgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9In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G8vlm4UxjrA3l8jF10Z6QOiXvouz0pA6Je7jCnFv3gBvL3Ed1G5Aarmxs2bwNVzI53G/KAF+ObTlcBdTrPRsAuAAAAAAAAAOlNWgZOR5qQKtNVgZOSx6wMZuU4xg46IrADCfkTON9eVAHLP20z31Q1gcs/aTuKWev+AOSfsZ236rTmA5Z/Hcx5mnmsA55vGcx5nHXHcBlN4vmVtPFeyQFP1fMsy/IC68XzK0ni/Zgay+M5izPTV/aA6ZPH8yqm+uAHVJ2M8c9IHXJ2kyoeaoDqk7aZZnT66KYAdMvJdHpDKlgdEvLapg46ttYGqkteoDSEagLqRuugDRKCgBIAAAAAAAAAAAiCsWoCOCWzECOBX4bgK9JXakBD5KyitjAr0JbJcdwEfXluy/yBT6snxxQD6snxxQD6snxxQD6snxxQD6snxh6r2Av9eW7L/IE9CX4y4gWXJWUX7gT0ldqQFuBX4bgJ4JdOVwEwSqSAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="
                             alt="" class="shadow">
                        {{-- <p class="friend"><i>{{$num}}</i>位好友正在读</p>--}}
                    </div>
                    <div class="wrapper">
                        <div class="notice-text">
                            <p class="title">亲爱的读者：</p>
                            <p class="text">因版权问题，请关注作者授权公众号，方便<i>继续阅读</i>。关注后可看海量精品小说，更有签到双重礼包</p>
                        </div>
                        <div class="qrcode">
                            <div class="now-see" style="
font-size: .12rem;
text-align: center;
"><span style="
color: #F14747;
font-weight: bold;
">{{$num}}</span>位好友正在看
                            </div>
                            <img src="{{$img}}" alt="">
                            <p class="read-qr">长按上图识别二维码关注</p>
                        </div>
                    </div>
                </div>
</section>
@if($template == 3)
    <script>
        var itemHeight = 38;
        var wrapperLen = document.querySelectorAll("li").length;
        var scrollWrapper = document.querySelector("ul");
        var initTop = 0;
        var current = -1;
        var timer = null;

        function initAnimate() {
            cancelAnimationFrame(timer);
            timer = requestAnimationFrame(function s() {
                var currentTop = itemHeight * (current + 1);
                if (initTop < currentTop) {
                    initTop++;
                    scrollWrapper.style.top = -initTop + "px";
                    timer = requestAnimationFrame(s);
                } else cancelAnimationFrame(timer);
            });
        }

        function initAutoplay() {
            // initAnimate();
            setInterval(function () {
                if (current < wrapperLen - 2) current++;
                else {
                    current = 0;
                    initTop = 0;
                }
                initAnimate();
            }, 3000);
        }
        initAutoplay();
    </script>
@endif
</body>
</html>