Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
d9fae422
Commit
d9fae422
authored
May 02, 2017
by
Karl Hasselbring
Browse files
Zwischenschritt im Style reparieren
parent
a3c8d450
Changes
12
Hide whitespace changes
Inline
Side-by-side
composer.lock
View file @
d9fae422
...
...
@@ -347,16 +347,16 @@
},
{
"name": "jaybizzle/crawler-detect",
"version": "v1.2.
39
",
"version": "v1.2.
40
",
"source": {
"type": "git",
"url": "https://github.com/JayBizzle/Crawler-Detect.git",
"reference": "
ee994af8b5d67b07d2a489cb4ae2edd93d4f1a3a
"
"reference": "
c5c0f049264edcf6499847c756dc36e51a072313
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/
ee994af8b5d67b07d2a489cb4ae2edd93d4f1a3a
",
"reference": "
ee994af8b5d67b07d2a489cb4ae2edd93d4f1a3a
",
"url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/
c5c0f049264edcf6499847c756dc36e51a072313
",
"reference": "
c5c0f049264edcf6499847c756dc36e51a072313
",
"shasum": ""
},
"require": {
...
...
@@ -391,7 +391,7 @@
"crawlerdetect",
"php crawler detect"
],
"time": "2017-04-
14
1
9
:58:
14
"
"time": "2017-04-
20
1
8
:58:
25
"
},
{
"name": "jenssegers/agent",
...
...
@@ -454,16 +454,16 @@
},
{
"name": "laravel/framework",
"version": "v5.4.1
9
",
"version": "v5.4.
2
1",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "
02444b7450350db17a7607c8a52f7268ebdb0dad
"
"reference": "
2ed668f96d1a6ca42f50d5c87ee9ceecfc0a6eee
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/
02444b7450350db17a7607c8a52f7268ebdb0dad
",
"reference": "
02444b7450350db17a7607c8a52f7268ebdb0dad
",
"url": "https://api.github.com/repos/laravel/framework/zipball/
2ed668f96d1a6ca42f50d5c87ee9ceecfc0a6eee
",
"reference": "
2ed668f96d1a6ca42f50d5c87ee9ceecfc0a6eee
",
"shasum": ""
},
"require": {
...
...
@@ -579,20 +579,20 @@
"framework",
"laravel"
],
"time": "2017-04-
16 13:33:34
"
"time": "2017-04-
28 15:40:01
"
},
{
"name": "league/flysystem",
"version": "1.0.
37
",
"version": "1.0.
40
",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "
78b5cc4feb61a882302df4fbaf63b7662e5e4ccd
"
"reference": "
3828f0b24e2c1918bb362d57a53205d6dc8fde61
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/
78b5cc4feb61a882302df4fbaf63b7662e5e4ccd
",
"reference": "
78b5cc4feb61a882302df4fbaf63b7662e5e4ccd
",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/
3828f0b24e2c1918bb362d57a53205d6dc8fde61
",
"reference": "
3828f0b24e2c1918bb362d57a53205d6dc8fde61
",
"shasum": ""
},
"require": {
...
...
@@ -614,12 +614,12 @@
"league/flysystem-azure": "Allows you to use Windows Azure Blob storage",
"league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching",
"league/flysystem-copy": "Allows you to use Copy.com storage",
"league/flysystem-dropbox": "Allows you to use Dropbox storage",
"league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem",
"league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
"league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib",
"league/flysystem-webdav": "Allows you to use WebDAV storage",
"league/flysystem-ziparchive": "Allows you to use ZipArchive adapter"
"league/flysystem-ziparchive": "Allows you to use ZipArchive adapter",
"spatie/flysystem-dropbox": "Allows you to use Dropbox storage"
},
"type": "library",
"extra": {
...
...
@@ -662,20 +662,20 @@
"sftp",
"storage"
],
"time": "2017-0
3
-2
2
1
5:43:14
"
"time": "2017-0
4
-2
8
1
0:15:08
"
},
{
"name": "mcamara/laravel-localization",
"version": "1.2.
3
",
"version": "
v
1.2.
4
",
"source": {
"type": "git",
"url": "https://github.com/mcamara/laravel-localization.git",
"reference": "
beb1244a4ce2fe793f37696ec0d89eed015f385e
"
"reference": "
29f9ea25bbb97888aa4e0c0e36787b0f80b9920f
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mcamara/laravel-localization/zipball/
beb1244a4ce2fe793f37696ec0d89eed015f385e
",
"reference": "
beb1244a4ce2fe793f37696ec0d89eed015f385e
",
"url": "https://api.github.com/repos/mcamara/laravel-localization/zipball/
29f9ea25bbb97888aa4e0c0e36787b0f80b9920f
",
"reference": "
29f9ea25bbb97888aa4e0c0e36787b0f80b9920f
",
"shasum": ""
},
"require": {
...
...
@@ -711,7 +711,7 @@
"localization",
"php"
],
"time": "2017-0
2-18 20:52:38
"
"time": "2017-0
4-25 15:27:29
"
},
{
"name": "mobiledetect/mobiledetectlib",
...
...
@@ -1259,16 +1259,16 @@
},
{
"name": "swiftmailer/swiftmailer",
"version": "v5.4.
6
",
"version": "v5.4.
7
",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "
81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e
"
"reference": "
56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/
81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e
",
"reference": "
81fdccfaf8bdc5d5d7a1ef6bb3a61bbb1a6c4a3e
",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/
56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4
",
"reference": "
56db4ed32a6d5c9824c3ecc1d2e538f663f47eb4
",
"shasum": ""
},
"require": {
...
...
@@ -1309,20 +1309,20 @@
"mail",
"mailer"
],
"time": "2017-0
2-13 0
7:
5
2:
53
"
"time": "2017-0
4-20 1
7:
3
2:
18
"
},
{
"name": "symfony/console",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "
c30243cc51f726812be3551316b109a2f5deaf8d
"
"reference": "
a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/
c30243cc51f726812be3551316b109a2f5deaf8d
",
"reference": "
c30243cc51f726812be3551316b109a2f5deaf8d
",
"url": "https://api.github.com/repos/symfony/console/zipball/
a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38
",
"reference": "
a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38
",
"shasum": ""
},
"require": {
...
...
@@ -1372,7 +1372,7 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"time": "2017-04-
04 14:33:42
"
"time": "2017-04-
26 01:39:17
"
},
{
"name": "symfony/css-selector",
...
...
@@ -1429,16 +1429,16 @@
},
{
"name": "symfony/debug",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "
56f613406446a4a0a031475cfd0a01751de22659
"
"reference": "
fd6eeee656a5a7b384d56f1072243fe1c0e81686
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/
56f613406446a4a0a031475cfd0a01751de22659
",
"reference": "
56f613406446a4a0a031475cfd0a01751de22659
",
"url": "https://api.github.com/repos/symfony/debug/zipball/
fd6eeee656a5a7b384d56f1072243fe1c0e81686
",
"reference": "
fd6eeee656a5a7b384d56f1072243fe1c0e81686
",
"shasum": ""
},
"require": {
...
...
@@ -1482,20 +1482,20 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"time": "2017-0
3-28 21:38:24
"
"time": "2017-0
4-19 20:17:50
"
},
{
"name": "symfony/event-dispatcher",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "
154bb1ef7b0e42ccc792bd53edbce18ed73440ca
"
"reference": "
b8a401f733b43251e1d088c589368b2a94155e40
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/
154bb1ef7b0e42ccc792bd53edbce18ed73440ca
",
"reference": "
154bb1ef7b0e42ccc792bd53edbce18ed73440ca
",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/
b8a401f733b43251e1d088c589368b2a94155e40
",
"reference": "
b8a401f733b43251e1d088c589368b2a94155e40
",
"shasum": ""
},
"require": {
...
...
@@ -1542,20 +1542,20 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"time": "2017-0
4
-0
4 07:26:27
"
"time": "2017-0
5
-0
1 14:58:48
"
},
{
"name": "symfony/finder",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "
b20900ce5ea164cd9314af52725b0bb5a758217a
"
"reference": "
9cf076f8f492f4b1ffac40aae9c2d287b4ca6930
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/
b20900ce5ea164cd9314af52725b0bb5a758217a
",
"reference": "
b20900ce5ea164cd9314af52725b0bb5a758217a
",
"url": "https://api.github.com/repos/symfony/finder/zipball/
9cf076f8f492f4b1ffac40aae9c2d287b4ca6930
",
"reference": "
9cf076f8f492f4b1ffac40aae9c2d287b4ca6930
",
"shasum": ""
},
"require": {
...
...
@@ -1591,20 +1591,20 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"time": "2017-0
3-20 09:32
:1
9
"
"time": "2017-0
4-12 14:13
:1
7
"
},
{
"name": "symfony/http-foundation",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "
cb0b6418f588952c9290b3df4ca650f1b7ab570a
"
"reference": "
9de6add7f731e5af7f5b2e9c0da365e43383ebef
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/
cb0b6418f588952c9290b3df4ca650f1b7ab570a
",
"reference": "
cb0b6418f588952c9290b3df4ca650f1b7ab570a
",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/
9de6add7f731e5af7f5b2e9c0da365e43383ebef
",
"reference": "
9de6add7f731e5af7f5b2e9c0da365e43383ebef
",
"shasum": ""
},
"require": {
...
...
@@ -1644,20 +1644,20 @@
],
"description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com",
"time": "2017-0
4
-0
4
1
5:30
:5
6
"
"time": "2017-0
5
-0
1
1
4:55
:5
8
"
},
{
"name": "symfony/http-kernel",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "
8285ab5faf1306b1a5ebcf287fe91c231a6de88e
"
"reference": "
46e8b209abab55c072c47d72d5cd1d62c0585e05
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/
8285ab5faf1306b1a5ebcf287fe91c231a6de88e
",
"reference": "
8285ab5faf1306b1a5ebcf287fe91c231a6de88e
",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/
46e8b209abab55c072c47d72d5cd1d62c0585e05
",
"reference": "
46e8b209abab55c072c47d72d5cd1d62c0585e05
",
"shasum": ""
},
"require": {
...
...
@@ -1726,7 +1726,7 @@
],
"description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com",
"time": "2017-0
4
-0
5
1
2:52:03
"
"time": "2017-0
5
-0
1
1
7:46:48
"
},
{
"name": "symfony/polyfill-mbstring",
...
...
@@ -1789,16 +1789,16 @@
},
{
"name": "symfony/process",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "
57fdaa55827ae14d617550ebe71a820f0a5e2282
"
"reference": "
999c2cf5061e627e6cd551dc9ebf90dd1d11d9f0
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/
57fdaa55827ae14d617550ebe71a820f0a5e2282
",
"reference": "
57fdaa55827ae14d617550ebe71a820f0a5e2282
",
"url": "https://api.github.com/repos/symfony/process/zipball/
999c2cf5061e627e6cd551dc9ebf90dd1d11d9f0
",
"reference": "
999c2cf5061e627e6cd551dc9ebf90dd1d11d9f0
",
"shasum": ""
},
"require": {
...
...
@@ -1834,20 +1834,20 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
"time": "2017-0
3-27 18:07:02
"
"time": "2017-0
4-12 14:13:17
"
},
{
"name": "symfony/routing",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "
d6605f9a5767bc5bc4895e1c762ba93964608aee
"
"reference": "
5029745d6d463585e8b487dbc83d6333f408853a
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/
d6605f9a5767bc5bc4895e1c762ba93964608aee
",
"reference": "
d6605f9a5767bc5bc4895e1c762ba93964608aee
",
"url": "https://api.github.com/repos/symfony/routing/zipball/
5029745d6d463585e8b487dbc83d6333f408853a
",
"reference": "
5029745d6d463585e8b487dbc83d6333f408853a
",
"shasum": ""
},
"require": {
...
...
@@ -1909,20 +1909,20 @@
"uri",
"url"
],
"time": "2017-0
3-02 15:58:09
"
"time": "2017-0
4-12 14:13:17
"
},
{
"name": "symfony/translation",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "
c740eee70783d2af4d3d6b70d5146f209e6b4d1
3"
"reference": "
f4a04d2df710f81515df576b2de06bdeee518b8
3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/
c740eee70783d2af4d3d6b70d5146f209e6b4d1
3",
"reference": "
c740eee70783d2af4d3d6b70d5146f209e6b4d1
3",
"url": "https://api.github.com/repos/symfony/translation/zipball/
f4a04d2df710f81515df576b2de06bdeee518b8
3",
"reference": "
f4a04d2df710f81515df576b2de06bdeee518b8
3",
"shasum": ""
},
"require": {
...
...
@@ -1973,20 +1973,20 @@
],
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
"time": "2017-0
3-21 21:44:32
"
"time": "2017-0
4-12 14:13:17
"
},
{
"name": "symfony/var-dumper",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "
81dce20f69a8b40427e1f4e6462178df87cafc03
"
"reference": "
fa47963ac7979ddbd42b2d646d1b056bddbf7bb8
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/
81dce20f69a8b40427e1f4e6462178df87cafc03
",
"reference": "
81dce20f69a8b40427e1f4e6462178df87cafc03
",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/
fa47963ac7979ddbd42b2d646d1b056bddbf7bb8
",
"reference": "
fa47963ac7979ddbd42b2d646d1b056bddbf7bb8
",
"shasum": ""
},
"require": {
...
...
@@ -1997,9 +1997,11 @@
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
},
"require-dev": {
"ext-iconv": "*",
"twig/twig": "~1.20|~2.0"
},
"suggest": {
"ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
"ext-symfony_debug": ""
},
"type": "library",
...
...
@@ -2039,7 +2041,7 @@
"debug",
"dump"
],
"time": "2017-0
3-12 16:07:05
"
"time": "2017-0
5-01 14:55:58
"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
...
...
@@ -3564,16 +3566,16 @@
},
{
"name": "symfony/yaml",
"version": "v3.2.
7
",
"version": "v3.2.
8
",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "
62b4cdb99d52cb1ff253c465eb1532a80cebb621
"
"reference": "
acec26fcf7f3031e094e910b94b002fa53d4e4d6
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/
62b4cdb99d52cb1ff253c465eb1532a80cebb621
",
"reference": "
62b4cdb99d52cb1ff253c465eb1532a80cebb621
",
"url": "https://api.github.com/repos/symfony/yaml/zipball/
acec26fcf7f3031e094e910b94b002fa53d4e4d6
",
"reference": "
acec26fcf7f3031e094e910b94b002fa53d4e4d6
",
"shasum": ""
},
"require": {
...
...
@@ -3615,7 +3617,7 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"time": "2017-0
3-20 09:45:15
"
"time": "2017-0
5-01 14:55:58
"
},
{
"name": "webmozart/assert",
...
...
public/build/css/themes/default.css.map
View file @
d9fae422
This source diff could not be displayed because it is too large. You can
view the blob
instead.
public/build/js/scriptStartPage-a59b8ddf71.js
deleted
100644 → 0
View file @
a3c8d450
$
(
document
).
ready
(
function
()
{
// checkPlugin();
if
(
location
.
href
.
indexOf
(
"
#plugin-modal
"
)
>
-
1
)
{
$
(
"
#plugin-modal
"
).
modal
(
"
show
"
);
}
$
(
'
#addFocusBtn
'
).
removeClass
(
'
hide
'
);
$
(
"
button
"
).
popover
();
if
(
localStorage
)
{
var
theme
=
localStorage
.
getItem
(
"
theme
"
);
if
(
theme
!=
null
)
{
if
((
theme
.
match
(
/,/g
)
||
[]).
length
!=
3
)
{
localStorage
.
removeItem
(
"
theme
"
);
}
else
{
theme
=
theme
.
split
(
"
,
"
);
$
(
"
#theme
"
).
attr
(
"
href
"
,
"
/css/theme.css.php?r=
"
+
theme
[
0
]
+
"
&g=
"
+
theme
[
1
]
+
"
&b=
"
+
theme
[
2
]
+
"
&a=
"
+
theme
[
3
]);
}
}
if
(
localStorage
.
getItem
(
"
pers
"
)
&&
!
isUseOnce
())
{
setSettings
();
}
}
setActionListeners
();
loadInitialCustomFocuses
()
});
function
setActionListeners
()
{
$
(
"
button
"
).
on
(
"
shown.bs.popover
"
,
function
()
{
$
(
"
#color-chooser a
"
).
click
(
function
()
{
var
theme
=
$
(
this
).
attr
(
"
data-rgba
"
);
if
(
localStorage
)
{
localStorage
.
setItem
(
"
theme
"
,
theme
);
location
.
href
=
"
/
"
;
}
});
});
$
(
"
#mobileFoki
"
).
change
(
function
()
{
var
focus
=
$
(
"
#mobileFoki > option:selected
"
).
val
();
if
(
focus
==
"
angepasst
"
)
{
window
.
location
=
"
./settings/
"
;
}
else
{
window
.
location
=
"
./?focus=
"
+
focus
;
}
});
if
(
$
(
"
fieldset#foki.mobile
"
).
length
)
{
$
(
"
fieldset#foki.mobile label#anpassen-label
"
).
click
(
function
()
{
window
.
location
=
"
./settings/
"
;
});
}
$
(
"
#addFocusBtn
"
).
click
(
function
()
{
showFocusCreateDialog
(
""
);
});
$
(
"
.save-focus-btn
"
).
click
(
saveFocus
);
$
(
"
.delete-focus-btn
"
).
click
(
deleteFocus
);
}
function
setSettings
()
{
for
(
var
i
=
0
;
i
<
localStorage
.
length
;
i
++
)
{
var
key
=
localStorage
.
key
(
i
);
var
value
=
localStorage
.
getItem
(
key
);
if
(
key
.
startsWith
(
"
param_
"
)
&&
!
key
.
endsWith
(
"
lang
"
)
&&
!
key
.
endsWith
(
'
autocomplete
'
))
{
key
=
key
.
substring
(
key
.
indexOf
(
"
param_
"
)
+
6
);
$
(
"
#searchForm
"
).
append
(
"
<input type=
\"
hidden
\"
name=
\"
"
+
key
+
"
\"
value=
\"
"
+
value
+
"
\"
>
"
);
}
$
(
"
#foki input[type=radio]#angepasst
"
).
attr
(
"
checked
"
,
true
);
}
if
(
localStorage
.
getItem
(
"
param_lang
"
)
!==
null
)
{
var
value
=
localStorage
.
getItem
(
"
param_lang
"
);
// Change the value of the lang input field to the given parameter
$
(
"
input[name=lang]
"
).
val
(
value
);
}
if
(
localStorage
.
getItem
(
"
param_autocomplete
"
)
!==
null
)
{
var
value
=
localStorage
.
getItem
(
"
param_autocomplete
"
);
// Change the value of the lang input field to the given parameter
$
(
"
input[name=eingabe]
"
).
attr
(
"
autocomplete
"
,
value
);
}
if
(
$
(
"
fieldset#foki.mobile
"
).
length
)
{
$
(
"
fieldset.mobile input#bilder
"
).
val
(
"
angepasst
"
);
$
(
"
fieldset.mobile input#bilder
"
).
prop
(
"
checked
"
,
true
);
$
(
"
fieldset.mobile input#bilder
"
).
attr
(
"
id
"
,
"
angepasst
"
);
$
(
"
fieldset.mobile label#bilder-label
"
).
attr
(
"
id
"
,
"
anpassen-label
"
);
$
(
"
fieldset.mobile label#anpassen-label
"
).
attr
(
"
for
"
,
"
angepasst
"
);
$
(
"
fieldset.mobile label#anpassen-label a.fa
"
).
attr
(
"
class
"
,
"
fa fa-cog
"
);
$
(
"
fieldset.mobile label#anpassen-label span.content
"
).
html
(
"
angepasst
"
);
}
}
//Polyfill for form attribute
(
function
(
$
)
{
/**
* polyfill for html5 form attr
*/
// detect if browser supports this
var
sampleElement
=
$
(
'
[form]
'
).
get
(
0
);
var
isIE11
=
!
(
window
.
ActiveXObject
)
&&
"
ActiveXObject
"
in
window
;
if
(
sampleElement
&&
window
.
HTMLFormElement
&&
sampleElement
.
form
instanceof
HTMLFormElement
&&
!
isIE11
)
{
// browser supports it, no need to fix
return
;
}
/**
* Append a field to a form
*
*/
$
.
fn
.
appendField
=
function
(
data
)
{
// for form only
if
(
!
this
.
is
(
'
form
'
))
return
;
// wrap data
if
(
!
$
.
isArray
(
data
)
&&
data
.
name
&&
data
.
value
)
{
data
=
[
data
];
}
var
$form
=
this
;
// attach new params
$
.
each
(
data
,
function
(
i
,
item
)
{
$
(
'
<input/>
'
).
attr
(
'
type
'
,
'
hidden
'
).
attr
(
'
name
'
,
item
.
name
).
val
(
item
.
value
).
appendTo
(
$form
);
});
return
$form
;
};
/**
* Find all input fields with form attribute point to jQuery object
*
*/
$
(
'
form[id]
'
).
submit
(
function
(
e
)
{
var
$form
=
$
(
this
);
// serialize data
var
data
=
$
(
'
[form=
'
+
$form
.
attr
(
'
id
'
)
+
'
]
'
).
serializeArray
();
// append data to form
$form
.
appendField
(
data
);
}).
each
(
function
()
{
var
form
=
this
,
$form
=
$
(
form
),
$fields
=
$
(
'
[form=
'
+
$form
.
attr
(
'
id
'
)
+
'
]
'
);
$fields
.
filter
(
'
button, input
'
).
filter
(
'
[type=reset],[type=submit]
'
).
click
(
function
()
{
var
type
=
this
.
type
.
toLowerCase
();
if
(
type
===
'
reset
'
)
{
// reset form
form
.
reset
();
// for elements outside form
$fields
.
each
(
function
()
{
this
.
value
=
this
.
defaultValue
;
this
.
checked
=
this
.
defaultChecked
;
}).
filter
(
'
select
'
).
each
(
function
()
{
$
(
this
).
find
(
'
option
'
).
each
(
function
()
{
this
.
selected
=
this
.
defaultSelected
;
});
});
}
else
if
(
type
.
match
(
/^submit|image$/i
))
{
$
(
form
).
appendField
({
name
:
this
.
name
,
value
:
this
.
value
}).
submit
();
}
});
});
})(
jQuery
);
// Opera 8.0+
var
isOpera
=
(
!!
window
.
opr
&&
!!
opr
.
addons
)
||
!!
window
.
opera
||
navigator
.
userAgent
.
indexOf
(
'
OPR/
'
)
>=
0
;
// Firefox 1.0+
var
isFirefox
=
typeof
InstallTrigger
!==
'
undefined
'
;
// At least Safari 3+: "[object HTMLElementConstructor]"
var
isSafari
=
Object
.
prototype
.
toString
.
call
(
window
.
HTMLElement
).
indexOf
(
'
Constructor
'
)
>
0
;
// Internet Explorer 6-11
var
isIE
=
/*@cc_on!@*/
false
||
!!
document
.
documentMode
;
// Edge 20+
var
isEdge
=
!
isIE
&&
!!
window
.
StyleMedia
;
// Chrome 1+
var
isChrome
=
!!
window
.
chrome
&&
!!
window
.
chrome
.
webstore
;
// Blink engine detection
var
isBlink
=
(
isChrome
||
isOpera
)
&&
!!
window
.
CSS
;
// Prüft, ob der URL-Parameter "usage" auf "once" gesetzt ist.
function
isUseOnce
()
{
var
url
=
document
.
location
.
search
;
var
pos
=
url
.
indexOf
(
"
usage=
"
);
if
(
pos
>=
0
&&
url
.
substring
(
pos
+
6
,
pos
+
11
)
==
"
once
"
)
{
return
true
;
}
else
{
return
false
;
}