In React " react-router-dom" v6 , " Switch " is replaced by routes " Routes ". So, you need to update the import from import { Switch, Route } from "react-router-dom"; to import { Routes, Route } from 'react-router-dom';
Follow below steps to redirect you non-http site to https without using .htaccess Change Configuration: go to application/config/config.php and enable hooks to true $config['enable_hooks'] = TRUE; Create new file hooks.php if not exist other wise open file and paste code $hook['post_controller_constructor'][] = array( 'function' => 'redirect_ssl', 'filename' => 'ssl.php', 'filepath' => 'hooks' ); Now create a new folder hooks if ...
If you want add a video to a Bootstrap Modal and either dismiss or close the modal while the video is playing the video will keep on playing when you open again. So you can adjust this behaviour by adding in some JavaScript that acts to stop the video if either the modal window is clicked to close or the background is clicked to dismiss the modal. Add below JavaScript code in your files <script> jQuery(' #keredariModal ').on('hidden.bs.modal', function (e) { // do something... jQuery(' # keredariModal video ').attr("src", jQuery(" # keredariModal video ").attr("src")); }); </script> Note: Please replace your Model ID
Comments
Post a Comment