diff --git a/plugins/hyer/public/hyer.js b/plugins/hyer/public/hyer.js deleted file mode 100644 index 3fa62d2..0000000 --- a/plugins/hyer/public/hyer.js +++ /dev/null @@ -1,290 +0,0 @@ -const myaxios = axios.create({ - baseURL: document.getElementsByTagName("base")[0].href -}); - -Vue.component('directory', { - data: function () { - return { - ads: [], - products: [], - selectedProduct: "", - selectedRegion: "", - token: "", - message: false, - messageType: '', - } - }, - template: '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '' + - '' + - '
' + - '
' + - '' + - '' + - '
' + - '' + - '
' + - '
' + - '
' + - '
' + - '
{{ message }}
' + - '
' + - '
' + - '
' + - '' + - '
Premium
' + - '

{{ getTitle(ad) }}

' + - '{{ getLink(ad) }}' + - '

{{ getTeaser(ad) }}

' + - '
' + - '
' + - '
' + - ' {{ ad.city }} ' + - ' {{ ad.size}}' + - '
' + - '
Web:' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '

Web-Agentur oder Freelancer?

' + - '

Dann ist genau hier Ihre Expertise gefragt!
Mit einem Dienstleister-Eintrag auf cmsstash.de

' + - 'Eintrag erstellen' + - '
' + - '
' + - '
', - mounted: function(){ - - var products = document.getElementById("hyerapp").dataset.products; - this.products = products.split(','); - - this.token = document.getElementById("hyerapp").dataset.token; - - self = this; - - var access = document.getElementById("hyerapp").dataset.access; - - myaxios.get('/latestadsfe30s8edw4wdkp?access='+access) - .then(function (response) { - - self.ads = response.data.ads; - /* if matomo is on, check dom for new links */ - if(_paq) - { - Vue.nextTick(function () { - _paq.push(['enableLinkTracking']); - }) - } - }) - .catch(function (error) {}); - }, - methods: { - searchProducts: function() - { - self = this; - - myaxios.get('/searchadsfe30s8edw4wdkp',{ - params: { - token: this.token, - product: this.selectedProduct, - region: this.selectedRegion - } - }) - .then(function (response) { - self.ads = response.data.ads; - /* if matomo is on, check dom for new links */ - if(_paq) - { - Vue.nextTick(function () { - _paq.push(['enableLinkTracking']); - }) - } - }) - .catch(function (error) - { - if(error.response) - { - self.message = error.response.data.message; - self.messageType = 'error'; - } - }); - }, - getTitle: function(product) - { - if(product.ad_title) - { - return product.ad_title; - } - return product.company_name; - }, - getTeaser: function(product) - { - if(product.ad_teaser) - { - return product.ad_teaser; - } - return product.company_description; - }, - getLink: function(product) - { - if(product.ad_link) - { - return product.ad_link; - } - return product.company_link; - }, - getSocialIcon: function(icon,id) - { - var prefix = id ? '#' : ''; - if(icon.indexOf("twitter") > -1){ return prefix+'icon-twitter' } - else if(icon.indexOf("facebook") > -1){ return prefix+'icon-facebook' } - else if(icon.indexOf("xing") > -1){ return prefix+'icon-xing2' } - else if(icon.indexOf("linkedin") > -1){ return prefix+'icon-linkedin2' } - return prefix+'icon-link'; - }, - } -}); - - -Vue.component('premiumads', { - data: function () { - return { - ads: [], - fill: [], - } - }, - template: '
' + - '
' + - '
' + - '
' + - '' + - '
Premium
' + - '

{{ getTitle(ad) }}

' + - '{{ getLink(ad) }}' + - '

{{ getTeaser(ad) }}

' + - '
' + - '
' + - '
' + - ' {{ ad.city }} ' + - ' {{ ad.size}}' + - '
' + - '
Web:' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '

Web-Agentur oder Freelancer?

' + - '

Dann ist genau hier Ihre Expertise gefragt!
Mit einem Dienstleister-Eintrag auf cmsstash.de

' + - 'Eintrag erstellen' + - '
' + - '
' + - '
' + - '
', - mounted: function(){ - - self = this; - var access = document.getElementById("hyerapp").dataset.access; - - myaxios.get('/proadsfe30s8edw4wdkp?access='+access) - .then(function (response) { - self.ads = response.data.ads; - var restads = 3 - self.ads.length; - for(var i = 0; i < restads; i++) - { - self.fill.push(1); - } - /* if matomo is on, check dom for new links */ - if(_paq) - { - Vue.nextTick(function () { - _paq.push(['enableLinkTracking']); - }) - } - }) - .catch(function (error) { - }); - }, - methods: { - getTitle: function(product) - { - if(product.ad_title) - { - return product.ad_title; - } - return product.company_name; - }, - getTeaser: function(product) - { - if(product.ad_teaser) - { - return product.ad_teaser; - } - return product.company_description; - }, - getLink: function(product) - { - if(product.ad_link) - { - return product.ad_link; - } - return product.company_link; - }, - getSocialIcon: function(icon,id) - { - var prefix = id ? '#' : ''; - if(icon.indexOf("twitter") > -1){ return prefix+'icon-twitter' } - else if(icon.indexOf("facebook") > -1){ return prefix+'icon-facebook' } - else if(icon.indexOf("xing") > -1){ return prefix+'icon-xing2' } - else if(icon.indexOf("linkedin") > -1){ return prefix+'icon-linkedin2' } - return prefix+'icon-link'; - }, - } -}); - -var app = new Vue({ - el: "#hyerapp", - data: { - disabled: false, - message: '', - messageType: '', - }, -}); \ No newline at end of file