How to hook up CSS search bar to JavaScript or another server side language - html

I have a HTML/CSS template that included a search box, but I'm not sure what I need to do to make that search box actually work. Here is a link to the website http://teamb4p.ml
Any tips or advice would be great! Thanks in advance.

Not commenting as I don't have the rep yet.
Try this tutorial, it uses the Google API.
You can copy and paste most of the Jquery and should only need to change a few variables.
http://tutorialzine.com/2010/09/google-powered-site-search-ajax-jquery/

Related

Grav CMS editor plugin for html tags as short codes in drop down menu (admin

I am wondering if there is any similar approach or plugin for Grav CMS as the one below for Processwire:
https://processwire.com/modules/process-hanna-code/
It fits fantastic for our setup. In another project based on Grav, we would need the same function now:
A drop down menu in the admin backend, where you edit page content, to include short codes. These codes represent html tags fetched via script from a remote API.
For now I just found this Plugin: https://getgrav.org/premium/nextgen-editor. I m not sure if it does the trick. We basically need just support for short-codes.
Does anyone know some plugins for Grav to achieve this? Thanks in advance for any hints.
Best, Markus

Protect yii2-apidoc generated html

I have generated api docs using the yii2-apidoc extension and have a nice working site with html-pages in a folder.
However I do not want these pages to be publicly available, rather behind the normal login to my backend-site. Can't figure out a way to do it in Yii.
Tried to use renderFile() in a controller, but that still leaves wrong links to other asset-files (css).
Any ideas appreciated.

There is a configuration for Disqus scripts?

I would like to be able to use Disqus script only as a input to comments.
For SEO I am getting the messages from Disqus API and loading together with my webpage. Now I would like to be able to set Disqus script in a way it displays only the area for new comments input.
Does anybody know if that is possible? Or where I can find a documentation with all parameters I can set to the script.
I already thought in hide that using CSS, but I would like to do it properly using the tool.
I appreciate any comment or idea.
I think API Bindings can help you.
https://help.disqus.com/customer/portal/articles/472115-libraries

How to add an onload script for MediaWiki

I installed a mediawiki and my version is 1.21.1, now I want to add some code when the page is onload using javascript. I have searched on the Internet and found we can put our scripts on the Common.js file, but I don't found Common.js in my wiki project. I have searched the whole directory and still did not find it.
Anyone could tell me how to achieve my goal?
brightbyte's answer, which worked: Enter MediaWiki:Common.js into the search box of your wiki. It will tell you the page doesn't exist - just create it. Any JS code you put in there will be executed on every page load. Of course, you have to be an administrator to create or edit that page.
This is documented at Manual:Interface/JavaScript; there are similar customisations at Manual:User group CSS and Javascript and Manual:Page customizations.

Embeding shared links

I am using shared links on my site to show boxnet folder, for example:
https://www.box.com/embed_widget/000000000000/s/xxxxxxxxxxxxxxx
I am trying to customize the order and theme color of the folder being shown by using:
https://www.box.com/embed_widget/000000000000/s/xxxxxxxxxxxxxxx?sort=date&direction=DESC&theme=gray
The problem is that i am not seeing any changes on it.
Does somebody know what i am doing wrong? May be i am not using the correct parameters.
Thanks in advance,
Kind Regards,
Marcelo
Marcel,
Here is some documentation on how to set the styling parameters. If testing in the browser, you'll need to reset the session to see your styling changes by using the additional parameter session_expired=yes.
http://developers.box.com/0cc175b9c0f1b6a831c399e269772661/
We may make some slight changes to this, but this mostly how it will work. Direction=asc or desc should work too.
Rory