Posts

Showing posts from March, 2021

Select dropdown with search bootstrap

Image
<!DOCTYPE html> <html> <head> <title>test</title> </head> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css">        <select id="mdlbtn80" class="test"> <option value="0">Abonnement kiezen</option> <option value="485">Hartstichting</option> <option value="481"...

visual studio code shortcuts

 contrl+B   Hide show sidebar contrl+P   Search File contrl+\   split screen contrl+\   split screen contrl+W   close file contrl+L   change and replace all find word in page contrl+D   change and replace desired find word in page contrl+lft/right  move to next word

How to remove public from laravel using htaccess

  1) Go to Public File Copy .htaccess file and paste in root directory 2) In root Dicertory copy server.php and paste it in same place and rename it to index.php Successfully removed public from url if you have an error now start your server once after this security issue in this  its show oue .env file  Now steps for secqure env file # Deny access to .env <Files .env> Order allow,deny Deny from all </Files> Paste it to your htaccess file

Keybord Shorcut

  1. Clipboard History  Windows + V key  2. Dragging a window to right Windows + Left, Windows + Up or Windows + Down or Windows + Right 3. Windows + 1, 2, 3, 4,---N  Windows + 1, Windows + 2 etc keys to open your first, second and third windows respectively to open your taskbar menu 4.  Minimize all windows  Windows + D key

Trip

 kalka  chandigarh mall road 2d 2 n local 1 hadimba temple 2)Dungri van vihar 3)club house 4)vashisth temple 5)manu temple   paidal no taxi whithin 5 km Day2 Solang valley paragliding 1600 taxi 1200 round auto 600 bike 700 bus 20 vasisth temple rohtank nov-feb  snow july-oct Darjeeling Tour Budget Itinerary https://colorlib.com/preview/#philosophy https://colorlib.com/preview/#bounty https://colorlib.com/preview/#wordify https://wp-me.com/top-10-best-indian-bloggers-earnings/ theopenmouth

Localize a script in js file

 wp_localize_script( string $handle1, string $object_name1, array $l10n1 ) $handle1 (string) (Required) Script handle the data will be attached to. $object_name1 (string) (Required) Name for the JavaScript object. Passed directly, so it should be qualified JS variable. Example: '/[a-zA-Z0-9_]+/'. $l10n1 (array) (Required) The data itself. The data can be either a single or multi-dimensional array. // Register the script wp_register_script( 'some_handle1', 'path/to/myscript1.js' );   // Localize the script with new data $translation_array1 = array(     'some_string1' => __( 'Some string to translate1', 'plugin-domain1' ),     'a_value1' => '101' ); wp_localize_script( 'some_handle1', 'object_name1', $translation_array1 );   // Enqueued script with localized data. wp_enqueue_script( 'some_handle1' ); You can access the variables in JavaScript as follows: // alerts 'Some string to translate...

Remove HTML tags including script and style from post in wp

wp_strip_all_tags( string $string, bool $remove_breaks = false )

Laravel Serve Site On IP or Host

 php artisan serve --host=132.154.224.97 --port=8001