Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
sx-prize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
566d038b
authored
Jul 17, 2019
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j
parent
cfc16217
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
40 deletions
+35
-40
.idea/workspace.xml
+0
-0
.sass-cache/0adc96cee11bc739fc2ea1eeea463a9ab946286f/main.scssc
+0
-0
Application/Home/View/default/Index_index.tpl
+28
-28
Public/static/css/main.css
+6
-7
Public/static/css/main.scss
+1
-2
Public/static/js/index.js
+0
-3
No files found.
.idea/workspace.xml
View file @
566d038b
This diff is collapsed.
Click to expand it.
.sass-cache/0adc96cee11bc739fc2ea1eeea463a9ab946286f/main.scssc
View file @
566d038b
No preview for this file type
Application/Home/View/default/Index_index.tpl
View file @
566d038b
...
...
@@ -12,35 +12,35 @@
<meta
content=
"email=no"
name=
"format-detection"
/>
<script
type=
"text/javascript"
src=
"__CDN__/js/jquery-2.1.3.min.js"
></script>
<script
type=
"text/javascript"
>
// if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
// var version = parseFloat(RegExp.$1);
// if (version > 2.3) {
// var phoneScale = parseInt(window.screen.width) / 640;
// document.write('
<
meta
name
=
"viewport"
content
=
"width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi"
>
');
// } else {
// document.write('
<
meta
name
=
"viewport"
content
=
"width=640, target-densitydpi=device-dpi"
>
');
// }
// } else {
// document.write('
<
meta
name
=
"viewport"
content
=
"width=640, user-scalable=no, target-densitydpi=device-dpi"
>
');
// }
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = '
orientationchange
' in window ? '
orientationchange
' : '
resize
',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if(clientWidth>=640){
docEl.style.fontSize = '
100
px
';
}else{
docEl.style.fontSize = 100 * (clientWidth / 640) + '
px
';
}
};
if
(
/Android
(\d
+
\.\d
+
)
/
.
test
(
navigator
.
userAgent
))
{
var
version
=
parseFloat
(
RegExp
.
$1
);
if
(
version
>
2.3
)
{
var
phoneScale
=
parseInt
(
window
.
screen
.
width
)
/
640
;
document
.
write
(
'
<
meta
name
=
"viewport"
content
=
"width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi"
>
');
} else {
document.write('
<
meta
name
=
"viewport"
content
=
"width=640, target-densitydpi=device-dpi"
>
');
}
} else {
document.write('
<
meta
name
=
"viewport"
content
=
"width=640, user-scalable=no, target-densitydpi=device-dpi"
>
');
}
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('
DOMContentLoaded
'
,
recalc
,
false
);
})(
document
,
window
);
// (function (doc, win) {
// var docEl = doc.documentElement,
// resizeEvt = '
orientationchange
' in window ? '
orientationchange
' : '
resize
',
// recalc = function () {
// var clientWidth = docEl.clientWidth;
// if (!clientWidth) return;
// if(clientWidth>=640){
// docEl.style.fontSize = '
100
px
';
// }else{
// docEl.style.fontSize = 100 * (clientWidth / 640) + '
px
';
// }
// };
//
// if (!doc.addEventListener) return;
// win.addEventListener(resizeEvt, recalc, false);
// doc.addEventListener('
DOMContentLoaded
'
,
recalc
,
false
);
// })(document, window);
</script>
<title>
谁是桃源幸运锦鲤
</title>
<link
href=
"__CDN__/css/main.css?t=1.94"
rel=
"stylesheet"
>
...
...
Public/static/css/main.css
View file @
566d038b
...
...
@@ -174,21 +174,20 @@ ul, li {
#container
{
position
:
relative
;
background
:
url("../images/bj.jpg")
no-repeat
center
;
background-size
:
100%
100%
;
width
:
6.4rem
;
height
:
12.38rem
;
width
:
640px
;
height
:
1238px
;
}
#container
.btn-prize
{
justify-content
:
center
;
width
:
2
rem
;
height
:
2
rem
;
width
:
2
00px
;
height
:
2
00px
;
font-size
:
27px
;
border
:
1px
solid
red
;
}
#container
.prize-type
{
position
:
absolute
;
width
:
3
rem
;
height
:
3
rem
;
width
:
3
00px
;
height
:
3
00px
;
opacity
:
0
;
}
#container
.word
{
...
...
Public/static/css/main.scss
View file @
566d038b
...
...
@@ -51,7 +51,7 @@ $ea-prefix-for-spec: false !global;
// height:torem($h);
//}
@function
torem
(
$px
)
{
@return
$px
/
100px
*
1rem
;
@return
$px
;
}
@mixin
bounds_by_pos
(
$x
,
$y
,
$w
,
$h
)
{
...
...
@@ -196,7 +196,6 @@ ul, li {
#container
{
position
:
relative
;
background
:
url("../images/bj.jpg")
no-repeat
center
;
background-size
:
100%
100%
;
width
:
torem
(
640px
);
height
:
torem
(
1238px
);
.btn-prize
{
...
...
Public/static/js/index.js
View file @
566d038b
...
...
@@ -13,9 +13,6 @@ $(document).ready(function () {
window
.
Origami
.
fastclick
(
document
.
body
);
}
catch
(
e
)
{
}
document
.
addEventListener
(
"touchmove"
,
function
(
e
)
{
e
.
preventDefault
();
},
false
);
var
clickEvent
=
$
.
isFunction
(
$
.
fn
.
tap
)
?
'tap'
:
'click'
;
window
[
'max_zindex'
]
=
100
;
$
.
fn
.
show_dialog
=
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment