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
export const assert = (condition: boolean, messageOrError?: string | Error) => { | |
if (!condition) { | |
if (typeof messageOrError === "string" || typeof messageOrError === "undefined") { | |
const message = messageOrError || "Assertion failed"; | |
if (typeof Error !== "undefined") { | |
throw new Error(message); | |
} | |
} else { | |
throw messageOrError; | |
} |
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
<!-- Salesboost 시작 --> | |
<script> | |
var FB_PIXEL_ID = 'YOUR_PIXEL_ID'; | |
var FB_CURRENCY = 'KRW'; | |
!function(w,d,s,u,t,e){t=d.createElement(s);t.async=!0;t.src=u; | |
e=d.getElementsByTagName(s)[0];e.parentNode.insertBefore(t,e)}(window, | |
document,'script','https://cdn.salesbooster.io/sdk/cafe24/web.min.js') | |
</script> | |
<!-- Salesboost 끝 --> |
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
<!-- Start Channel Plugin --> | |
<script> | |
window.channelPluginSettings = { | |
"plugin_id": '${YOUR_PLUGIN_ID}' | |
}; | |
(function() { | |
var node = document.createElement('div'); | |
node.id = 'ch-plugin'; | |
document.body.appendChild(node); | |
var async_load = function() { |
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
<!-- Start Channel Plugin --> | |
<script> | |
window.channelPluginSettings = { | |
"plugin_id": '${YOUR_PLUGIN_ID}' | |
}; | |
if ('$MEMBER_ID$' !== undefined && '$MEMBER_ID$' !== '' && '$MEMBER_ID$' !== null) { | |
window.channelPluginSettings.user = { | |
id: '$MEMBER_ID$', | |
meta: {} | |
}; |
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
address, | |
article, | |
aside, | |
blockquote, | |
canvas, | |
center, | |
dd, | |
details, | |
dir, | |
div, |
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
<!-- Channel Plugin Scripts --> | |
<script> | |
window.channelPluginSettings = { | |
"plugin_id": "YOUR_PLUGIN_ID" | |
}; | |
<!--{? userInfo.member_seq }--> | |
window.channelPluginSettings.user = { | |
'id': '{userid}', | |
'name': '{user_name}', | |
'mobileNumber': '{cellphone}', |
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
public class MyApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
ChannelPlugin.initialize(this, pluginKey); | |
// ChannelPlugin.initialize(this, pluginKey, true); // for debug | |
} | |
} |
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
<application | |
android:name="com.example.MyApplication" | |
... | |
> | |
... | |
<provider | |
android:name="com.zoyi.channel.plugin.android.global.ChannelFileProvider" | |
android:authorities="your.package.ch_provider" | |
android:exported="false" | |
android:grantUriPermissions="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
(function() { | |
if (window.CHPlugin) { | |
return window.console && console.error && console.error('Channel Plugin script included twice.'); | |
} | |
var ch = { q: [] }; | |
['initialize', 'checkIn', 'checkOut', 'show', 'hide', 'track', 'timeTrack'].forEach(function(e) { | |
ch[e] = function() { | |
var n = Array.prototype.slice.call(arguments); | |
n.unshift(e); | |
ch.q.push(n); |
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
<!-- Channel Plugin Scripts --> | |
<script> | |
window.channelPluginSettings = { | |
"plugin_id": "YOUR_PLUGIN_ID", | |
"user": { | |
"id": "YOUR_USER_ID", | |
"name": "YOUR_USER_NAME", | |
"mobileNumber": "YOUR_USER_MOBILE_NUMBER", | |
"meta": { | |
"CUSTOM_VALUE_1": "VALUE_1", |
NewerOlder