Skip to content

Commit 5aa6368

Browse files
author
jay
committed
网站改版-取消弹框提醒
1 parent e92cf48 commit 5aa6368

File tree

5 files changed

+59
-162
lines changed

5 files changed

+59
-162
lines changed

_includes/footer.html

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -71,46 +71,6 @@
7171
</div>
7272
<!--//page-wrapper-->
7373

74-
<!-- 弹框 -->
75-
<div class="mask_tip">
76-
<div class="tip">
77-
<!-- <a class="cancel" href="javascript:;">&times;</a> -->
78-
<p class="tip_1">抱歉弹框打扰,系统检测到您今日累计浏览时长已达120秒。如果我们的项目对您有帮助,在
79-
<a href="javascript:;" class="cancel_btn_2">关闭</a>窗口之前,希望能够阅读弹框内容,帮助我们变得更好。</p>
80-
<p class="tip_2">
81-
<span>一个成功的项目,实现功能只是基础,合理的架构,对资源的调度能力才是灵魂。</span>
82-
<span>PHPZlc, 致力于在Symfony的基础上提供“知行合一”的项目开发方案。</span>
83-
</p>
84-
<p class="tip_1">如果您有关切问题和好的想法:</p>
85-
<textarea class="input_1" id="advice" placeholder="请输入内容"></textarea>
86-
<div class="send">
87-
<textarea class="input_2" id="contact" placeholder="请输入联系信息(选填)"></textarea>
88-
<p class="tips"></p>
89-
<p class="send_btn">提交</p>
90-
</div>
91-
<p class="tip_1">如果您想帮助我们,可以为我们点亮星星,也可以提供资金支持。</p>
92-
<div class="zanzhu">
93-
<a href="https://github.com/phpzlc/phpzlc" target="_blank">前往Github,为我们点亮星星</a>
94-
<a class="dashan" href="https://github.com/phpzlc/phpzlc/blob/master/sponsor.md" target="_blank">打赏,赞助,提供资金物质支持</a>
95-
</div>
96-
<p class="tip_1">您还可以通过以下渠道,关注我们,获取最新的框架动态,帮助项目获取人气,扩大影响力。</p>
97-
<div class="img">
98-
<a href="https://jq.qq.com/?_wv=1027&k=ZpwdagVG" target="_blank">
99-
<img src="https://phpzlc.com/assets/images/qq-qun.png" alt="">
100-
<span>技术交流群</span>
101-
</a>
102-
<a href="https://www.zhihu.com/people/phpzlc" target="_blank">
103-
<img src="https://phpzlc.com/assets/images/zhihu-1.png" alt="">
104-
<span>PHP知了虫</span>
105-
</a>
106-
</div>
107-
<div class="do">
108-
<p class="tip_3">开源伙伴招募:<a class="link_3" href="https://phpzlc.com/blog/11.html" target="_blank">https://phpzlc.com/blog/11.html</a></p>
109-
<p class="tip_3">由于我们无法获取您是否已经是我们的会员了,所以此弹框每日都会弹出一次,<a href="javascript:;" class="cancel_btn">关闭</a></p>
110-
</div>
111-
</div>
112-
</div>
113-
11474
<footer class="footer text-center">
11575
<div class="container">
11676
<!--/* This template is free as long as you keep the footer attribution link. If you'd like to use the template without the attribution link, you can buy the commercial license via our website: themes.3rdwavemedia.com Thank you for your support. :) */-->
@@ -149,7 +109,6 @@
149109
<script type="text/javascript" src="/assets/plugins/prism/prism.js"></script>
150110
<script type="text/javascript" src="/assets/plugins/jquery-scrollTo/jquery.scrollTo.min.js"></script>
151111
<script type="text/javascript" src="/assets/plugins/lightbox/dist/ekko-lightbox.min.js"></script>
152-
<script type="text/javascript" src="/assets/js/tip.js"></script>
153112
<script type="text/javascript">
154113
$(function () {
155114
$("#a_local_url").text(localBaseUrl());
@@ -179,7 +138,7 @@
179138
window.open("https://jq.qq.com/?_wv=1027&k=ZpwdagVG")
180139
});
181140

