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
f1a99722
Commit
f1a99722
authored
Dec 28, 2013
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpleGMI.play() seems to work only in local..
parent
2dc8d0ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
index.php
Web/htdocs/gmi/index.php
+1
-11
No files found.
Web/htdocs/gmi/index.php
View file @
f1a99722
...
...
@@ -6,7 +6,6 @@ $DEFPANELS[]=array('panel_title'=>'grandstream_left','panel_websections'=>'_gran
$DEFPANELS
[]
=
array
(
'panel_title'
=>
'grandstream_center'
,
'panel_websections'
=>
'_grandstream_center'
,
'panel_type'
=>
'gxv3175_center'
,
'panel_content'
=>
'*'
)
+
$PANELDEFAULTS
;
$DEFPANELS
[]
=
array
(
'panel_title'
=>
'grandstream_right'
,
'panel_websections'
=>
'_grandstream_right'
,
'panel_type'
=>
'gxv3175_right'
,
'panel_content'
=>
'*'
)
+
$PANELDEFAULTS
;
$colors
=
array
(
'gray'
=>
'pure-button-active'
,
'blue'
=>
'pure-button-primary'
,
...
...
@@ -28,7 +27,6 @@ if(!$panels or count($panels)<1) {
'"
.
$p
[
'panel_sections'
]
.
"','"
.
$p
[
'panel_websections'
]
.
"','"
.
$p
[
'panel_selector'
]
.
"','"
.
$p
[
'panel_content'
]
.
"')"
;
DB
::
query
(
$q
);
}
}
foreach
(
$panels
as
$panel
)
{
switch
(
$panel
[
'panel_type'
])
...
...
@@ -77,27 +75,20 @@ simpleGMI.fullScreen();
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/
(
function
(
$
)
{
$
.
fn
.
alterClass
=
function
(
removals
,
additions
)
{
var
self
=
this
;
if
(
removals
.
indexOf
(
'*'
)
===
-
1
)
{
// Use native jQuery methods if there is no wildcard matching
self
.
removeClass
(
removals
);
return
!
additions
?
self
:
self
.
addClass
(
additions
);
}
var
patt
=
new
RegExp
(
'
\\
s'
+
removals
.
replace
(
/
\*
/g
,
'[A-Za-z0-9-_]+'
).
split
(
' '
).
join
(
'
\\
s|
\\
s'
)
+
'
\\
s'
,
'g'
);
self
.
each
(
function
(
i
,
it
)
{
var
cn
=
' '
+
it
.
className
+
' '
;
while
(
patt
.
test
(
cn
)
)
{
...
...
@@ -105,7 +96,6 @@ $.fn.alterClass = function ( removals, additions ) {
}
it
.
className
=
$
.
trim
(
cn
);
});
return
!
additions
?
self
:
self
.
addClass
(
additions
);
};
})(
jQuery
);
...
...
@@ -128,7 +118,7 @@ function playClick(volume) {
function
butpushed
(
btype
,
bid
)
{
//playClick(1);
simpleGMI
.
play
(
'/domotika/gmi/beep.wav'
,
0
,
0
,
function
(
data
){
alert
(
data
)});
//
simpleGMI.play('/domotika/gmi/beep.wav',0,0,function(data){alert(data)});
$
.
post
(
"/rest/v1.2/"
+
btype
+
"/setbyid/"
+
bid
+
"/json"
);
}
...
...
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