Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
d6035ba8
Commit
d6035ba8
authored
Jan 28, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some iOS (crap OS!) specific fixes and prevent horizontal scroll on window object
parent
76e85c65
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
10 deletions
+69
-10
combined.min.css
Web/htdocs/gui/css/combined.min.css
+1
-1
style.css
Web/htdocs/gui/css/style.css
+0
-5
page.php
Web/htdocs/gui/includes/page.php
+1
-1
combined.min.js
Web/htdocs/gui/js/combined.min.js
+32
-0
domotika.js
Web/htdocs/gui/js/domotika.js
+32
-0
settings.php
Web/htdocs/gui/pages/settings.php
+2
-2
graph.php
Web/htdocs/gui/panels/footjs/graph.php
+1
-1
No files found.
Web/htdocs/gui/css/combined.min.css
View file @
d6035ba8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Web/htdocs/gui/css/style.css
View file @
d6035ba8
html
{
overflow
:
hidden
;
overflow-y
:
auto
;
width
:
100%
;
}
.alert-container
{
position
:
fixed
;
...
...
Web/htdocs/gui/includes/page.php
View file @
d6035ba8
Web/htdocs/gui/js/combined.min.js
View file @
d6035ba8
...
...
@@ -119,6 +119,38 @@ window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.document
}
*/
(function () {
var previousScroll = 0;
$(window).scroll(function(event){
$(this).scrollLeft()!=0;
$(window).scrollLeft(0);
event.preventDefault();
});
}()); // to disable right scroll on panels open
$(window).scroll(function(event){
console.debug(event);
});
if(window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g))
{
$(document).ready(function(){
if (("standalone" in window.navigator) && window.navigator.standalone) {
// For iOS Apps
$('a').on('click', function(e){
e.preventDefault();
var new_location = $(this).attr('href');
if (new_location != undefined && new_location.substr(0, 1) != '#' && $(this).attr('data-method') == undefined){
window.location = new_location;
}
});
}
});
}
if(window.navigator.userAgent.match(/firefox/i) && window.navigator.userAgent.match(/mobile/i))
{
...
...
Web/htdocs/gui/js/domotika.js
View file @
d6035ba8
...
...
@@ -34,6 +34,38 @@
}
*/
(
function
()
{
var
previousScroll
=
0
;
$
(
window
).
scroll
(
function
(
event
){
$
(
this
).
scrollLeft
()
!=
0
;
$
(
window
).
scrollLeft
(
0
);
event
.
preventDefault
();
});
}());
// to disable right scroll on panels open
$
(
window
).
scroll
(
function
(
event
){
console
.
debug
(
event
);
});
if
(
window
.
navigator
.
userAgent
.
match
(
/
(
iPad|iPhone|iPod
)
/g
))
{
$
(
document
).
ready
(
function
(){
if
((
"standalone"
in
window
.
navigator
)
&&
window
.
navigator
.
standalone
)
{
// For iOS Apps
$
(
'a'
).
on
(
'click'
,
function
(
e
){
e
.
preventDefault
();
var
new_location
=
$
(
this
).
attr
(
'href'
);
if
(
new_location
!=
undefined
&&
new_location
.
substr
(
0
,
1
)
!=
'#'
&&
$
(
this
).
attr
(
'data-method'
)
==
undefined
){
window
.
location
=
new_location
;
}
});
}
});
}
if
(
window
.
navigator
.
userAgent
.
match
(
/firefox/i
)
&&
window
.
navigator
.
userAgent
.
match
(
/mobile/i
))
{
...
...
Web/htdocs/gui/pages/settings.php
View file @
d6035ba8
...
...
@@ -7,8 +7,8 @@
<!-- <li
<?
if
(
$GUISUBSECTION
==
"gui"
)
{
?>
class="active"
<?
}
?>
><a href="
<?=
$BASEGUIPATH
.
'/'
.
$GUISECTION
?>
/gui">GUI options</a></li> -->
</ul>
<?
if
(
$GUISUBSECTION
==
""
)
{
?>
<div
class=
"formcontainer"
>
<form
id=
"userform"
name=
"userform"
class=
"form-horizontal"
style=
"display:none"
>
<div
class=
"formcontainer"
>
<form
id=
"userform"
name=
"userform"
class=
"form-horizontal"
style=
"display:none
;margin-bottom:60px;
"
>
<div
class=
"form-group"
>
<label
for=
"username"
class=
"col-lg-2 control-label"
>
Username:
</label>
<div
class=
"col-lg-3"
>
...
...
Web/htdocs/gui/panels/footjs/graph.php
View file @
d6035ba8
...
...
@@ -28,7 +28,7 @@ function plotGraph(settings)
});
}
<?
foreach
(
$_SESSION
[
PANELS_CHARTS
]
as
$eid
=>
$chart
)
foreach
(
$_SESSION
[
'PANELS_CHARTS'
]
as
$eid
=>
$chart
)
{
?>
...
...
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