Commit d80c863c authored by 郭朴讴's avatar 郭朴讴

半导体样式

parent fe2b4ce1
...@@ -215,7 +215,20 @@ ...@@ -215,7 +215,20 @@
@section footer{ @section footer{
<script> <script>
function IsPC() {
let source = true;
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
source = false
} else {
source =true
}
return source
}
$(function () { $(function () {
if (IsPC()) {
$("#tab3 .top .intro").wrap("<div style='height: 360px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 175px;overflow: hidden;'></div>");
}
var url = $(location).attr('href'); var url = $(location).attr('href');
var oindex = url.indexOf("#"); var oindex = url.indexOf("#");
if (oindex > 0) { if (oindex > 0) {
...@@ -244,9 +257,9 @@ ...@@ -244,9 +257,9 @@
$(this).addClass("active"); $(this).addClass("active");
var con = $(this).attr("href"); var con = $(this).attr("href");
$(con).addClass("active").siblings().removeClass("active"); $(con).addClass("active").siblings().removeClass("active");
if (IsPC()) {
$("#tab3 .row").addClass("disflex"); $("#tab3 .row").addClass("disflex");
$("#tab3 .top .intro").wrap("<div style='height: 360px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 175px;overflow: hidden;'></div>");
if ($("#tab3 .top .intro").height()>360) { if ($("#tab3 .top .intro").height()>360) {
$("#tab3 .top .intro").parent().parent().parent().append("<div style='color: #FFFFFF;' class='zkbtn'>open</div>"); $("#tab3 .top .intro").parent().parent().parent().append("<div style='color: #FFFFFF;' class='zkbtn'>open</div>");
...@@ -280,6 +293,7 @@ ...@@ -280,6 +293,7 @@
$(this).html("open") $(this).html("open")
} }
}) })
}
}) })
}); });
......
...@@ -39,7 +39,20 @@ ...@@ -39,7 +39,20 @@
@section footer{ @section footer{
<script> <script>
function IsPC() {
let source = true;
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
source = false
} else {
source =true
}
return source
}
$(function () { $(function () {
if (IsPC()) {
$("#tab3 .top .intro").wrap("<div style='height: 360px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 175px;overflow: hidden;'></div>");
}
var url = $(location).attr('href'); var url = $(location).attr('href');
var oindex = url.indexOf("#"); var oindex = url.indexOf("#");
if (oindex > 0) { if (oindex > 0) {
...@@ -68,9 +81,9 @@ ...@@ -68,9 +81,9 @@
$(this).addClass("active"); $(this).addClass("active");
var con = $(this).attr("href"); var con = $(this).attr("href");
$(con).addClass("active").siblings().removeClass("active"); $(con).addClass("active").siblings().removeClass("active");
if (IsPC()) {
$("#tab3 .row").addClass("disflex"); $("#tab3 .row").addClass("disflex");
$("#tab3 .top .intro").wrap("<div style='height: 360px;overflow: hidden;'></div>");
$("#tab3 .row .text p").wrap("<div style='height: 175px;overflow: hidden;'></div>");
if ($("#tab3 .top .intro").height()>360) { if ($("#tab3 .top .intro").height()>360) {
$("#tab3 .top .intro").parent().parent().parent().append("<div style='color: #FFFFFF;' class='zkbtn'>open</div>"); $("#tab3 .top .intro").parent().parent().parent().append("<div style='color: #FFFFFF;' class='zkbtn'>open</div>");
...@@ -104,6 +117,7 @@ ...@@ -104,6 +117,7 @@
$(this).html("open") $(this).html("open")
} }
}) })
}
}) })
}); });
......
...@@ -85,11 +85,21 @@ ...@@ -85,11 +85,21 @@
@section footer{ @section footer{
<script> <script>
function IsPC() {
let source = true;
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
source = false
} else {
source =true
}
return source
}
$(function () { $(function () {
if (IsPC()) {
$("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>"); $("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>");
$("#tab3 p").wrap("<div style='height: 50px;overflow: hidden;'></div>"); $("#tab3 p").wrap("<div style='height: 50px;overflow: hidden;'></div>");
}
var url = $(location).attr('href'); var url = $(location).attr('href');
...@@ -120,6 +130,7 @@ ...@@ -120,6 +130,7 @@
$(this).addClass("active"); $(this).addClass("active");
var con = $(this).attr("href"); var con = $(this).attr("href");
$(con).addClass("active").siblings().removeClass("active"); $(con).addClass("active").siblings().removeClass("active");
if (IsPC()) {
$("#tab2 .row").addClass("disflex"); $("#tab2 .row").addClass("disflex");
$("#tab3 .row").addClass("disflex"); $("#tab3 .row").addClass("disflex");
$("#tab2 .txt p").each(function(){ $("#tab2 .txt p").each(function(){
...@@ -144,6 +155,7 @@ ...@@ -144,6 +155,7 @@
$(this).html("open") $(this).html("open")
} }
}) })
}
}) })
}); });
......
...@@ -166,10 +166,21 @@ ...@@ -166,10 +166,21 @@
@section footer{ @section footer{
<script> <script>
function IsPC() {
let source = true;
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
source = false
} else {
source =true
}
return source
}
$(function () { $(function () {
if (IsPC()) {
$("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>"); $("#tab2 .txt p").wrap("<div style='height: 100px;overflow: hidden;'></div>");
$("#tab3 p").wrap("<div style='height: 50px;overflow: hidden;'></div>"); $("#tab3 p").wrap("<div style='height: 50px;overflow: hidden;'></div>");
}
var url = $(location).attr('href'); var url = $(location).attr('href');
var oindex = url.indexOf("#"); var oindex = url.indexOf("#");
...@@ -199,6 +210,7 @@ ...@@ -199,6 +210,7 @@
$(this).addClass("active"); $(this).addClass("active");
var con = $(this).attr("href"); var con = $(this).attr("href");
$(con).addClass("active").siblings().removeClass("active"); $(con).addClass("active").siblings().removeClass("active");
if (IsPC()) {
$("#tab2 .row").addClass("disflex"); $("#tab2 .row").addClass("disflex");
$("#tab3 .row").addClass("disflex"); $("#tab3 .row").addClass("disflex");
$("#tab2 .txt p").each(function(){ $("#tab2 .txt p").each(function(){
...@@ -223,6 +235,7 @@ ...@@ -223,6 +235,7 @@
$(this).html("open") $(this).html("open")
} }
}) })
}
}) })
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment