(function ($, Drupal, drupalSettings) { 'use strict'; Drupal.typnotif = { }; var index = 1; var shopping = false; var sale = false; var path = drupalSettings.path.baseUrl; //var path = 'https://www.yellowpages.co.th/'; var currentPath = drupalSettings.path.currentPath; Drupal.typnotif.createListView = function(result, type){ let html = ''; if(type === 'shopping'){ html = "
"+result[i]['humanname']+"
"; html += ""+Drupal.t('Amount')+" : "+result[i]['count']+"
"+Drupal.t('Price')+" : "+result[i]['total']+" "+Drupal.t('THB.')+"
"+Drupal.t('About', {}, { context: "time" })+" "+result[i]['date']+"
"; html += ""+result[i]['humanname']+"
"; html += ""+Drupal.t('Amount')+" : "+result[i]['count']+"
"+Drupal.t('Price')+" : "+result[i]['total']+" "+Drupal.t('THB.')+"
"+Drupal.t('About', {}, { context: "time" })+" "+result[i]['date']+"
"; html += "