Let's Open Things Up
You can add text within a collapsed section using HTML details/summary. Indeed, with a few extras on the detail tag include attribute markdown="1 and the summary tag needs markdown="span"
You can add text within a collapsed section using HTML details/summary. Indeed, with a few extras on the detail tag include attribute markdown="1 and the summary tag needs markdown="span"
| This is a quick and sloppy bookmarklet to make use of Ben Werd's Share Openly https://werd.io/2024/share-openly | |
| From any page you can select a but of text to include in your shared prompt, click the bookmarklet or enter in a dialog box, all passed to | |
| ShareOpenly.org to enable a share post to your preferred service. | |
| Create a new bookmark on your browser bar (for now I will have to assume you can dio a new one from scratch), name it | |
| whatever you like, and for the url enter | |
| javascript:q=location.href;t=getSelection()+'';if(!t)%7Bvoid(t=prompt('Share Openly with text...',''))%7D;if(t) location.href='https://shareopenly.org/share/?url='+encodeURIComponent(q)+'&text='+encodeURIComponent(t); |
| <?php | |
| // Mastodon account details, hardwired for dev, add yours as needed | |
| $creds = [ | |
| 'account' => '', //username in form @user@instance.social | |
| 'host' => '', // url without trailing slash e.g. https://instance.social | |
| 'url' => '', // user account URL https://instance.social/@user | |
| 'token' => '', // access token created in Edit Profile-> Development | |
| 'getcount' => 10 // number of posts to get,max=30 | |
| ]; | |
| ?> |
| /* Modified version of Brian Bennett's bookmarklet for blurring | |
| images in a page lacking alt descriptions, added class for missing alts */ | |
| // code version | |
| (function() { | |
| 'use strict'; | |
| function addCssRule(rule) { | |
| var head, style; | |
| head = document.querySelector('head'); |
The H5P documentation spells it out nicely:
Reduce the amount of text presented to readers by using this responsive accordion. Readers decide which headlines to take a closer look at by expanding the title. Excellent for providing an overview with optional in-depth explanations.
| cogdog:vagrantly cogdog$ vagrant up --provision | |
| __ ___ ___ __ ____ | |
| \ \ / \ \ / \ \ / / |___ \ | |
| \ \ / / \ \ / / \ \ / / __) | | |
| \ V / \ V / \ V / / __/ | |
| \_/ \_/ \_/ |_____| | |
| Varying Vagrant Vagrants v2.1.0-master | |
| Docs: https://varyingvagrantvagrants.org/ | |
| Contribute: https://github.com/varying-vagrant-vagrants/vvv |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Importing base box 'ubuntu/trusty64'... | |
| ==> default: Matching MAC address for NAT networking... | |
| ==> default: Checking if box 'ubuntu/trusty64' version '20190514.0.0' is up to date... | |
| ==> default: Setting the name of the VM: vagrantly_f801a52a224 | |
| ==> default: Clearing any previously set forwarded ports... | |
| ==> default: Clearing any previously set network interfaces... |
| <?php | |
| /* | |
| Plugin Name: SPLOTbox Extender | |
| Plugin URI: https://github.com/cogdog/splotbox-extender | |
| Description: With some elbow grease manual coding, you can extend the functionality of a SPLOTbox site to support more media sites than the original theme. | |
| Version: 0.61 | |
| License: GPLv2 | |
| Author: Alan Levine | |
| Author URI: https://cog.dog | |
| */ |
| /* php form creation | |
| <?php if ( trucollector_option('caption_field') == 's'):?> | |
| <input id="wRichText" type="hidden" value="0"> | |
| <textarea name="wText" id="wText" rows="4" tabindex="4"><?php echo stripslashes( $wText );?></textarea><p style="font-size:0.8rem">To create hyperlinks use this shortcode<br /><code>[link url="http://www.themostamazingwebsiteontheinternet.com/" text="the coolest site on the internet"]</code><br />If you omit <code>text=</code> the URL will be the link text.</p> | |
| /* outputs a list of all posts published in the current day in previous years | |
| This will be done up properly as plugin, this is just current code inserted | |
| in functions.php for CogDogBlog - see demo at https://cogdogblog.com/this-day | |
| Inspired by John Johnston's version | |
| https://gist.github.com/troutcolor/ed3c72ea54a0ee8c814382eb24806cee | |
| */ | |
| add_action( 'init', 'cdb_postedtoday_shortcode' ); |