PageSourceSearch

https://www.temwell.com/frontend/js/render.type.js

js temwell.com collected 2026-10-10 00:16:58 UTC 2,459 bytes, 35 lines download raw bytes

1$(document).ready(function() {
2    if (typeof $.initialize == 'function'){
3
4        $.initialize('[data-render-type]', function() {
5            let $this = $( this );
6            if ($(this).is(":not([finishclone] [finishclone] *)")){
7                let renderType = $this.attr( 'data-render-type');
8                let link = $this.attr('data-render-link');
9                let l;
10                if (renderType == 'tel') {
11                    l = link != void 0 && link != '' && link !=undefined ? link : `tel:${ $this.html() }`;
12                    $this.html(`<a href="${ l }">${ $this.html() }</a>`);
13                } else if (renderType == 'fax') {
14                    l = link != void 0 && link != '' && link !=undefined ? link : `fax:${ $this.html() }`;
15                    $this.html(`<a href="${ l }">${ $this.html() }</a>`);
16                } else if (renderType == 'email') {
17                    l = link != void 0 && link != '' && link !=undefined ? link : `mailto:${ $this.html() }`;
18                    $this.html(`<a href="${ l }">${ $this.html() }</a>`);
19                } else if (renderType == 'address') {
20                    l = link != void 0 && link != '' && link !=undefined ? link : `https://www.google.com.tw/maps?f=q&geocode&q=${ $this.html() }`;
21                    $this.html(`<a href="${ l }" target="_blank">${ $this.html() }</a>`);
22                } else if (renderType == 'dunbradstreet') {
23                    $this.html(`<script language="JavaScript" src="https://dunsregistered.dnb.com" type="text/javascript"></script>`);
24                } else if (renderType == 'map') {
25                    l = link != void 0 && link != '' && link !=undefined ? link : `https://www.google.com.tw/maps?f=q&geocode&q=${ $this.html() }&z=16&output=embed&t=`;
26                    $this.html(`<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="${ l }" ></iframe>`);
27                } else if (renderType == 'qrcode') {
28                    l = link != void 0 && link != '' && link !=undefined ? link : `https://chart.googleapis.com/chart?chs=512x512&cht=qr&chl=${ $this.html() }&choe=UTF-8&chld=H|0`;
29                    $this.html(`<a href="${ $this.html() }" style="background-image: url(${ l });" target="_blank"><img src="https://chart.googleapis.com/chart?chs=512x512&cht=qr&chl=${ $this.html() }&choe=UTF-8&chld=H|0" /></a>`);
30                }
31            }
32
33        });
34    }
35});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.