Changeset 2674699
- Timestamp:
- 02/08/2022 03:09:53 AM (4 years ago)
- Location:
- keyspider-search/trunk/public
- Files:
-
- 2 edited
-
class-keyspider-search-public.php (modified) (1 diff)
-
js/keyspider-search-public.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
keyspider-search/trunk/public/class-keyspider-search-public.php
r2619714 r2674699 119 119 */ 120 120 121 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/keyspider-search-public.js', array( 'jquery' ), $this->version, false ); 121 wp_register_script( 'keyspider-search-js', 'https://cdn.jsdelivr.net/gh/keyspidr/Enduser-CDN-JS-library/keyspider-search-js-lib.js', null, $this->version, false ); 122 wp_enqueue_script('keyspider-search-js'); 122 123 123 124 } -
keyspider-search/trunk/public/js/keyspider-search-public.js
r2619714 r2674699 13 13 **/ 14 14 $(function() { 15 var script = document.createElement('script'); 16 script.type = 'text/javascript'; 17 script.src = "https://cdn.jsdelivr.net/gh/keyspidr/Enduser-CDN-JS-library/keyspider-search-js-lib.js"; 18 document.head.appendChild(script); 15 //code here 19 16 }); 20 17
Note: See TracChangeset
for help on using the changeset viewer.