this is how i injected scripts into many computer conglomerates
mkdir -p ./dir && wget -mkEpnp –directory-prefix=./dir https://2chan.net/
mkdir -p ./dir && wget -P ./dir https://2chan.net/
<!-- footer.php -->
<script src="/js/app.js" defer></script>
<!-- or inline -->
<script>
console.log('loaded');
</script>
<?php if ($page === 'checkout'): ?>
<script src="/js/checkout.js"></script>
<?php endif; ?>
<script>
const user = <?= json_encode($user, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT) ?>;
</script>
add_action('wp_enqueue_scripts', function () {
wp_enqueue_script('my-script', get_template_directory_uri() . '/js/my.js', [], '1.0', true);
});
the username is sha384-...
No comments:
Post a Comment
no thanks
Note: Only a member of this blog may post a comment.