Advertisement
Guest User

Untitled

a guest
Jun 1st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  2. module.exports = {
  3. adminWarning: function (currentuser, boxname) { // eslint-disable-line
  4. var userbox = document.getElementsByName(boxname + '[superAdmin]')
  5. if (boxname === currentuser && !userbox[0].checked) {
  6. window.alert('Please be careful when changing your own Super Admin rights. You will need to contact another Super Admin to reinstate your privileges if you disable yours.')
  7. }
  8. },
  9.  
  10. validate: function (form) { // eslint-disable-line
  11. var valid = true
  12. if (!valid) {
  13. window.alert('Please correct the errors in the form!')
  14. return false
  15. } else {
  16. var numToDelete = document.querySelectorAll('input[type="checkbox"]:checked#delete').length
  17. if (numToDelete === 0) {
  18. return true
  19. }
  20. var warning = 'Are you sure you want to delete ' + numToDelete + ' post' + (numToDelete > 1 ? 's' : '') + '?'
  21. return window.confirm(warning)
  22. }
  23. },
  24.  
  25. test: function () {
  26. alert('hi')
  27. }
  28. }
  29. },{}],2:[function(require,module,exports){
  30. if (!window.console) window.console = {}
  31. if (!window.console.log) window.console.log = function () {}
  32. /* global SimpleMDE */
  33. var $ = window.jQuery
  34. var webfunctions = require('./functions.js')
  35. $(document).ready(function () {
  36. console.log('running')
  37. if (window._events) {
  38. console.log(window._events)
  39. $('#events-calendar').fullCalendar({
  40. events: window._events
  41. })
  42. }
  43. $(window).on('scroll', function (event) {
  44. var scroll = $(window).scrollTop()
  45. console.log(scroll)
  46. if (scroll > 10) {
  47. $('body').addClass('scroll')
  48. } else {
  49. $('body').removeClass('scroll')
  50. }
  51. })
  52. var editor = new SimpleMDE({
  53. element: $('.simple-mde')[0],
  54. forceSync: true,
  55. indentWithTabs: false
  56. })
  57. console.log(editor)
  58. })
  59.  
  60.  
  61. },{"./functions.js":1}]},{},[2]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement