Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Kučera
semanticBMS
Commits
8bfbf060
Commit
8bfbf060
authored
Jun 29, 2016
by
akucera
Browse files
menu loaded dynamically
parent
419a955c
Changes
6
Hide whitespace changes
Inline
Side-by-side
SemanticBMSClient/edit.html
View file @
8bfbf060
...
...
@@ -382,65 +382,8 @@
</head>
<body>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbarc1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"query.html"
data-i18n=
"sbmsClient"
>
Semantic
BMS client
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbarc1"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"query.html"
data-i18n=
"query"
>
Query
</a></li>
<li
class=
"active"
><a
href=
"insert.html"
data-i18n=
"edit"
>
Edit
<span
class=
"sr-only"
>
(current)
</span></a></li>
<li><a
href=
"sparql.html"
data-i18n=
"sparql"
>
SPARQL
</a></li>
</ul>
<form
id=
"login"
class=
"navbar-form navbar-right"
action=
"insert.html"
method=
"GET"
>
<div
class=
"form-group"
>
<label
for=
"user"
class=
"sr-only"
data-i18n=
"user"
>
User
</label>
<input
type=
"text"
name=
"username"
id=
"user"
class=
"form-control"
data-i18n=
"[placeholder]user"
placeholder=
"User"
/>
<label
for=
"pass"
class=
"sr-only"
data-i18n=
"pass"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"pass"
data-i18n=
"[placeholder]pass"
placeholder=
"Password"
class=
"form-control"
/>
<button
type=
"submit"
class=
"btn btn-default"
>
<span
class=
"glyphicon glyphicon-floppy-disk"
></span>
</button>
</div>
</form>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
class=
"dropdown"
><a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
id=
"langIndicator"
>
En
</span><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Cs"
data-lang=
"cs"
class=
"langChange"
>
Česky
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"En"
data-lang=
"en"
class=
"langChange"
>
English
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Dev"
data-lang=
"en-DEV"
class=
"langChange"
>
Developer
</a></li>
</ul></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<nav
id=
"menu"
></nav>
<form
id=
"queryForm"
>
<div
class=
"container-fluid"
>
<ul
class=
"nav nav-tabs"
>
...
...
SemanticBMSClient/inclMenu.html
0 → 100644
View file @
8bfbf060
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbarc1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"query.html"
data-i18n=
"sbmsClient"
>
Semantic
BMS client
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbarc1"
>
<ul
class=
"nav navbar-nav"
>
<li
data-page=
"query"
><a
href=
"query.html"
data-i18n=
"query"
>
Query
</a></li>
<li
data-page=
"edit"
><a
href=
"edit.html"
data-i18n=
"edit"
>
Edit
</a></li>
<li
data-page=
"sparql"
><a
href=
"sparql.html"
data-i18n=
"sparql"
>
SPARQL
</a></li>
</ul>
<form
id=
"login"
class=
"navbar-form navbar-right"
action=
"insert.html"
method=
"GET"
>
<div
class=
"form-group"
>
<label
for=
"user"
class=
"sr-only"
data-i18n=
"user"
>
User
</label>
<input
type=
"text"
name=
"username"
id=
"user"
class=
"form-control"
data-i18n=
"[placeholder]user"
placeholder=
"User"
/>
<label
for=
"pass"
class=
"sr-only"
data-i18n=
"pass"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"pass"
data-i18n=
"[placeholder]pass"
placeholder=
"Password"
class=
"form-control"
/>
<button
type=
"submit"
class=
"btn btn-default"
>
<span
class=
"glyphicon glyphicon-floppy-disk"
></span>
</button>
</div>
</form>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
class=
"dropdown"
><a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
id=
"langIndicator"
>
En
</span><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Cs"
data-lang=
"cs"
class=
"langChange"
>
Česky
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"En"
data-lang=
"en"
class=
"langChange"
>
English
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Dev"
data-lang=
"en-DEV"
class=
"langChange"
>
Developer
</a></li>
</ul></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
\ No newline at end of file
SemanticBMSClient/index.html
View file @
8bfbf060
...
...
@@ -93,7 +93,7 @@
});
});
},
{},
{
sendDpInfo
:
function
(
dp
,
fields
,
fillTableAction
)
{
},
{
noAuth
:
true
},
{
sendDpInfo
:
function
(
dp
,
fields
,
fillTableAction
)
{
var
data
=
{};
...
...
@@ -149,39 +149,7 @@
</head>
<body>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbarc1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"query.html"
data-i18n=
"sbmsClient"
>
Semantic BMS client
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbarc1"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"query.html"
data-i18n=
"query"
>
Query
</a></li>
<li><a
href=
"edit.html"
data-i18n=
"edit"
>
Edit
</a></li>
<li><a
href=
"sparql.html"
data-i18n=
"sparql"
>
SPARQL
</a></li>
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
id=
"langIndicator"
>
En
</span><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Cs"
data-lang=
"cs"
class=
"langChange"
>
Česky
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"En"
data-lang=
"en"
class=
"langChange"
>
English
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Dev"
data-lang=
"en-DEV"
class=
"langChange"
>
Developer
</a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<nav
id=
"menu"
></nav>
<div
class=
"container-fluid"
>
<h3
id=
"objName"
data-i18n=
"index.unknownObject"
>
Unknown object name
</h3>
...
...
SemanticBMSClient/js/scripts.js
View file @
8bfbf060
...
...
@@ -17,8 +17,27 @@ function SBMSPage(initFunc, vars, customFunc) {
$
(
document
).
ready
([
this
.
showLoading
,
this
.
i18nInit
,
this
.
savePassInit
,
initFunc
]);
$
(
document
).
ready
([
this
.
showLoading
,
function
()
{
if
(
$
(
"
#menu
"
).
length
)
{
$
(
"
#menu
"
).
addClass
(
"
navbar navbar-inverse
"
);
$
(
"
#menu
"
).
load
(
"
inclMenu.html
"
,
function
()
{
var
page
=
location
.
pathname
.
substring
(
location
.
pathname
.
lastIndexOf
(
"
/
"
)
+
1
).
replace
(
"
.html
"
,
""
);
$
(
'
#menu li[data-page="
'
+
page
+
'
"]
'
).
addClass
(
"
active
"
);
if
(
vars
[
"
noAuth
"
])
{
$
(
"
#login
"
).
hide
();
}
SBMSPage
.
prototype
.
i18nInit
();
SBMSPage
.
prototype
.
savePassInit
();
initFunc
();
});
}
else
{
SBMSPage
.
prototype
.
i18nInit
();
SBMSPage
.
prototype
.
savePassInit
();
initFunc
();
}
}]);
}
SBMSPage
.
prototype
.
trees
=
{};
SBMSPage
.
prototype
.
mapURL
=
"
https://kompas.muni.cz/auth/
"
;
SBMSPage
.
prototype
.
sbmsURL
=
"
/sbms/v1/
"
;
...
...
SemanticBMSClient/query.html
View file @
8bfbf060
...
...
@@ -239,51 +239,7 @@ var p = new SBMSPage (function() {
</head>
<body>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbarc1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"query.html"
data-i18n=
"sbmsClient"
>
Semantic BMS client
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbarc1"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"active"
><a
href=
"query.html"
data-i18n=
"query"
>
Query
<span
class=
"sr-only"
>
(current)
</span></a></li>
<li><a
href=
"edit.html"
data-i18n=
"edit"
>
Edit
</a></li>
<li><a
href=
"sparql.html"
data-i18n=
"sparql"
>
SPARQL
</a></li>
</ul>
<form
id=
"login"
class=
"navbar-form navbar-right"
action=
"insert.html"
method=
"GET"
>
<div
class=
"form-group"
>
<label
for=
"user"
class=
"sr-only"
data-i18n=
"user"
>
User
</label>
<input
type=
"text"
name=
"username"
id=
"user"
class=
"form-control"
data-i18n=
"[placeholder]user"
placeholder=
"User"
/>
<label
for=
"pass"
class=
"sr-only"
data-i18n=
"pass"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"pass"
data-i18n=
"[placeholder]pass"
placeholder=
"Password"
class=
"form-control"
/>
<button
type=
"submit"
class=
"btn btn-default"
><span
class=
"glyphicon glyphicon-floppy-disk"
></span></button>
</div>
</form>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
id=
"langIndicator"
>
En
</span><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Cs"
data-lang=
"cs"
class=
"langChange"
>
Česky
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"En"
data-lang=
"en"
class=
"langChange"
>
English
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Dev"
data-lang=
"en-DEV"
class=
"langChange"
>
Developer
</a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<nav
id=
"menu"
></nav>
<form
id=
"queryForm"
>
<div
class=
"container-fluid"
>
...
...
SemanticBMSClient/sparql.html
View file @
8bfbf060
...
...
@@ -93,51 +93,7 @@ makeTableFromCSV: function (data, target) {
</head>
<body>
<nav
class=
"navbar navbar-inverse"
>
<div
class=
"container-fluid"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navbarc1"
aria-expanded=
"false"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"query.html"
data-i18n=
"sbmsClient"
>
Semantic BMS client
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbarc1"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"query.html"
data-i18n=
"query"
>
Query
</a></li>
<li><a
href=
"edit.html"
data-i18n=
"edit"
>
Edit
</a></li>
<li
class=
"active"
><a
href=
"sparql.html"
data-i18n=
"sparql"
>
SPARQL
<span
class=
"sr-only"
>
(current)
</span></a></li>
</ul>
<form
id=
"login"
class=
"navbar-form navbar-right"
action=
"insert.html"
method=
"GET"
>
<div
class=
"form-group"
>
<label
for=
"user"
class=
"sr-only"
data-i18n=
"user"
>
User
</label>
<input
type=
"text"
name=
"username"
id=
"user"
class=
"form-control"
data-i18n=
"[placeholder]user"
placeholder=
"User"
/>
<label
for=
"pass"
class=
"sr-only"
data-i18n=
"pass"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"pass"
data-i18n=
"[placeholder]pass"
placeholder=
"Password"
class=
"form-control"
/>
<button
type=
"submit"
class=
"btn btn-default"
><span
class=
"glyphicon glyphicon-floppy-disk"
></span></button>
</div>
</form>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
role=
"button"
aria-haspopup=
"true"
aria-expanded=
"false"
><span
id=
"langIndicator"
>
En
</span><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Cs"
data-lang=
"cs"
class=
"langChange"
>
Česky
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"En"
data-lang=
"en"
class=
"langChange"
>
English
</a></li>
<li><a
href=
"#"
data-lang-indicator-abbrev=
"Dev"
data-lang=
"en-DEV"
class=
"langChange"
>
Developer
</a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<nav
id=
"menu"
></nav>
<div
class=
"container-fluid"
>
<form
method=
"GET"
action=
"/sbms/v1/query/"
id=
"queryForm"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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