182-
$(".qq_join").click(function(){
141+
$(".zhihu_join").click(function(){
183142
// window.location.href = "https://jq.qq.com/?_wv=1027&k=ZpwdagVG";
184143
window.open("https://www.zhihu.com/people/phpzlc")
185144
})

assets/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,6 +1616,10 @@ select {
16161616
cursor: pointer;
16171617
}
16181618

1619+
.zhihu_join {
1620+
cursor: pointer;
1621+
}
1622+
16191623
.share {
16201624
display: flex;
16211625
justify-content: flex-end;

assets/css/tip.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
}
44

55
.mask_tip {
6-
position: fixed;
7-
bottom: 0;
8-
left: 0;
9-
z-index: 1000;
10-
display: none;
11-
width: 100%;
12-
height: 100%;
13-
background-color: rgba(0, 0, 0, 0.5);
14-
overflow-y: scroll;
6+
/*position: fixed;*/
7+
/*bottom: 0;*/
8+
/*left: 0;*/
9+
/*z-index: 1000;*/
10+
/*display: none;*/
11+
/*width: 100%;*/
12+
/*height: 100%;*/
13+
/*background-color: rgba(0, 0, 0, 0.5);*/
14+
/*overflow-y: scroll;*/
15+
max-width: 860px;
16+
margin-left: auto;
17+
margin-right: auto;
1518
}
1619

1720
.mask_tip::-webkit-scrollbar {

assets/js/tip.js

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,7 @@
11
$(function(){
22
var show_id = '';
33

4-
// 设置Cookie
5-
function setCookie(cname,cvalue,exdays){
6-
var d = new Date();
7-
// d.setTime(d.getTime()+(exdays*24*60*60*1000));
8-
d.setTime(d.getTime()+(exdays*1000));
9-
var expires = "expires="+d.toGMTString();
10-
document.cookie = cname+"="+cvalue+"; "+expires;
11-
}
12-
13-
// 获取Cookie
14-
function getCookie(cname){
15-
var name = cname + "=";
16-
var ca = document.cookie.split(';');
17-
for(var i=0; i<ca.length; i++) {
18-
var c = ca[i].trim();
19-
if (c.indexOf(name)==0) { return c.substring(name.length,c.length); }
20-
}
21-
return "";
22-
}
23-
24-
// 判断是否有Cookie
25-
function checkCookie(){
26-
var user=getCookie("username");
27-
if (user!=""){
28-
alert("欢迎 " + user + " 再次访问");
29-
}
30-
else {
31-
user = prompt("请输入你的名字:","");
32-
if (user!="" && user!=null){
33-
setCookie("username",user,10);
34-
}
35-
}
36-
}
37-
38-
// 判断Cookie是否存在
39-
if(window.localStorage.getItem('time_ready') == null){
40-
if(getCookie('name') == ''){
41-
// console.log('Cookie不存在');
42-
window.localStorage.removeItem('time');
43-
window.localStorage.setItem('time_ready',true);
44-
setCookie('name','Noir1','216000');
45-
if(window.localStorage.getItem('time') == null){
46-
var num = 0;
47-
}else {
48-
var num = window.localStorage.getItem('time');
49-
}
50-
var timer = setInterval(() => {
51-
num++;
52-
if(num >= 120){
53-
show();
54-
window.localStorage.removeItem('time_ready');
55-
clearInterval(timer);
56-
}else {
57-
window.localStorage.setItem('time',num);
58-
// console.log(num);
59-
}
60-
}, 1000);
61-
}else {
62-
// console.log(getCookie('name'));
63-
window.localStorage.removeItem('time');
64-
window.localStorage.removeItem('time_ready');
65-
}
66-
}else {
67-
if(window.localStorage.getItem('time') == null){
68-
var num = 0;
69-
}else {
70-
var num = window.localStorage.getItem('time');
71-
}
72-
var timer = setInterval(() => {
73-
num++;
74-
if(num >= 120){
75-
show();
76-
window.localStorage.removeItem('time_ready');
77-
clearInterval(timer);
78-
}else {
79-
window.localStorage.setItem('time',num);
80-
// console.log(num);
81-
}
82-
}, 1000);
83-
}
84-
85-
$(".cancel_btn").click(function(){
86-
hide();
87-
})
88-
89-
$(".cancel_btn_2").click(function(){
90-
hide();
91-
})
92-
934
function show(){
94-
$(".mask_tip").css({"display":"block"});
955
$.ajax({
966
url: "https://api.phpzlc.com/api/feedback/show",
977
data: {
@@ -106,14 +16,11 @@ $(function(){
10616
});
10717
}
10818

109-
function hide(){
110-
$(".mask_tip").css({"display":"none"});
111-
}
19+
show();
11220

11321
$(".send_btn").click(function(){
11422
var advice = $("#advice").val();
11523
var contact = $("#contact").val();
116-
// console.log(advice,contact);
11724
$.ajax({
11825
url: "https://api.phpzlc.com/api/feedback/submit",
11926
data: {

index.html

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,30 @@ <h1 class="logo">
5656
</header>
5757
<!--//header-->
5858

59-
<div class="teaching_video">
60-
<div class="teaching_video_box">
61-
<iframe
62-
style="
63-
display: block;
64-
margin: 0 auto;
65-
"
66-
src="//player.bilibili.com/player.html?aid=632791391&bvid=BV1Wb4y1U7Av&cid=404291182&page=1"
67-
allowfullscreen="allowfullscreen"
68-
width="100%"
69-
height="500"
70-
scrolling="no"
71-
frameborder="0"
72-
>
73-
</iframe>
74-
</div>
75-
</div>
59+
<!-- <div class="teaching_video">-->
60+
<!-- <div class="teaching_video_box">-->
61+
<!-- <iframe-->
62+
<!-- style="-->
63+
<!-- display: block;-->
64+
<!-- margin: 0 auto;-->
65+
<!-- "-->
66+
<!-- src="//player.bilibili.com/player.html?aid=632791391&bvid=BV1Wb4y1U7Av&cid=404291182&page=1"-->
67+
<!-- allowfullscreen="allowfullscreen"-->
68+
<!-- width="100%"-->
69+
<!-- height="500"-->
70+
<!-- scrolling="no"-->
71+
<!-- frameborder="0"-->
72+
<!-- >-->
73+
<!-- </iframe>-->
74+
<!-- </div>-->
75+
<!-- </div>-->
7676

7777
<section class="cards-section text-center">
7878
<div class="container">
79+
<h2 class="title">入门很容易!</h2>
80+
<div class="intro">
81+
<p>使用PHPZlc,您可以很轻松的使用Symfony构建Web项目。</p>
82+
</div><!--//intro-->
7983
<div id="cards-wrapper" class="cards-wrapper row">
8084
<div class="item item-blue col-lg-4 col-6">
8185
<div class="item-inner">
@@ -163,12 +167,32 @@ <h3 class="title">常见问题</h3>
163167
<!--//item-->
164168
</div>
165169
<!--//cards-->
170+
171+
<!-- 弹框 -->
172+
<div class="mask_tip">
173+
<!-- <div class="tip">-->
174+
<p class="tip_1">如果您有关切问题和好的想法:</p>
175+
<textarea class="input_1" id="advice" placeholder="请输入内容"></textarea>
176+
<div class="send">
177+
<textarea class="input_2" id="contact" placeholder="请输入联系信息(选填)"></textarea>
178+
<p class="tips"></p>
179+
<p class="send_btn">提交</p>
180+
</div>
181+
<p class="tip_1">开源不易,可以为我们点亮星星或提供资金支持。</p>
182+
<div class="zanzhu">
183+
<a href="https://github.com/phpzlc/phpzlc" target="_blank">前往Github,为我们点亮星星</a>
184+
<a class="dashan" href="https://github.com/phpzlc/phpzlc/blob/master/sponsor.md" target="_blank">打赏,赞助,提供资金物质支持</a>
185+
</div>
186+
<!-- </div>-->
187+
</div>
166188
</div>
167189
<!--//container-->
168190
</section>
169191

170192
<!--//cards-section-->
171193

194+
<script type="text/javascript" src="/assets/js/tip.js"></script>
195+
172196
{% include footer.html %}
173197
</body>
174198

0 commit comments

Comments
 (0)