https://github.com/ocean/fragmention-drupal
Fragmention concept in a Drupal module.
https://github.com/ocean/fragmention-drupal
Last synced: 9 months ago
JSON representation
Fragmention concept in a Drupal module.
- Host: GitHub
- URL: https://github.com/ocean/fragmention-drupal
- Owner: ocean
- License: gpl-2.0
- Created: 2014-04-23T08:41:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-15T10:30:54.000Z (about 12 years ago)
- Last Synced: 2025-06-26T02:39:51.928Z (12 months ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fragmention Drupal module
==================
Fragmention concept in a Drupal module.
Currently this is a sandbox module located at [https://drupal.org/sandbox/ocean/2247743](https://drupal.org/sandbox/ocean/2247743).
Contents
---------------------
* Introduction
* Installation
* Credits
Introduction
------------
The Fragmention module implements a JavaScript polyfill for the [Fragmention concept](http://indiewebcamp.com/fragmention) which was created by [Kevin Marks](http://kevinmarks.com) on the [Indie Web Camp](http://indiewebcamp.com/) discussion forum.
>Fragmentions find the first matching word or phrase in a document and focuses its closest surrounding element. The match is determined by the case-sensitive string following the ## double-hash. The closest surrounding element may be a span, paragraph, heading, button, input, or any other container.
This module is a simple implementation of [Jonathan Neal's](http://www.jonathantneal.com/) [Fragmentions script](https://github.com/chapmanu/fragmentions).
Installation
------------
1. Copy the fragmention directory to your sites/SITENAME/modules directory.
2. Enable the module at Administer >> Site building >> Modules.
Credits
-------
* [Kevin Marks](http://kevinmarks.com)
* [Jonathan Neal](http://www.jonathantneal.com)