BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrap.js 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. $.noty.themes.bootstrapTheme = {
  2. name : 'bootstrapTheme',
  3. modal : {
  4. css: {
  5. position : 'fixed',
  6. width : '100%',
  7. height : '100%',
  8. backgroundColor: '#000',
  9. zIndex : 10000,
  10. opacity : 0.6,
  11. display : 'none',
  12. left : 0,
  13. top : 0,
  14. wordBreak : 'break-all'
  15. }
  16. },
  17. style : function () {
  18. var containerSelector = this.options.layout.container.selector;
  19. $(containerSelector).addClass('list-group');
  20. this.$closeButton.append('<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>');
  21. this.$closeButton.addClass('close');
  22. this.$bar.addClass("list-group-item").css('padding', '0px').css('position', 'relative');
  23. this.$progressBar.css({
  24. position : 'absolute',
  25. left : 0,
  26. bottom : 0,
  27. height : 4,
  28. width : '100%',
  29. backgroundColor: '#000000',
  30. opacity : 0.2,
  31. '-ms-filter' : 'progid:DXImageTransform.Microsoft.Alpha(Opacity=20)',
  32. filter : 'alpha(opacity=20)'
  33. });
  34. switch (this.options.type) {
  35. case 'alert':
  36. case 'notification':
  37. this.$bar.addClass("list-group-item-info");
  38. break;
  39. case 'warning':
  40. this.$bar.addClass("list-group-item-warning");
  41. break;
  42. case 'error':
  43. this.$bar.addClass("list-group-item-danger");
  44. break;
  45. case 'information':
  46. this.$bar.addClass("list-group-item-info");
  47. break;
  48. case 'success':
  49. this.$bar.addClass("list-group-item-success");
  50. break;
  51. }
  52. this.$message.css({
  53. textAlign: 'center',
  54. padding : '8px 10px 9px',
  55. width : 'auto',
  56. position : 'relative'
  57. });
  58. },
  59. callback: {
  60. onShow : function () { },
  61. onClose: function () { }
  62. }
  63. };