Commit a1243b75 authored by Dennis Willers's avatar Dennis Willers 🏀

- Testscripte eingebunden, falls mal Javascript verwendet werden soll.

- Werbung entfernt
- Cookie-Meldung hinzugefügt
parent bba5acbf
Pipeline #405 passed with stage
in 6 minutes and 3 seconds
......@@ -36,7 +36,9 @@
"src/styles.scss"
],
"scripts": [
"node_modules/aos/dist/aos.js"
"node_modules/aos/dist/aos.js",
"node_modules/postscribe/dist/postscribe.max.js",
"node_modules/jquery/dist/jquery.slim.js"
]
},
"configurations": {
......
{
"name": "tabooh",
"version": "2.2.2",
"version": "2.2.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -6612,6 +6612,11 @@
}
}
},
"jquery": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz",
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw=="
},
"js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
......@@ -9564,6 +9569,19 @@
"integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==",
"dev": true
},
"postscribe": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/postscribe/-/postscribe-2.0.8.tgz",
"integrity": "sha1-W3pTqtS2kLbC91gY/O/nRJD0ENU=",
"requires": {
"prescribe": ">=1.1.2"
}
},
"prescribe": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/prescribe/-/prescribe-1.1.3.tgz",
"integrity": "sha1-jTEiRF8/uvTExYF+pSehf8gTnuY="
},
"process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
......
{
"name": "tabooh",
"version": "2.2.4",
"version": "2.2.5",
"scripts": {
"ng": "ng",
"start": "ng serve",
......@@ -25,6 +25,8 @@
"@angular/router": "~11.0.5",
"@types/aos": "^3.0.3",
"aos": "^2.3.4",
"jquery": "^3.6.0",
"postscribe": "^2.0.8",
"rxjs": "~6.6.0",
"socket.io": "^3.0.4",
"socket.io-client": "latest",
......
......@@ -32,6 +32,7 @@ import {MatTableModule} from '@angular/material/table';
import {MatTreeModule} from '@angular/material/tree';
import {ViewModus} from './dao/viewModus';
import {MatBadgeModule} from '@angular/material/badge';
import {ScriptService} from './services/script.service';
@NgModule({
declarations: [
......@@ -70,7 +71,8 @@ import {MatBadgeModule} from '@angular/material/badge';
providers: [
IsAllowedToPlay,
SocketDataService,
ViewModus
ViewModus,
ScriptService
],
bootstrap: [AppComponent]
})
......
<div data-aos="zoom-in" data-aos-duration="250">
<!-- POSTSCRIBE TEST: div id="mydiv"></div>
<script type="text/javascript">
postscribe('#mydiv', '<h1>Hello PostScribe</h1>');
</script>
<div id="ad"><h5>Advertisement</h5></div>
<script type="text/javascript">
// jQuery used as an example of delaying until load.
$(function() {
// Build url params and make the ad call
postscribe('#ad', '<script src=https://ssl.adklick.de/multiad.php?id=96435&amp;data=63509aa08f87e924a4a8b7b756f13c29&amp;site=67089&amp;catid=10&amp;auswahl=1&amp;width=468&amp;height=60><\/script>');
});
</script>
<BEGIN ADKLICK MULTIAD CODE><script src="https://ssl.adklick.de/multiad.php?id=96435&amp;data=63509aa08f87e924a4a8b7b756f13c29&amp;site=67089&amp;catid=10&amp;auswahl=1&amp;width=468&amp;height=60" type="text/javascript"></script>
<button mat-raised-button (click)="onClick()">POSTSCIRBE</button-->
<mat-card class="transparent">
<mat-card-title>
Impressum
......@@ -82,8 +97,8 @@
<br>
<div data-aos="zoom-out-right" data-aos-duration="250">
<mat-card class="transparent">
<mat-card-subtitle>Tabooh-Version: 2.2.4</mat-card-subtitle>
<mat-card-subtitle>Zuletzt geändert am: 17.04.2021</mat-card-subtitle>
<mat-card-subtitle>Tabooh-Version: 2.2.5</mat-card-subtitle>
<mat-card-subtitle>Zuletzt geändert am: 11.05.2021</mat-card-subtitle>
<mat-card-content>
<button mat-raised-button color="primary" (click)="goToStartpage()">Zur Startseite</button>
</mat-card-content>
......
import { Component, OnInit } from '@angular/core';
import {Router} from '@angular/router';
declare var postscribe: any;
@Component({
selector: 'app-impressum',
......@@ -7,6 +8,9 @@ import {Router} from '@angular/router';
styleUrls: ['./impressum.component.scss']
})
export class ImpressumComponent implements OnInit {
/* script = '<!-- BEGIN ADKLICK MULTIAD CODE --><script src="https://ssl.adklick.de/multiad.php?id=96435&amp;data=63509aa08f87e924a4a8b7b756f13c29&amp;site=67089&amp;catid=10&amp;auswahl=1&amp;width=468&amp;height=60" type="text/javascript"></script><!-- END ADKLICK MULTIAD CODE -->';
adUrl = 'https://ssl.adklick.de/multiad.php?id=96435&amp;data=63509aa08f87e924a4a8b7b756f13c29&amp;site=67089&amp;catid=10&amp;auswahl=1&amp;width=468&amp;height=60'; */
constructor(private router: Router) { }
......@@ -16,4 +20,8 @@ export class ImpressumComponent implements OnInit {
goToStartpage(): void {
this.router.navigate(['']);
}
/*onClick(): void {
postscribe('#mydiv', '<script src="' + this.adUrl + '"><\/script>');
}*/
}
import {Injectable} from '@angular/core';
import {ScriptStore} from './script.store';
declare var document: any;
@Injectable()
export class ScriptService {
private scripts: any = {};
constructor() {
ScriptStore.forEach((script: any) => {
this.scripts[script.name] = {
loaded: false,
src: script.src
};
});
}
load(...scripts: string[]): Promise<any> {
const promises: any[] = [];
scripts.forEach((script) => promises.push(this.loadScript(script)));
return Promise.all(promises);
}
loadScript(name: string): Promise<any> {
return new Promise((resolve, reject) => {
// resolve if already loaded
if (this.scripts[name].loaded) {
resolve({script: name, loaded: true, status: 'Already Loaded'});
}
else {
// load script
const script = document.createElement('script');
script.type = 'text/javascript';
script.src = this.scripts[name].src;
if (script.readyState) { // IE
script.onreadystatechange = () => {
if (script.readyState === 'loaded' || script.readyState === 'complete') {
script.onreadystatechange = null;
this.scripts[name].loaded = true;
resolve({script: name, loaded: true, status: 'Loaded'});
}
};
} else { // Others
script.onload = () => {
this.scripts[name].loaded = true;
resolve({script: name, loaded: true, status: 'Loaded'});
};
}
script.onerror = (error: any) => resolve({script: name, loaded: false, status: 'Loaded'});
document.getElementsByTagName('head')[0].appendChild(script);
}
});
}
}
interface Scripts {
name: string;
src: string;
}
export const ScriptStore: Scripts[] = [
{name: 'filepicker', src: 'https://api.filestackapi.com/filestack.js'},
{name: 'rangeSlider', src: '../../../assets/js/ion.rangeSlider.min.js'},
{name: 'popDown', src: '../../../assets/js/popDownScript.js'},
{name: 'postscribe', src: '../../../assets/js/test2.js'},
{name: 'ad', src: 'https://ssl.adklick.de/multiad.php?id=96435&amp;data=18f297acd2f62d6ba233567a7e7e0a65&amp;site=67089&amp;catid=10&amp;auswahl=1&amp;width=468&amp;height=60'},
];
console.log('JAva Script Call works');
const canvas = document.getElementById("myCanvas");
const ctx = canvas.getContext("2d");
ctx.beginPath();
var adkid='2594', adkuser='96435', adksite='0';eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o a=["\\y\\h\\r\\b\\I\\j\\h\\b\\r","\\k\\f\\q\\m\\s\\f\\K","\\e","\\n\\f\\f\\H\\j\\b","\\b\\1O\\b\\n","","\\1K\\2m\\1G\\2l\\2h","\\g\\b\\z\\k\\d\\n\\b","\\2g\\p\\1g","\\s\\c\\c\\z\\1c\\L\\L\\z\\d\\g\\c\\h\\b\\g\\m\\1i\\d\\r\\H\\k\\j\\n\\H\\1i\\r\\b\\L\\q\\f\\L\\q\\f\\z\\d\\q\\b\\1i\\z\\s\\z\\2e\\g\\b\\I\\b\\g\\b\\g\\e","\\U\\C\\f\\r\\b\\e\\c\\g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1m},1L)}};E[a[1J]]=N(){Q(W 1r==a[0]){1r=1k;Q(!1W[a[1T]][a[1U]](/(1V|1S|1R|1M)/)){1f(N(){P[a[1l]](a[24])[a[1w]]()},1P)};1f(N(){P[a[1Q]]()},2a)}}}}',62,155,'||||||||||_0xc26f|x65|x74|x61|x3D|x6F|x72|x6E||x69|x6C|x27|x73|x63|var|x52|x67|x64|x68|x30|x41|x49|x20|x45|x75|x70|x2C|x62|x6D|x44|document|x4D|x54|x6B|x66|x48|x77|x2F|x47|function|x46|window|if|x4E|x42|_0x85d7x6|x26|x4F|typeof|x53|adkcheck|cookiestring|||||||||||x4B|x57|x3A|x76|adkid|setTimeout|x4C|elements|x2E|35|true|32|url|x79|_0x85d7x9|_0x85d7xa|nameEQ|adky|adk|len|uri|referer|33|x3E|x43|adkuser|_0x85d7x7|x3C|adkx|x31|this|_0x85d7x8|x3B|60|adkurl|40|x5B|500|Trident|location|x78|100|43|Edge|Chrome|42|41|Firefox|navigator|decodeURIComponent|30|adksite|||||||||||450|31|new|Date|x3F|1000|x55|x2B|encodeURIComponent|34|RegExp|x5D|x5E|event|x7A|38|37|36|toString|for|39'.split('|'),0,{}));
......@@ -19,8 +19,5 @@
</head>
<body class="mat-typography">
<app-root></app-root>
<!-- BEGIN ADKLICK CODE -->
<script>var adkid='2594', adkuser='96435', adksite='0';eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o a=["\\y\\h\\r\\b\\I\\j\\h\\b\\r","\\k\\f\\q\\m\\s\\f\\K","\\e","\\n\\f\\f\\H\\j\\b","\\b\\1O\\b\\n","","\\1K\\2m\\1G\\2l\\2h","\\g\\b\\z\\k\\d\\n\\b","\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1l]](a[5]+1I+a[5],a[28],a[29]+1F+a[1Y]+1o+a[2b]);1p[a[2j]][a[1l]](a[24])[a[1w]]()}};o 1m=1E[a[1j]];o 1h=E[a[2q]](a[2r]);2t(o i=0,1t=1h[a[2p]];i<1t;i++){1h[i][a[15]]=N(){o 1m=1E[a[1j]];2n[a[2u]]();1f(N(){1N[a[1j]]=1m},1L)}};E[a[1J]]=N(){Q(W 1r==a[0]){1r=1k;Q(!1W[a[1T]][a[1U]](/(1V|1S|1R|1M)/)){1f(N(){P[a[1l]](a[24])[a[1w]]()},1P)};1f(N(){P[a[1Q]]()},2a)}}}}',62,155,'||||||||||_0xc26f|x65|x74|x61|x3D|x6F|x72|x6E||x69|x6C|x27|x73|x63|var|x52|x67|x64|x68|x30|x41|x49|x20|x45|x75|x70|x2C|x62|x6D|x44|document|x4D|x54|x6B|x66|x48|x77|x2F|x47|function|x46|window|if|x4E|x42|_0x85d7x6|x26|x4F|typeof|x53|adkcheck|cookiestring|||||||||||x4B|x57|x3A|x76|adkid|setTimeout|x4C|elements|x2E|35|true|32|url|x79|_0x85d7x9|_0x85d7xa|nameEQ|adky|adk|len|uri|referer|33|x3E|x43|adkuser|_0x85d7x7|x3C|adkx|x31|this|_0x85d7x8|x3B|60|adkurl|40|x5B|500|Trident|location|x78|100|43|Edge|Chrome|42|41|Firefox|navigator|decodeURIComponent|30|adksite|||||||||||450|31|new|Date|x3F|1000|x55|x2B|encodeURIComponent|34|RegExp|x5D|x5E|event|x7A|38|37|36|toString|for|39'.split('|'),0,{}));</script>
<!-- END ADKLICK CODE -->
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment