assets/js/featureResult.js in appscms-tools-theme-2.9.2 vs assets/js/featureResult.js in appscms-tools-theme-2.9.3
- old
+ new
@@ -3,11 +3,17 @@
let type = params.get('fileName')
let jsonFileName = atob(type)
let folderName = script.dataset.foldername
let fileName = jsonFileName
let lang = script.dataset.lang
-let feature_h1 = document.querySelector('.feature-h1')
-let feature_h2 = document.querySelector('.feature-h2')
+let headingDiv = document.querySelector('#heading-div')
+let feature_h1 = document.createElement('h1')
+let feature_h2 = document.createElement('h2')
+feature_h1.setAttribute('class','feature-h1')
+feature_h1.setAttribute('class','feature-h2')
+headingDiv.appendChild(feature_h1)
+headingDiv.appendChild(feature_h2)
+
let feature_img = document.querySelector('.features-img')
const getSeodata = async () => {
let URL = '/data' + '/' + folderName + '/' + lang + '/' + fileName + '.json'
const data = await fetch(URL)