This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta content="width=device-width, initial-scale=1.0" name="viewport" /> | |
<script > | |
// This is upgraded Zendesk Widget handler script. Ver: 1.11 Updated: 2020-01-14 | |
// It is intended to simplify the control of Widget behaviour through custom JavaScript configuration | |
// Script is using Widget JS API https://developer.zendesk.com/embeddables/docs/widget/introduction | |
// Script expects integrated Chat experience to be available | |
// To run the script follow the steps below: | |
// 1. update WIDGET_KEY | |
// 2. Decide which part of the Widget you want to run using runWidgetLogic().init({settings object}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy URL sharing button. CSS dependency: .share-url | |
(function() { | |
'use strict'; | |
if (window.location.href.indexOf('/articles/') > -1) { // only run on article page | |
if ( !$('.btn-copy').length ) { // add button if doesn't exist | |
$('.article-share .share').prepend('<li><a class="btn-copy share-url">Copy URL</a></li>'); | |
$('.btn-copy').on('click', copyStringToClipboard); | |
} | |
function copyStringToClipboard(event) { // copy article URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Custom chat script begin --> | |
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=3c32985e-0ce9-42ed-9c6f-82ac021f84e7"> </script> | |
<script> | |
// This is upgraded Zendesk Widget handler script. Ver: 1.2 Updated: 2019-01-02 | |
// It is intended to simplify the control of Widget behaviour through custom JavaScript configuration | |
// Script is using Widget JS API https://developer.zendesk.com/embeddables/docs/widget/introduction | |
// Script expects integrated Chat experience to be available | |
// To run the script follow the steps below: | |
// 1. Decide which part of the Widget you want to run using runWidgetLogic().init(true, true, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Guide form handler script | |
// Applies light customisation around Attachment area on a specific ticket form | |
var zdFormHandler = function(){ | |
'use strict'; | |
// Parse URL for form ID | |
function _getUrlParameter(name, url) { | |
url = url || window.location.href; | |
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)','g'), result = regex.exec(url); | |
return result && result.length ? result[1] : null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Zendesk Web Widget Chat departments filtering v 1.0.0 | |
Script contains of 2 parts: | |
1. "departments_config" variable that contains JSON configuration | |
2. Executable JavaScript | |
departments_config JSON structure (example): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.zESettings = { | |
webWidget: { | |
contactOptions: { | |
enabled: true | |
}, | |
contactForm: { | |
suppress: false, | |
selectTicketForm: { | |
'*': 'Vælg dit problem' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// OPTION 1 ///// | |
function ww(prop, params, action) { | |
return zE('webWidget' + (action ? ':' + action : ''), prop, params); | |
} | |
ww('prefill', { | |
name: { | |
value: 'isamu', | |
readOnly: true // optional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for comment in ticket.comments %}{% capture indent %}{% assign current_index = forloop.index %}{% for i in (1..current_index) %}{% endfor %}{% endcapture %}{{indent}}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><i>{{comment.author.name}} wrote on {{comment.created_at}}:</i><br>{{indent}}{{ comment.value_rich }}{% if comment.attachments.size > 0 %}<br>{{indent}}<i>Attachments:</i><br>{% for attachment in comment.attachments %}{{indent}}<a href="{{ attachment.url }}" title="{{ attachment.filename }}">{{ attachment.filename }}</a>{% endfor %}<br>{% endif %}{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected]"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Activate inactive brands | |
// run in console | |
(function() { | |
function fetchAllBrandsAndActivate (url) { | |
jQuery.ajax({ | |
url: url, | |
async: false | |
}).done(function(data) { | |
jQuery.each(data.brands,function(i,v){ | |
console.log("CURRENT BRAND: " + v.name + " ::: " + v.brand_url + " ||| " + v.subdomain + " >>> " + v.help_center_state + " <<< " + v.active + " ~~~ " + v.id); |
NewerOlder