Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
ae1f8383
Commit
ae1f8383
authored
Jul 05, 2017
by
amandaghassaei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crane gif
parent
86ebfd78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
css/main.css
css/main.css
+9
-0
index.html
index.html
+2
-1
js/dynamic/GPUMath.js
js/dynamic/GPUMath.js
+8
-1
js/pattern.js
js/pattern.js
+8
-0
No files found.
css/main.css
View file @
ae1f8383
...
...
@@ -488,4 +488,13 @@ a.seeMore.closed>.fui-triangle-down{
.red
{
color
:
red
!important
;
}
#coverImg
{
z-index
:
5
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
\ No newline at end of file
index.html
View file @
ae1f8383
...
...
@@ -1351,7 +1351,8 @@
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-body"
>
This app uses GPU functions that are not supported by this device/browser, please try again on desktop with Chrome/Firefox.
<br/><br/>
This app uses GPU functions that are not supported by this device/browser,
please try again on desktop with Chrome/Firefox.
<br/>
</div>
</div>
</div>
...
...
js/dynamic/GPUMath.js
View file @
ae1f8383
...
...
@@ -19,7 +19,14 @@ function initGPUMath(){
console
.
log
(
maxTexturesInFragmentShader
+
"
textures max
"
);
function
notSupported
(){
//todo get gif
var
elm
=
'
<div id="coverImg"
'
+
'
style="background: url(crane.gif) no-repeat center center fixed;
'
+
'
-webkit-background-size: cover;
'
+
'
-moz-background-size: cover;
'
+
'
-o-background-size: cover;
'
+
'
background-size: cover;">
'
+
'
</div>
'
;
$
(
elm
).
appendTo
(
$
(
"
body
"
));
$
(
"
#noSupportModal
"
).
modal
(
"
show
"
);
console
.
warn
(
"
floating point textures are not supported on your system
"
);
}
...
...
js/pattern.js
View file @
ae1f8383
...
...
@@ -181,6 +181,14 @@ function initPattern(globals){
var
path
=
$elements
[
i
];
var
pathVertices
=
[];
if
(
path
===
undefined
||
path
.
getPathData
===
undefined
){
//mobile problem
var
elm
=
'
<div id="coverImg"
'
+
'
style="background: url(crane.gif) no-repeat center center fixed;
'
+
'
-webkit-background-size: cover;
'
+
'
-moz-background-size: cover;
'
+
'
-o-background-size: cover;
'
+
'
background-size: cover;">
'
+
'
</div>
'
;
$
(
elm
).
appendTo
(
$
(
"
body
"
));
$
(
"
#noSupportModal
"
).
modal
(
"
show
"
);
console
.
warn
(
"
path parser not supported
"
);
return
;
...
...
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