kickstarts chat window to fix visibility failure on load, enables keep_files for french path (speeds dev watcher rebuild cycle)

This commit is contained in:
Chuck Williams 2017-03-22 04:01:44 -06:00
parent 2c308564d6
commit ea2c313ace
2 changed files with 13 additions and 1 deletions

View file

@ -59,4 +59,4 @@ srcset:
source: assets/img
output: assets/img/resized
keep_files: ['assets/img/resized','es/assets/img/resized','cn/assets/img/resized','pt/assets/img/resized','ru/assets/img/resized','it/assets/img/resized']
keep_files: ['assets/img/resized','fr/assets/img/resized','es/assets/img/resized','cn/assets/img/resized','pt/assets/img/resized','ru/assets/img/resized','it/assets/img/resized']

View file

@ -55,6 +55,18 @@ var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
})();
//*********begin kickstart
//for some reason the chat window doesn't play nicely immediately on load,
//and is invisible... so this little jimmy kick starts it. ¯\_(ツ)_/¯ CCW_20170322_0356MST
var LC_API = LC_API || {};
LC_API.on_after_load = function() {
window.setTimeout(function () {
LC_API.minimize_chat_window();
}, 1500);
};
//*********end kickstart
</script>
<!-- End of LiveChat code -->