-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
+ }
+ var ays_pb_flag = true;
+ $(document).on('keydown', function (event) {
+ if ('' && ays_pb_flag) {
+ if (event.keyCode == 27) {
+ $(document).find('.ays-pb-modal-close_2').trigger('click');
+ ays_pb_flag = false;
+ }
+ }
+ });
+ }
+ });
+ if ('On' != 'On') {
+ $(document).find('#ays-pb-screen-shade_2').css({'opacity': '0', 'display': 'none !important', 'pointer-events': 'none'});
+ $(document).find('.ays-pb-modal_2').css('pointer-events', 'auto');
+ $(document).find('.av_pop_modals_2').css('pointer-events', 'none');
+ }
+
+ if ('clickSelector' != 'both') {
+ if ($(document).find('.ays-pb-modals video').hasClass('wp-video-shortcode')) {
+ var videoWidth = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('width');
+ var videoHeight = $(document).find('.ays-pb-modals video.wp-video-shortcode').attr('height');
+ setTimeout(function () {
+ $(document).find('.ays-pb-modals .wp-video').removeAttr('style');
+ $(document).find('.ays-pb-modals .mejs-container').removeAttr('style');
+ $(document).find('.ays-pb-modals video.wp-video-shortcode').removeAttr('style');
+
+ $(document).find('.ays-pb-modals .wp-video').css({'width': '100%'});
+ $(document).find('.ays-pb-modals .mejs-container').css({'width': '100%', 'height': videoHeight + 'px'});
+ $(document).find('.ays-pb-modals video.wp-video-shortcode').css({'width': '100%', 'height': videoHeight + 'px'});
+ }, 1000);
+ }
+ if ($(document).find('.ays-pb-modals iframe').attr('style') != '') {
+ setTimeout(function () {
+ $(document).find('.ays-pb-modals iframe').removeAttr('style');
+ }, 500);
+ }
+ }
+
+ });
+ })(jQuery);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This will close in 0 seconds
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (document).on('click', '#link_keplr', function () {
+ if (window.keplr && window.keplr.experimentalSuggestChain) {
+
+ // Keplr v0.6.4 introduces an experimental feature that supports the feature to suggests the chain from a webpage.
+ // If the user approves, the chain will be added to the user's Keplr extension.
+ // If the user rejects it or the suggested chain information doesn't include the required fields, it will throw an error.
+ // If the same chain id is already registered, it will resolve and not require the user interactions.
+ window.keplr.experimentalSuggestChain({
+ // Chain-id of the Cosmos SDK chain.
+ chainId: "craft",
+ // The name of the chain to be displayed to the user.
+ chainName: "Craft",
+ // RPC endpoint of the chain.
+ rpc: "http://143.198.94.140:26657",
+ // REST endpoint of the chain.
+ rest: "http://143.198.94.140:1317",
+ // Staking coin information
+ // (Currently, Keplr doesn't have the UI that shows multiple tokens, therefore this uses the SHELL token as the primary token althought SHELL is not a staking coin.)
+ stakeCurrency: {
+ // Coin denomination to be displayed to the user.
+ coinDenom: "CRAFT",
+ // Actual denom (i.e. uatom, uscrt) used by the blockchain.
+ coinMinimalDenom: "ucraft",
+ // # of decimal points to convert minimal denomination to user-facing denomination.
+ coinDecimals: 6,
+ // (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
+ // You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
+ // coinGeckoId: ""
+ },
+ // (Optional) If you have a wallet webpage used to stake the coin then provide the url to the website in `walletUrlForStaking`.
+ // The 'stake' button in Keplr extension will link to the webpage.
+ // walletUrlForStaking: "",
+ // The BIP44 path.
+ bip44: {
+ // You can only set the coin type of BIP44.
+ // 'Purpose' is fixed to 44.
+ coinType: 118,
+ },
+ // Bech32 configuration to show the address to user.
+ // This field is the interface of
+ // {
+ // bech32PrefixAccAddr: string;
+ // bech32PrefixAccPub: string;
+ // bech32PrefixValAddr: string;
+ // bech32PrefixValPub: string;
+ // bech32PrefixConsAddr: string;
+ // bech32PrefixConsPub: string;
+ // }
+ bech32Config: {
+ bech32PrefixAccAddr: "craft",
+ bech32PrefixAccPub: "craft" + "pub",
+ bech32PrefixValAddr: "craft" + "valoper",
+ bech32PrefixValPub: "craft" + "valoperpub",
+ bech32PrefixConsAddr: "craft" + "valcons",
+ bech32PrefixConsPub: "craft" + "valconspub",
+ },
+ // List of all coin/tokens used in this chain.
+ currencies: [{
+ // Coin denomination to be displayed to the user.
+ coinDenom: "CRAFT",
+ // Actual denom (i.e. uatom, uscrt) used by the blockchain.
+ coinMinimalDenom: "ucraft",
+ // # of decimal points to convert minimal denomination to user-facing denomination.
+ coinDecimals: 6,
+ // (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
+ // You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
+ // coinGeckoId: ""
+ }],
+ // List of coin/tokens used as a fee token in this chain.
+ feeCurrencies: [{
+ // Coin denomination to be displayed to the user.
+ coinDenom: "CRAFT",
+ // Actual denom (i.e. uatom, uscrt) used by the blockchain.
+ coinMinimalDenom: "ucraft",
+ // # of decimal points to convert minimal denomination to user-facing denomination.
+ coinDecimals: 6,
+ // (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
+ // You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
+ // coinGeckoId: ""
+ }],
+ // (Optional) The number of the coin type.
+ // This field is only used to fetch the address from ENS.
+ // Ideally, it is recommended to be the same with BIP44 path's coin type.
+ // However, some early chains may choose to use the Cosmos Hub BIP44 path of '118'.
+ // So, this is separated to support such chains.
+ // coinType: 118,
+ // (Optional) This is used to set the fee of the transaction.
+ // If this field is not provided, Keplr extension will set the default gas price as (low: 0.01, average: 0.025, high: 0.04).
+ // Currently, Keplr doesn't support dynamic calculation of the gas prices based on on-chain data.
+ // Make sure that the gas prices are higher than the minimum gas prices accepted by chain validators and RPC/REST endpoint.
+ gasPriceStep: {
+ low: 0.025,
+ average: 0.03,
+ high: 0.04
+ }
+ })
+ } else {
+ alert("Please install keplr wallet to connect");
+ }
+ });
+
\ No newline at end of file