Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Last active October 5, 2018 03:17
Show Gist options
  • Save phanngoc/b7d261603edeb13d557297c6c53e2f11 to your computer and use it in GitHub Desktop.
Save phanngoc/b7d261603edeb13d557297c6c53e2f11 to your computer and use it in GitHub Desktop.
<script>
(function (c, s, p) {
if (typeof $ === "undefined") {
var e = document.createElement('script');
e.async = 1;e.src = s + "/js/jquery.min.js";
var t = document.getElementsByTagName('head')[0];
t.parentNode.appendChild(e);
}
var fnAfterJquery = function () {
if( window.$ ) {
var e = document.createElement('script');
// Import hidden iframe for button
e.async = 1;
e.id = 'elemTrack';
e.src = s + '/js/track_user.js';
var data = JSON.stringify({target_url: s, param: p, page_url: window.location.href, referrer_url: document.referrer});
e.setAttribute('data-inherit', data);
var t = document.getElementsByTagName('head')[0];
t.appendChild(e);
// Import process event in page
e = document.createElement('script');
e.async = 1;
e.src = s + '/js/event_page.js';
t.appendChild(e);
// Import file css to style banner
e = document.createElement('link')
e.async = 1
e.rel = 'stylesheet'
e.type = 'text/css'
e.href = s + '/css/track_user.css';
t = document.getElementsByTagName('head')[0];
t.appendChild(e);
} else {
// wait 50 milliseconds and try again.
window.setTimeout( fnAfterJquery, 50 );
}
}
fnAfterJquery();
})(window, "https://chat.secure.lovecosmetic.net/web", "top");
</script>
<p class="event-open" id="btnChatFix" data-messageid="" data-type_action="">
<a href="https://chat.secure.lovecosmetic.net/web?param=top" target="_blank">
<img src="https://secure.lovecosmetic.net/images/btn_chat.png" alt="チャットで質問">
<span class="number-noti" style="display: none">
<img src="https://chat.secure.lovecosmetic.net/img/icon_push-notifications_1.png" alt="チャットで質問">
</span>
</a>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment