Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Verificados

Lista com todos os sítios que foram verificados pela TIC Web Acessibilidade. Dentro de cada domínio, há informações detalhadas sobre as páginas coletadas, bem como os erros e avisos de cada uma *.

Endereço Nota Erros Avisos

www.jucurutu.rn.gov.br/2022/04/

76.77 166 181
Recomendações Avaliadas
2.2 Garantir que os objetos programáveis sejam acessíveis.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
2.2.6 Presença do elemento SCRIPT sem o elemento NOSCRIPT 16 17 31 40 245 290 297 304 880 1494 1509 1515 1522 1528 1537 1603 1630
17 <![CDATA[<script type="application/ld+json" class="aioseo-schema"> {"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.jucurutu.rn.gov.br\/#listItem","position":1,"item":{"@type":"WebPage","@id":"https:\/\/www.jucurutu.rn.gov.br\/","name":"Dom\u00e9stica","description":"Portal da PMJ","url":"https:\/\/www.jucurutu.rn.gov.br\/"},"nextItem":"https:\/\/www.jucurutu.rn.gov.br\/2022\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/#listItem","position":2,"item":{"@type":"WebPage","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/","name":"2022","url":"https:\/\/www.jucurutu.rn.gov.br\/2022\/"},"nextItem":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/#listItem","previousItem":"https:\/\/www.jucurutu.rn.gov.br\/#listItem"},{"@type":"ListItem","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/#listItem","position":3,"item":{"@type":"WebPage","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/","name":"abril, 2022","url":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/"},"previousItem":"https:\/\/www.jucurutu.rn.gov.br\/2022\/#listItem"}]},{"@type":"CollectionPage","@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/#collectionpage","url":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/","name":"abril, 2022 - Prefeitura Municipal de Jucurutu","inLanguage":"pt-BR","isPartOf":{"@id":"https:\/\/www.jucurutu.rn.gov.br\/#website"},"breadcrumb":{"@id":"https:\/\/www.jucurutu.rn.gov.br\/2022\/04\/#breadcrumblist"}},{"@type":"Organization","@id":"https:\/\/www.jucurutu.rn.gov.br\/#organization","name":"Prefeitura Municipal de Jucurutu","url":"https:\/\/www.jucurutu.rn.gov.br\/"},{"@type":"WebSite","@id":"https:\/\/www.jucurutu.rn.gov.br\/#website","url":"https:\/\/www.jucurutu.rn.gov.br\/","name":"Prefeitura Municipal de Jucurutu","description":"Portal da PMJ","inLanguage":"pt-BR","publisher":{"@id":"https:\/\/www.jucurutu.rn.gov.br\/#organization"}}]} </script>]]>
31 <![CDATA[<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://www.jucurutu.rn.gov.br/2022/04/","url":"https://www.jucurutu.rn.gov.br/2022/04/","name":"abril 2022 - Prefeitura Municipal de Jucurutu","isPartOf":{"@id":"https://www.jucurutu.rn.gov.br/#website"},"breadcrumb":{"@id":"https://www.jucurutu.rn.gov.br/2022/04/#breadcrumb"},"inLanguage":"pt-BR"},{"@type":"BreadcrumbList","@id":"https://www.jucurutu.rn.gov.br/2022/04/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Início","item":"https://www.jucurutu.rn.gov.br/"},{"@type":"ListItem","position":2,"name":"Arquivos para abril 2022"}]},{"@type":"WebSite","@id":"https://www.jucurutu.rn.gov.br/#website","url":"https://www.jucurutu.rn.gov.br/","name":"Prefeitura Municipal de Jucurutu","description":"Portal da PMJ","publisher":{"@id":"https://www.jucurutu.rn.gov.br/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.jucurutu.rn.gov.br/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https://www.jucurutu.rn.gov.br/#organization","name":"Prefeitura Municipal de Jucurutu / RN","url":"https://www.jucurutu.rn.gov.br/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https://www.jucurutu.rn.gov.br/#/schema/logo/image/","url":"https://www.jucurutu.rn.gov.br/wp-content/uploads/2018/07/LOGO2.png","contentUrl":"https://www.jucurutu.rn.gov.br/wp-content/uploads/2018/07/LOGO2.png","width":621,"height":563,"caption":"Prefeitura Municipal de Jucurutu / RN"},"image":{"@id":"https://www.jucurutu.rn.gov.br/#/schema/logo/image/"},"sameAs":["https://www.facebook.com/gabineteciviljucuruturn/","https://twitter.com/MJucurutu","https://www.instagram.com/municipiojucurutu/","https://www.youtube.com/channel/UC_KE3vT5we3CeSBYZF7a76g"]}]}</script>]]>
40 <![CDATA[<script data-cfasync="false" data-wpfc-render="false" type="text/javascript"> var mi_version = '8.20.0'; var mi_track_user = true; var mi_no_track_reason = ''; var disableStrs = [ 'ga-disable-G-4M0SWK82L2', ]; /* Function to detect opted out users */ function __gtagTrackerIsOptedOut() { for (var index = 0; index < disableStrs.length; index++) { if (document.cookie.indexOf(disableStrs[index] + '=true') > -1) { return true; } } return false; } /* Disable tracking if the opt-out cookie exists. */ if (__gtagTrackerIsOptedOut()) { for (var index = 0; index < disableStrs.length; index++) { window[disableStrs[index]] = true; } } /* Opt-out function */ function __gtagTrackerOptout() { for (var index = 0; index < disableStrs.length; index++) { document.cookie = disableStrs[index] + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStrs[index]] = true; } } if ('undefined' === typeof gaOptout) { function gaOptout() { __gtagTrackerOptout(); } } window.dataLayer = window.dataLayer || []; window.MonsterInsightsDualTracker = { helpers: {}, trackers: {}, }; if (mi_track_user) { function __gtagDataLayer() { dataLayer.push(arguments); } function __gtagTracker(type, name, parameters) { if (!parameters) { parameters = {}; } if (parameters.send_to) { __gtagDataLayer.apply(null, arguments); return; } if (type === 'event') { parameters.send_to = monsterinsights_frontend.v4_id; var hookName = name; if (typeof parameters['event_category'] !== 'undefined') { hookName = parameters['event_category'] + ':' + name; } if (typeof MonsterInsightsDualTracker.trackers[hookName] !== 'undefined') { MonsterInsightsDualTracker.trackers[hookName](parameters); } else { __gtagDataLayer('event', name, parameters); } } else { __gtagDataLayer.apply(null, arguments); } } __gtagTracker('js', new Date()); __gtagTracker('set', { 'developer_id.dZGIzZG': true, }); __gtagTracker('config', 'G-4M0SWK82L2', {"forceSSL":"true","link_attribution":"true"} ); window.gtag = __gtagTracker; (function () { /* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */ /* ga and __gaTracker compatibility shim. */ var noopfn = function () { return null; }; var newtracker = function () { return new Tracker(); }; var Tracker = function () { return null; }; var p = Tracker.prototype; p.get = noopfn; p.set = noopfn; p.send = function () { var args = Array.prototype.slice.call(arguments); args.unshift('send'); __gaTracker.apply(null, args); }; var __gaTracker = function () { var len = arguments.length; if (len === 0) { return; } var f = arguments[len - 1]; if (typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function') { if ('send' === arguments[0]) { var hitConverted, hitObject = false, action; if ('event' === arguments[1]) { if ('undefined' !== typeof arguments[3]) { hitObject = { 'eventAction': arguments[3], 'eventCategory': arguments[2], 'eventLabel': arguments[4], 'value': arguments[5] ? arguments[5] : 1, } } } if ('pageview' === arguments[1]) { if ('undefined' !== typeof arguments[2]) { hitObject = { 'eventAction': 'page_view', 'page_path': arguments[2], } } } if (typeof arguments[2] === 'object') { hitObject = arguments[2]; } if (typeof arguments[5] === 'object') { Object.assign(hitObject, arguments[5]); } if ('undefined' !== typeof arguments[1].hitType) { hitObject = arguments[1]; if ('pageview' === hitObject.hitType) { hitObject.eventAction = 'page_view'; } } if (hitObject) { action = 'timing' === arguments[1].hitType ? 'timing_complete' : hitObject.eventAction; hitConverted = mapArgs(hitObject); __gtagTracker('event', action, hitConverted); } } return; } function mapArgs(args) { var arg, hit = {}; var gaMap = { 'eventCategory': 'event_category', 'eventAction': 'event_action', 'eventLabel': 'event_label', 'eventValue': 'event_value', 'nonInteraction': 'non_interaction', 'timingCategory': 'event_category', 'timingVar': 'name', 'timingValue': 'value', 'timingLabel': 'event_label', 'page': 'page_path', 'location': 'page_location', 'title': 'page_title', }; for (arg in args) { if (!(!args.hasOwnProperty(arg) || !gaMap.hasOwnProperty(arg))) { hit[gaMap[arg]] = args[arg]; } else { hit[arg] = args[arg]; } } return hit; } try { f.hitCallback(); } catch (ex) { } }; __gaTracker.create = newtracker; __gaTracker.getByName = newtracker; __gaTracker.getAll = function () { return []; }; __gaTracker.remove = noopfn; __gaTracker.loaded = true; window['__gaTracker'] = __gaTracker; })(); } else { console.log(""); (function () { function __gtagTracker() { return null; } window['__gtagTracker'] = __gtagTracker; window['gtag'] = __gtagTracker; })(); } </script>]]>
245 <![CDATA[<script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/www.jucurutu.rn.gov.br\/wp-includes\/js\/wp-emoji-release.min.js?ver=71e78e952e72e67596605a2c79482093"}}; /*! This file is auto-generated */ !function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c\udfff","\ud83e\udef1\ud83c\udffb\u200b\ud83e\udef2\ud83c\udfff")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings); </script>]]>
290 <![CDATA[<script data-cfasync="false" data-wpfc-render="false" type="text/javascript" id='monsterinsights-frontend-script-js-extra'>/* <![CDATA[ */ var monsterinsights_frontend = {"js_events_tracking":"true","download_extensions":"doc,pdf,ppt,zip,xls,docx,pptx,xlsx","inbound_paths":"[{\"path\":\"\\\/go\\\/\",\"label\":\"affiliate\"},{\"path\":\"\\\/recommend\\\/\",\"label\":\"affiliate\"}]","home_url":"https:\/\/www.jucurutu.rn.gov.br","hash_tracking":"false","v4_id":"G-4M0SWK82L2"};/* ]]> */ </script>]]>
297 <![CDATA[<script> window.tdwGlobal = {"adminUrl":"https:\/\/www.jucurutu.rn.gov.br\/wp-admin\/","wpRestNonce":"b53fc7c2bc","wpRestUrl":"https:\/\/www.jucurutu.rn.gov.br\/wp-json\/","permalinkStructure":"\/%postname%\/"}; </script>]]>
304 <![CDATA[<script> var tdBlocksArray = []; //here we store all the items for the current page //td_block class - each ajax block uses a object of this class for requests function tdBlock() { this.id = ''; this.block_type = 1; //block type id (1-234 etc) this.atts = ''; this.td_column_number = ''; this.td_current_page = 1; // this.post_count = 0; //from wp this.found_posts = 0; //from wp this.max_num_pages = 0; //from wp this.td_filter_value = ''; //current live filter value this.is_ajax_running = false; this.td_user_action = ''; // load more or infinite loader (used by the animation) this.header_color = ''; this.ajax_pagination_infinite_stop = ''; //show load more at page x } // td_js_generator - mini detector (function(){ var htmlTag = document.getElementsByTagName("html")[0]; if ( navigator.userAgent.indexOf("MSIE 10.0") > -1 ) { htmlTag.className += ' ie10'; } if ( !!navigator.userAgent.match(/Trident.*rv\:11\./) ) { htmlTag.className += ' ie11'; } if ( navigator.userAgent.indexOf("Edge") > -1 ) { htmlTag.className += ' ieEdge'; } if ( /(iPad|iPhone|iPod)/g.test(navigator.userAgent) ) { htmlTag.className += ' td-md-is-ios'; } var user_agent = navigator.userAgent.toLowerCase(); if ( user_agent.indexOf("android") > -1 ) { htmlTag.className += ' td-md-is-android'; } if ( -1 !== navigator.userAgent.indexOf('Mac OS X') ) { htmlTag.className += ' td-md-is-os-x'; } if ( /chrom(e|ium)/.test(navigator.userAgent.toLowerCase()) ) { htmlTag.className += ' td-md-is-chrome'; } if ( -1 !== navigator.userAgent.indexOf('Firefox') ) { htmlTag.className += ' td-md-is-firefox'; } if ( -1 !== navigator.userAgent.indexOf('Safari') && -1 === navigator.userAgent.indexOf('Chrome') ) { htmlTag.className += ' td-md-is-safari'; } if( -1 !== navigator.userAgent.indexOf('IEMobile') ){ htmlTag.className += ' td-md-is-iemobile'; } })(); var tdLocalCache = {}; ( function () { "use strict"; tdLocalCache = { data: {}, remove: function (resource_id) { delete tdLocalCache.data[resource_id]; }, exist: function (resource_id) { return tdLocalCache.data.hasOwnProperty(resource_id) && tdLocalCache.data[resource_id] !== null; }, get: function (resource_id) { return tdLocalCache.data[resource_id]; }, set: function (resource_id, cachedData) { tdLocalCache.remove(resource_id); tdLocalCache.data[resource_id] = cachedData; } }; })(); var td_viewport_interval_list=[{"limitBottom":767,"sidebarWidth":228},{"limitBottom":1018,"sidebarWidth":300},{"limitBottom":1140,"sidebarWidth":324}]; var td_animation_stack_effect="type0"; var tds_animation_stack=true; var td_animation_stack_specific_selectors=".entry-thumb, img"; var td_animation_stack_general_selectors=".td-animation-stack img, .td-animation-stack .entry-thumb, .post img"; var td_ajax_url="https:\/\/www.jucurutu.rn.gov.br\/wp-admin\/admin-ajax.php?td_theme_name=Newspaper&v=8.7.2"; var td_get_template_directory_uri="https:\/\/www.jucurutu.rn.gov.br\/wp-content\/themes\/Newspaper"; var tds_snap_menu="smart_snap_always"; var tds_logo_on_sticky=""; var tds_header_style="11"; var td_please_wait="Aguarde..."; var td_email_user_pass_incorrect="Usu\u00e1rio ou senha incorreta!"; var td_email_user_incorrect="E-mail ou nome de usu\u00e1rio incorreto!"; var td_email_incorrect="E-mail incorreto!"; var tds_more_articles_on_post_enable="show"; var tds_more_articles_on_post_time_to_wait=""; var tds_more_articles_on_post_pages_distance_from_top=0; var tds_theme_color_site_wide="#4ac5db"; var tds_smart_sidebar="enabled"; var tdThemeName="Newspaper"; var td_magnific_popup_translation_tPrev="Anterior (Seta a esquerda )"; var td_magnific_popup_translation_tNext="Avan\u00e7ar (tecla de seta para a direita)"; var td_magnific_popup_translation_tCounter="%curr% de %total%"; var td_magnific_popup_translation_ajax_tError="O conte\u00fado de %url% n\u00e3o pode ser carregado."; var td_magnific_popup_translation_image_tError="A imagem #%curr% n\u00e3o pode ser carregada."; var tdDateNamesI18n={"month_names":["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"month_names_short":["jan","fev","mar","abr","maio","jun","jul","ago","set","out","nov","dez"],"day_names":["domingo","segunda-feira","ter\u00e7a-feira","quarta-feira","quinta-feira","sexta-feira","s\u00e1bado"],"day_names_short":["dom","seg","ter","qua","qui","sex","s\u00e1b"]}; var td_ad_background_click_link=""; var td_ad_background_click_target=""; </script>]]>
880 <![CDATA[<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "item": { "@type": "WebSite", "@id": "https://www.jucurutu.rn.gov.br/", "name": "Início" } },{ "@type": "ListItem", "position": 2, "item": { "@type": "WebPage", "@id": "https://www.jucurutu.rn.gov.br/2022/", "name": "2022" } },{ "@type": "ListItem", "position": 3, "item": { "@type": "WebPage", "@id": "https://www.jucurutu.rn.gov.br/2022/04/", "name": "abril" } } ] } </script>]]>
1494 <![CDATA[<script type="text/javascript"> </script>]]>
1509 <![CDATA[<script type='text/javascript' id='wpa-toolbar-js-extra'> /* <![CDATA[ */ var wpatb = {"location":"body","is_rtl":"ltr","is_right":"left","responsive":"a11y-non-responsive","contrast":"Toggle High Contrast","grayscale":"Toggle Grayscale","fontsize":"Toggle Font size","enable_grayscale":"false","enable_fontsize":"true","enable_contrast":"true"}; /* ]]> */ </script>]]>
1515 <![CDATA[<script type='text/javascript' id='ui-a11y-js-extra'> /* <![CDATA[ */ var wpa11y = {"path":"https:\/\/www.jucurutu.rn.gov.br\/wp-content\/plugins\/wp-accessibility\/toolbar\/css\/a11y-contrast.css"}; /* ]]> */ </script>]]>
1522 <![CDATA[<script type='text/javascript' id='wp-accessibility-js-extra'> /* <![CDATA[ */ var wpa = {"skiplinks":{"enabled":false,"output":""},"target":"1","tabindex":"1","underline":{"enabled":false,"target":"a"},"dir":"","lang":"","titles":"","labels":"","wpalabels":{"s":"Search","author":"Name","email":"Email","url":"Website","comment":"Comment"},"current":"","errors":""}; /* ]]> */ </script>]]>
1528 <![CDATA[<script type='text/javascript' id='longdesc.button-js-extra'> /* <![CDATA[ */ var wparest = {"url":"https:\/\/www.jucurutu.rn.gov.br\/wp-json\/wp\/v2\/media","text":"<span class=\"dashicons dashicons-media-text\" aria-hidden=\"true\"><\/span><span class=\"screen-reader\">Long Description<\/span>"}; /* ]]> */ </script>]]>
1537 <![CDATA[<script> (function(){ var html_jquery_obj = jQuery('html'); if (html_jquery_obj.length && (html_jquery_obj.is('.ie8') || html_jquery_obj.is('.ie9'))) { var path = 'https://www.jucurutu.rn.gov.br/wp-content/themes/Newspaper/style.css'; jQuery.get(path, function(data) { var str_split_separator = '#td_css_split_separator'; var arr_splits = data.split(str_split_separator); var arr_length = arr_splits.length; if (arr_length > 1) { var dir_path = 'https://www.jucurutu.rn.gov.br/wp-content/themes/Newspaper'; var splited_css = ''; for (var i = 0; i < arr_length; i++) { if (i > 0) { arr_splits[i] = str_split_separator + ' ' + arr_splits[i]; } //jQuery('head').append('<style>' + arr_splits[i] + '</style>'); var formated_str = arr_splits[i].replace(/\surl\(\'(?!data\:)/gi, function regex_function(str) { return ' url(\'' + dir_path + '/' + str.replace(/url\(\'/gi, '').replace(/^\s+|\s+$/gm,''); }); splited_css += "<style>" + formated_str + "</style>"; } var td_theme_css = jQuery('link#td-theme-css'); if (td_theme_css.length) { td_theme_css.after(splited_css); } } }); } })(); </script>]]>
1603 <![CDATA[<script> (function(jQuery, undefined) { jQuery(window).ready(function() { if ( 'undefined' !== typeof tdcAdminIFrameUI ) { var $liveIframe = tdcAdminIFrameUI.getLiveIframe(); if ( $liveIframe.length ) { $liveIframe.load(function() { $liveIframe.contents().find( 'body').append( '<textarea class="tdw-css-writer-editor" style="display: none"></textarea>' ); }); } } }); })(jQuery); </script>]]>
1630 <![CDATA[<script> jQuery(window).load(function (){ if ( 'undefined' !== typeof tdLiveCssInject ) { tdLiveCssInject.init(); var editor_textarea = jQuery('.td_live_css_uid_1_651f5455ab9e9'); var languageTools = ace.require("ace/ext/language_tools"); var tdcCompleter = { getCompletions: function (editor, session, pos, prefix, callback) { if (prefix.length === 0) { callback(null, []); return } if ('undefined' !== typeof tdcAdminIFrameUI) { var data = { error: undefined, getShortcode: '' }; tdcIFrameData.getShortcodeFromData(data); if (!_.isUndefined(data.error)) { tdcDebug.log(data.error); } if (!_.isUndefined(data.getShortcode)) { var regex = /el_class=\"([A-Za-z0-9_-]*\s*)+\"/g, results = data.getShortcode.match(regex); var elClasses = {}; for (var i = 0; i < results.length; i++) { var currentClasses = results[i] .replace('el_class="', '') .replace('"', '') .split(' '); for (var j = 0; j < currentClasses.length; j++) { if (_.isUndefined(elClasses[currentClasses[j]])) { elClasses[currentClasses[j]] = ''; } } } var arrElClasses = []; for (var prop in elClasses) { arrElClasses.push(prop); } callback(null, arrElClasses.map(function (item) { return { name: item, value: item, meta: 'in_page' } })); } } } }; languageTools.addCompleter(tdcCompleter); window.editor = ace.edit("td_live_css_uid_1_651f5455ab9e9"); // 'change' handler is written as function because it's called by tdc_on_add_css_live_components (of wp_footer hook) // We did it to reattach the existing compiled css to the new content received from server. window.editorChangeHandler = function () { //tdwState.lessWasEdited = true; window.onbeforeunload = function () { if (tdwState.lessWasEdited) { return "You have attempted to leave this page. Are you sure?"; } return false; }; var editorValue = editor.getSession().getValue(); editor_textarea.val(editorValue); if ('undefined' !== typeof tdcAdminIFrameUI) { tdcAdminIFrameUI.getLiveIframe().contents().find('.tdw-css-writer-editor:first').val(editorValue); // Mark the content as modified // This is important for showing info when composer closes tdcMain.setContentModified(); } tdLiveCssInject.less(); }; editor.getSession().setValue(editor_textarea.val()); editor.getSession().on('change', editorChangeHandler); editor.setTheme("ace/theme/textmate"); editor.setShowPrintMargin(false); editor.getSession().setMode("ace/mode/less"); editor.setOptions({ enableBasicAutocompletion: true, enableSnippets: true, enableLiveAutocompletion: false }); } }); </script>]]>