Giter Site home page Giter Site logo

bannermessage's Introduction

bannerMessage-module

A fork from the RRCHNM Donate module for Omeka S.

This module creates a heading across the top of every page in an Omeka S site which can serve as a content warning or similar purpose. At the moment, the message content is edited in the module code. Eventually I'll figure out how to make that something on the dashbaord.

bannermessage's People

Contributors

mebrett avatar

Watchers

 avatar  avatar

bannermessage's Issues

Fix js and css inclusion

When I first loaded the module, neither the js or css was appearing. I think the issue is the way different development environments handle case sensitivity. Changing a couple lines in Module.php fixed it for me:

            $view->headLink()->appendStylesheet($view->assetUrl('warning-style.css', 'BannerMessage'));
            $view->headScript()->appendFile($view->assetUrl('warning-positioning.js', 'BannerMessage'));

Spaces removed around link

Despite there being spaces in the text, in public view the link runs together with the words before and behind it.

Create a dismiss button

Consider feasibility of adding a "dismiss" button to let people indicate that they've seen the message and no longer want it to display.

Or add a setting so banner only displays on main page?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.