This question about Using an extension: Answered

Display notification message when topic loads

I would like to display information/notification to the user in such a way that he/she will not omit this. On the other hand, I would like that he/she will be able to close it or it will be closed automatically.

Since that, I thought about using PNotify of Jquery.


%JQREQUIRE{"pnotify"}%

<script>
var showMessage
jQuery(function($) {

$( document ).ready(function() {
$.pnotify({
       text: "My very important message",
       type: 'info',
       animation: {
         effect_in: 'drop',
         options_in: {easing: 'easeOutBounce'},
         effect_out: 'drop',
         options_out: {easing: 'easeOutCubic'}
       },
       animation_speed: 700
    });
    return false;
  });

});
</script>

Could you help me on this or suggest different method of user notification, please?

-- MateuszKDzior - 23 Sep 2015

Okay, seems that I found what was wrong. I corrected my example.

-- MateuszKDzior - 25 Sep 2015
 

QuestionForm edit

Subject Using an extension
Extension JQueryPlugin
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r4 - 25 Sep 2015, MateuszKDzior
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy