hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b765b83be08933889691d3afc8a7b4696cbbd363 | 14,346 | js | JavaScript | taotao-manager/taotao-manager-web/src/main/webapp/WEB-INF/js/jquery-easyui-1.4.1/plugins/jquery.combo.js | littlehorse1019/taotao-shop | bbe84e5f8a59c7e7de735d077b235e8a77e7fde1 | [
"MIT"
] | 1 | 2017-01-23T03:02:05.000Z | 2017-01-23T03:02:05.000Z | taotao-manager/taotao-manager-web/src/main/webapp/WEB-INF/js/jquery-easyui-1.4.1/plugins/jquery.combo.js | littlehorse1019/taotao-shop | bbe84e5f8a59c7e7de735d077b235e8a77e7fde1 | [
"MIT"
] | null | null | null | taotao-manager/taotao-manager-web/src/main/webapp/WEB-INF/js/jquery-easyui-1.4.1/plugins/jquery.combo.js | littlehorse1019/taotao-shop | bbe84e5f8a59c7e7de735d077b235e8a77e7fde1 | [
"MIT"
] | null | null | null | /**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function ($) {
$(function () {
$(document).unbind(".combo").bind("mousedown.combo mousewheel.combo", function (e) {
var p = $(e.target).closest("span.combo,div.combo-p");
if (p.length) {
_1(p);
return;
}
$("body>div.combo-p>div.combo-panel:visible").panel("close");
});
});
function _2(_3) {
var _4 = $.data(_3, "combo");
var _5 = _4.options;
if (!_4.panel) {
_4.panel = $("<div class=\"combo-panel\"></div>").appendTo("body");
_4.panel.panel({
minWidth: _5.panelMinWidth,
maxWidth: _5.panelMaxWidth,
minHeight: _5.panelMinHeight,
maxHeight: _5.panelMaxHeight,
doSize: false,
closed: true,
cls: "combo-p",
style: {position: "absolute", zIndex: 10},
onOpen: function () {
var _6 = $(this).panel("options").comboTarget;
var _7 = $.data(_6, "combo");
if (_7) {
_7.options.onShowPanel.call(_6);
}
},
onBeforeClose: function () {
_1(this);
},
onClose: function () {
var _8 = $(this).panel("options").comboTarget;
var _9 = $.data(_8, "combo");
if (_9) {
_9.options.onHidePanel.call(_8);
}
}
});
}
var _a = $.extend(true, [], _5.icons);
if (_5.hasDownArrow) {
_a.push({
iconCls: "combo-arrow", handler: function (e) {
_f(e.data.target);
}
});
}
$(_3).addClass("combo-f").textbox($.extend({}, _5, {
icons: _a, onChange: function () {
}
}));
$(_3).attr("comboName", $(_3).attr("textboxName"));
_4.combo = $(_3).next();
_4.combo.addClass("combo");
};
function _b(_c) {
var _d = $.data(_c, "combo");
var _e = _d.options;
var p = _d.panel;
if (p.is(":visible")) {
p.panel("close");
}
if (!_e.cloned) {
p.panel("destroy");
}
$(_c).textbox("destroy");
};
function _f(_10) {
var _11 = $.data(_10, "combo").panel;
if (_11.is(":visible")) {
_12(_10);
} else {
var p = $(_10).closest("div.combo-panel");
$("div.combo-panel:visible").not(_11).not(p).panel("close");
$(_10).combo("showPanel");
}
$(_10).combo("textbox").focus();
};
function _1(_13) {
$(_13).find(".combo-f").each(function () {
var p = $(this).combo("panel");
if (p.is(":visible")) {
p.panel("close");
}
});
};
function _14(e) {
var _15 = e.data.target;
var _16 = $.data(_15, "combo");
var _17 = _16.options;
var _18 = _16.panel;
if (!_17.editable) {
_f(_15);
} else {
var p = $(_15).closest("div.combo-panel");
$("div.combo-panel:visible").not(_18).not(p).panel("close");
}
};
function _19(e) {
var _1a = e.data.target;
var t = $(_1a);
var _1b = t.data("combo");
var _1c = t.combo("options");
switch (e.keyCode) {
case 38:
_1c.keyHandler.up.call(_1a, e);
break;
case 40:
_1c.keyHandler.down.call(_1a, e);
break;
case 37:
_1c.keyHandler.left.call(_1a, e);
break;
case 39:
_1c.keyHandler.right.call(_1a, e);
break;
case 13:
e.preventDefault();
_1c.keyHandler.enter.call(_1a, e);
return false;
case 9:
case 27:
_12(_1a);
break;
default:
if (_1c.editable) {
if (_1b.timer) {
clearTimeout(_1b.timer);
}
_1b.timer = setTimeout(function () {
var q = t.combo("getText");
if (_1b.previousText != q) {
_1b.previousText = q;
t.combo("showPanel");
_1c.keyHandler.query.call(_1a, q, e);
t.combo("validate");
}
}, _1c.delay);
}
}
};
function _1d(_1e) {
var _1f = $.data(_1e, "combo");
var _20 = _1f.combo;
var _21 = _1f.panel;
var _22 = $(_1e).combo("options");
var _23 = _21.panel("options");
_23.comboTarget = _1e;
if (_23.closed) {
_21.panel("panel").show().css({
zIndex: ($.fn.menu ? $.fn.menu.defaults.zIndex++ : $.fn.window.defaults.zIndex++),
left: -999999
});
_21.panel("resize", {
width: (_22.panelWidth ? _22.panelWidth : _20._outerWidth()),
height: _22.panelHeight
});
_21.panel("panel").hide();
_21.panel("open");
}
(function () {
if (_21.is(":visible")) {
_21.panel("move", {left: _24(), top: _25()});
setTimeout(arguments.callee, 200);
}
})();
function _24() {
var _26 = _20.offset().left;
if (_22.panelAlign == "right") {
_26 += _20._outerWidth() - _21._outerWidth();
}
if (_26 + _21._outerWidth() > $(window)._outerWidth() + $(document).scrollLeft()) {
_26 = $(window)._outerWidth() + $(document).scrollLeft() - _21._outerWidth();
}
if (_26 < 0) {
_26 = 0;
}
return _26;
};
function _25() {
var top = _20.offset().top + _20._outerHeight();
if (top + _21._outerHeight() > $(window)._outerHeight() + $(document).scrollTop()) {
top = _20.offset().top - _21._outerHeight();
}
if (top < $(document).scrollTop()) {
top = _20.offset().top + _20._outerHeight();
}
return top;
};
};
function _12(_27) {
var _28 = $.data(_27, "combo").panel;
_28.panel("close");
};
function _29(_2a) {
var _2b = $.data(_2a, "combo");
var _2c = _2b.options;
var _2d = _2b.combo;
$(_2a).textbox("clear");
if (_2c.multiple) {
_2d.find(".textbox-value").remove();
} else {
_2d.find(".textbox-value").val("");
}
};
function _2e(_2f, _30) {
var _31 = $.data(_2f, "combo");
var _32 = $(_2f).textbox("getText");
if (_32 != _30) {
$(_2f).textbox("setText", _30);
_31.previousText = _30;
}
};
function _33(_34) {
var _35 = [];
var _36 = $.data(_34, "combo").combo;
_36.find(".textbox-value").each(function () {
_35.push($(this).val());
});
return _35;
};
function _37(_38, _39) {
var _3a = $.data(_38, "combo");
var _3b = _3a.options;
var _3c = _3a.combo;
if (!$.isArray(_39)) {
_39 = _39.split(_3b.separator);
}
var _3d = _33(_38);
_3c.find(".textbox-value").remove();
var _3e = $(_38).attr("textboxName") || "";
for (var i = 0; i < _39.length; i++) {
var _3f = $("<input type=\"hidden\" class=\"textbox-value\">").appendTo(_3c);
_3f.attr("name", _3e);
if (_3b.disabled) {
_3f.attr("disabled", "disabled");
}
_3f.val(_39[i]);
}
var _40 = (function () {
if (_3d.length != _39.length) {
return true;
}
var a1 = $.extend(true, [], _3d);
var a2 = $.extend(true, [], _39);
a1.sort();
a2.sort();
for (var i = 0; i < a1.length; i++) {
if (a1[i] != a2[i]) {
return true;
}
}
return false;
})();
if (_40) {
if (_3b.multiple) {
_3b.onChange.call(_38, _39, _3d);
} else {
_3b.onChange.call(_38, _39[0], _3d[0]);
}
}
};
function _41(_42) {
var _43 = _33(_42);
return _43[0];
};
function _44(_45, _46) {
_37(_45, [_46]);
};
function _47(_48) {
var _49 = $.data(_48, "combo").options;
var _4a = _49.onChange;
_49.onChange = function () {
};
if (_49.multiple) {
_37(_48, _49.value ? _49.value : []);
} else {
_44(_48, _49.value);
}
_49.onChange = _4a;
};
$.fn.combo = function (_4b, _4c) {
if (typeof _4b == "string") {
var _4d = $.fn.combo.methods[_4b];
if (_4d) {
return _4d(this, _4c);
} else {
return this.textbox(_4b, _4c);
}
}
_4b = _4b || {};
return this.each(function () {
var _4e = $.data(this, "combo");
if (_4e) {
$.extend(_4e.options, _4b);
if (_4b.value != undefined) {
_4e.options.originalValue = _4b.value;
}
} else {
_4e = $.data(this, "combo", {
options: $.extend({}, $.fn.combo.defaults, $.fn.combo.parseOptions(this), _4b),
previousText: ""
});
_4e.options.originalValue = _4e.options.value;
}
_2(this);
_47(this);
});
};
$.fn.combo.methods = {
options: function (jq) {
var _4f = jq.textbox("options");
return $.extend($.data(jq[0], "combo").options, {
width: _4f.width,
height: _4f.height,
disabled: _4f.disabled,
readonly: _4f.readonly
});
}, cloneFrom: function (jq, _50) {
return jq.each(function () {
$(this).textbox("cloneFrom", _50);
$.data(this, "combo", {
options: $.extend(true, {cloned: true}, $(_50).combo("options")),
combo: $(this).next(),
panel: $(_50).combo("panel")
});
$(this).addClass("combo-f").attr("comboName", $(this).attr("textboxName"));
});
}, panel: function (jq) {
return $.data(jq[0], "combo").panel;
}, destroy: function (jq) {
return jq.each(function () {
_b(this);
});
}, showPanel: function (jq) {
return jq.each(function () {
_1d(this);
});
}, hidePanel: function (jq) {
return jq.each(function () {
_12(this);
});
}, clear: function (jq) {
return jq.each(function () {
_29(this);
});
}, reset: function (jq) {
return jq.each(function () {
var _51 = $.data(this, "combo").options;
if (_51.multiple) {
$(this).combo("setValues", _51.originalValue);
} else {
$(this).combo("setValue", _51.originalValue);
}
});
}, setText: function (jq, _52) {
return jq.each(function () {
_2e(this, _52);
});
}, getValues: function (jq) {
return _33(jq[0]);
}, setValues: function (jq, _53) {
return jq.each(function () {
_37(this, _53);
});
}, getValue: function (jq) {
return _41(jq[0]);
}, setValue: function (jq, _54) {
return jq.each(function () {
_44(this, _54);
});
}
};
$.fn.combo.parseOptions = function (_55) {
var t = $(_55);
return $.extend({}, $.fn.textbox.parseOptions(_55), $.parser.parseOptions(_55, ["separator", "panelAlign", {
panelWidth: "number",
hasDownArrow: "boolean",
delay: "number",
selectOnNavigation: "boolean"
}, {
panelMinWidth: "number",
panelMaxWidth: "number",
panelMinHeight: "number",
panelMaxHeight: "number"
}]), {
panelHeight: (t.attr("panelHeight") == "auto" ? "auto" : parseInt(t.attr("panelHeight")) || undefined),
multiple: (t.attr("multiple") ? true : undefined)
});
};
$.fn.combo.defaults = $.extend({}, $.fn.textbox.defaults, {
inputEvents: {click: _14, keydown: _19, paste: _19, drop: _19},
panelWidth: null,
panelHeight: 200,
panelMinWidth: null,
panelMaxWidth: null,
panelMinHeight: null,
panelMaxHeight: null,
panelAlign: "left",
multiple: false,
selectOnNavigation: true,
separator: ",",
hasDownArrow: true,
delay: 200,
keyHandler: {
up: function (e) {
}, down: function (e) {
}, left: function (e) {
}, right: function (e) {
}, enter: function (e) {
}, query: function (q, e) {
}
},
onShowPanel: function () {
},
onHidePanel: function () {
},
onChange: function (_56, _57) {
}
});
})(jQuery);
| 32.828375 | 116 | 0.418584 |
b765dde3f67659abe1b36d1c150b1e2c10c4fcaa | 61,394 | js | JavaScript | js/components/interventions/CreateIntervention/index.js | LuSoSmartDev/organilog-react-native | 05069c28ede8755b369a4500e8e98798c2771584 | [
"Apache-2.0"
] | 1 | 2020-02-09T14:31:58.000Z | 2020-02-09T14:31:58.000Z | js/components/interventions/CreateIntervention/index.js | LuSoSmartDev/organilog-react-native | 05069c28ede8755b369a4500e8e98798c2771584 | [
"Apache-2.0"
] | 2 | 2020-07-19T12:39:53.000Z | 2021-05-11T02:42:33.000Z | js/components/interventions/CreateIntervention/index.js | LuSoSmartDev/organilog-react-native | 05069c28ede8755b369a4500e8e98798c2771584 | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react'
import {
DeviceEventEmitter,
Image,
View,
TextInput,
ScrollView,
Modal,
Platform,
ListView,
Keyboard,
KeyboardAvoidingView,
TouchableOpacity
} from 'react-native'
import moment from 'moment'
import { Actions, ActionConst } from 'react-native-router-flux'
import { Container, Header, Left, Button, Text, Label, Right, Toast } from 'native-base'
import ImagePicker from 'react-native-image-picker'
import I18n from 'react-native-i18n'
import DateTimePicker from 'react-native-modal-datetime-picker'
import { observer } from 'mobx-react/native'
import ModalCustom from 'react-native-modalbox'
import SigntureView from '../../signature'
import { componentStyles, textStyles } from '../../../styles'
import styles from './styles'
import InforSub from './inforSection'
import IntervantSection from './intervantSection'
import DateSection from './dateSection'
import HoursSection from './hoursSection'
import MediaSection from './mediaSection'
import TaskSection from './taskSection'
import UniteSection from './customfield'
import Filiale from './filialeSection'
import TitleSection from './titleSection'
import SectionProduct from './sectionProduct'
import ServiceSync from '../../../services/sync'
import SeFiliale from '../../../services/filiale'
import SeIntervention from '../../../services/intervention'
import SeClient from '../../../services/client'
import SeAddress from '../../../services/address'
import SeMedia from '../../../services/media'
import SeUser from '../../../services/user'
import SeMediaLink from '../../../services/mediaLink'
import SeTask from '../../../services/task'
import SeUnite from '../../../services/unite'
import SeUniteItem from '../../../services/uniteItem'
import SeUniteLink from '../../../services/uniteLink'
import InterventionMobx from '../../../mobxs/intervention'
import UserMobx from '../../../mobxs/user'
import SettingMobx from '../../../mobxs/setting'
import TimeUtills from '../../../utils/TimeUtils'
import IconBack from '../../../themes/IconBack';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
import DialogManager, { ScaleAnimation, DialogContent } from 'react-native-dialog-component'
import geolib from 'geolib'
import setting from '../../../mobxs/setting';
// import { start } from 'repl';
// import { KeyboardAwareView } from 'react-native-keyboard-aware-view'
const organilogIcon = require('../../../../images/organilog-logo-color.png')
const locationIcon = require('../../../../images/location_icon.png')
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 })
observer
class CreateIntervention extends Component {
constructor(props) {
super(props)
//console.log('CreateOrEditIntervention : '+ JSON.stringify(props.intervention));
this.state = {
itemIntervention: props.intervention,
userId: 0,
isEditClient: true,
dataSearchSource: ds.cloneWithRows([]),
listDataClient: [],
listDataAddress: [],
dataSource: [],
dataSpeaker: [],
dataProducts: [],
client: '',
address: '',
modalVisible: false,
currentDate: new Date(),
isDateTimePickerVisible: false,
isDatePickerVisible: false,
typeDataPicker: null,
beginTime: props.intervention ? (props.intervention.doneHourStart ? props.intervention.doneHourStart : I18n.t('BEGIN')) : `${I18n.t('BEGIN')} `,
beginTimeCalc: `00:00`,
endTime: `${I18n.t('END')} `,
endTimeCalc: `00:00`,
beginDate: props.intervention ? this._convertDate(props.intervention.planningDateStart, props.intervention.doneDateStart, `${I18n.t('BEGIN')}`) : `${I18n.t('BEGIN')} `,
endDate: props.intervention ? this._convertDate(props.intervention.planningDateEnd, props.intervention.doneDateEnd, `${I18n.t('END')}`) : `${I18n.t('END')} `,
workTime: `${I18n.t('WORK_TIME')} ${I18n.t('EMPTY')}`,
isCompleted: props.intervention ? props.intervention.isDone == 1 : false,
topOfViewAuto: 0,
isShowAutoComplete: false,
heightDynamic: 0,
yOfClient: 0,
yOfAddress: 0,
yOfUser: 0,
planningDateStart: '', // props.intervention? this._convertDate(props.intervention.planningDateStart, props.intervention.doneDateStart) : '' ,
planningDateEnd: '', // props.intervention? this._convertDate(props.intervention.planningDateEnd, props.intervention.doneDateEnd) : '',
planningHourStart: '',
planningHourEnd: '',
planningHour: '',
planningComment: '',
//
doneDateStart: '',
doneDateEnd: '',
doneHourStart: '',
doneHourEnd: '',
doneHour: '',
doneComment: '',
doneLongitude: '',
doneLatittude: '',
//
currentComment: '',
//
fkClientAppliId: null,
fkAdresseAppliId: null,
fkFilialeAppliId: null,
fkFilialeServerId: null,
latitude: 0,
longitude: 0,
error: null,
isEdit: false,
listTasks: [],
listRootTasks: [], // for filter
timeTask: '',
isShowOfAction: false,
isShowFilialeModal: false,
listFiliale: [],
dataSourceFiliale: ds.cloneWithRows([]),
nameFiliale: I18n.t('EMPTY2'),
subDomain: I18n.t('EMPTY2'),
listUsers: [],
typeOfAutoFill: '',
intUserName: '',
intUserId: null,
title: '',
currentTaskId: 0,
linkInterventionTasks: [],
listUnites: [],
listRootUnites: [], // for filter
linkUnites: [],
currentTime: '00:00',
isAllowClientAddress: SettingMobx.isAllowModifyClientAddress,
isAddSpeeker: SettingMobx.isAllowModifySpeeker,
isShowTitle: SettingMobx.isAllowModifyTitle,
isEditDate: SettingMobx.isAllowModifyDate,
isEditTime: SettingMobx.isAllowModifyTime,
isEnableGPS: false,
listProducts: [],
prevNomToSearchProduct: '',
quantityProductSelected: '',
productSelected: null,
listCurrentProduct: []
}
console.log('isAllowClientAddress : ' + this.state.isAllowClientAddress)
console.log('isAddSpeeker : ' + this.state.isAddSpeeker)
console.log('isShowTitle : ' + this.state.isShowTitle)
console.log('isEditDate : ' + this.state.isEditDate)
console.log('isEditTime : ' + this.state.isEditTime)
this.onDatePicked = this.onDatePicked.bind(this)
this.onDateTimePicked = this.onDateTimePicked.bind(this)
this.onHideDatePicker = this.onHideDatePicker.bind(this)
this.onHideDateTimePicker = this.onHideDateTimePicker.bind(this)
this._keyboardDidHide = this._keyboardDidHide.bind(this)
this.onSaveNewOnSignature = this.onSaveNewOnSignature.bind(this)
this.onChangeClientEvent = this.onChangeClientEvent.bind(this)
this.onChangeAddressEvent = this.onChangeAddressEvent.bind(this)
this.getPositionOfInput = this.getPositionOfInput.bind(this)
this.countLog = 0
this.isChangeDate = false
this.isChangeWorkingHour = false
this.currentDate = new Date();
this.currentTime = moment().format('hh:mm')
this.dataAddress = ds
//console.log(this.currentTime);
}
componentWillMount() {
const { itemIntervention } = this.state
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide)
const accountId = parseInt(UserMobx.currentUser.u_id, 10)
const user = UserMobx.currentUser
const subDomain = user.subDomain
const name = [user.u_prenom, user.u_nom].join(' ')
const arr = this.state.dataSpeaker
const arrProduct = this.state.dataProducts
arr.push({ id: user.u_uuid, name, serverId: accountId })
if (itemIntervention) {
if (itemIntervention.hasOwnProperty('listUserAdded')) {
itemIntervention.listUserAdded.map(item => {
arr.push({ id: item.id, name: [item.prenom, item.nom].join(' '), serverId: item.serverId })
})
}
if (itemIntervention.hasOwnProperty('linkProducts')) {
let keyProducts = Object.keys(itemIntervention.linkProducts)
keyProducts.map(key => {
arrProduct.push(itemIntervention.linkProducts[key])
})
// console.log('ListLinkProduct : ' + JSON.stringify(itemIntervention.linkProducts))
// itemIntervention.linkProducts.map(item => {
// arrProduct.push(item)
// })
}
}
this.setState(
{
userId: accountId,
dataSpeaker: arr,
dataProducts: arrProduct,
nameFiliale: subDomain,
subDomain: subDomain,
},
() => {
if (itemIntervention) {
// this.fetchImagesEdit(this.state.userId)
console.log('EditIntervention : ' + JSON.stringify(itemIntervention))
this.fetchImagesEdit(this.state.userId, itemIntervention.id)
const clientData = itemIntervention.client
const addressData = itemIntervention.address
this.setState({
isEdit: true,
planningHourStart: itemIntervention.planningHourStart,
planningHourEnd: itemIntervention.planningHourEnd,
planningHour: itemIntervention.planningHour,
planningComment: itemIntervention.planningComment,
//
doneDateStart: itemIntervention.doneDateStart,
doneDateEnd: itemIntervention.doneDateEnd,
doneHourStart: itemIntervention.doneHourStart,
doneHourEnd: itemIntervention.doneHourEnd,
doneHour: itemIntervention.doneHour,
doneComment: itemIntervention.doneComment,
//
currentComment: itemIntervention.doneComment,
//
beginTime: itemIntervention.doneHourStart ? `${I18n.t('BEGIN')} ${itemIntervention.doneHourStart}` : `${I18n.t('BEGIN')} ${itemIntervention.planningHourStart ? itemIntervention.planningHourStart : ''}`,
beginTimeCalc: itemIntervention.doneHourStart ? itemIntervention.doneHourStart : itemIntervention.planningHourStart,
endTime: itemIntervention.doneHourEnd ? `${I18n.t('END')} ${itemIntervention.doneHourEnd}` : `${I18n.t('END')} ${itemIntervention.planningHourEnd ? itemIntervention.planningHourEnd : ''}`,
endTimeCalc: itemIntervention.doneHourEnd ? itemIntervention.doneHourEnd : itemIntervention.planningHourEnd,
workTime: itemIntervention.doneHour ? `${I18n.t('WORK_TIME')} ${itemIntervention.doneHour}` : `${I18n.t('WORK_TIME')} ${itemIntervention.planningHour ? itemIntervention.planningHour : ''}`,
title: itemIntervention.nom,
// isCompleted: itemIntervention.isDone === 1,
fkFilialeAppliId: itemIntervention.fkFilialeAppliId,
//fkFilialeAppliId: this.state.userId,
linkInterventionTasks: SeIntervention.linkInterventionTasks(itemIntervention),
linkUnites: SeIntervention.linkUnites(itemIntervention, this.state.userId),
client: clientData.title,
address: addressData ? (addressData.adresse ? addressData.adresse : addressData.societe) : '',
isCompleted: itemIntervention.isDone == 1 ? true : false,
})
}
}
)
const { clientup, addressup } = this.props
if (clientup) {
console.log('client up : ' + JSON.stringify(clientup))
const arr = this.parseListAddress(SeAddress.fetchItemWithFKClientId(accountId, clientup.id, ''))
if (arr.length > 0) {
this.setState({
address: [arr[0].adresse, arr[0].codePostal, arr[0].ville].join(' '),
fkAdresseAppliId: arr[0].id,
})
}
this.setState({
client: `${clientup.title} (${arr.length} adresses)`,
fkClientAppliId: clientup.id,
})
}
if (addressup) {
console.log('client up : ' + JSON.stringify(addressup))
if (addressup.client) {
const client = addressup.client;
const arr = this.parseListAddress(SeAddress.fetchItemWithFKClientId(accountId, client.id, ''))
if (arr.length > 0) {
this.setState({
address: [arr[0].adresse, arr[0].codePostal, arr[0].ville].join(' '),
fkAdresseAppliId: arr[0].id,
})
}
this.setState({
client: `${client.title} (${arr.length} adresses)`,
fkClientAppliId: client.id,
})
} else {
this.setState({
address: [addressup.adresse, addressup.codePostal, addressup.ville].join(' '),
fkAdresseAppliId: addressup.id,
})
}
}
}
componentDidMount() {
DeviceEventEmitter.addListener('reloadListProduct', this._refresh)
// navigator.geolocation.getCurrentPosition(
// position => {
// this.setState({
// latitude: position.coords.latitude,
// longitude: position.coords.longitude,
// error: null,
// })
// },
// error => this.setState({ error: error.message }),
// { enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
// )
//get data from
// this._fetchSetting()
this.fetchListFiliale()
this.fetchListUser()
this.fetchListTasks()
this.fetchListUnites()
//todo setting is allow location
this.getLocation();
}
_convertDate = (planDate, endDate, prefix = '') => {
if (endDate) {
const currentTime = moment(endDate)
return `${prefix} ${currentTime.format('YYYY-MM-DD')}`
} else if (planDate) {
const currentTime = moment(planDate)
return `${prefix} ${currentTime.format('YYYY-MM-DD')}`
} else {
return `${prefix}`
}
}
_fetchSetting = () => {
isAllowClientAddress = true
isAddSpeeker = true
isShowTitle = true
isEditDate = true
isEditTime = true
const settingIntervention = SettingMobx.dataArray['4']
if (settingIntervention && Object.keys(settingIntervention).length > 0 && settingIntervention.hasOwnProperty('items')) {
items = settingIntervention['items'];
if (items && Object.keys(items).length > 0) {
if (items.hasOwnProperty('PREF_CAN_EDIT_CLIENT_ADRESSE')) {
isAllowClientAddress = items['PREF_CAN_EDIT_CLIENT_ADRESSE']['value'] !== '0';
}
if (items.hasOwnProperty('PREF_CAN_EDIT_USERS')) {
isAddSpeeker = items['PREF_CAN_EDIT_USERS']['value'] !== '0';
}
if (items.hasOwnProperty('PREF_DISPLAY_FIELD_TITLE')) {
isShowTitle = items['PREF_DISPLAY_FIELD_TITLE']['value'] !== '0';
}
if (items.hasOwnProperty('PREF_CAN_EDIT_HOURS')) {
isEditTime = items['PREF_CAN_EDIT_HOURS']['value'] !== '0';
}
if (items.hasOwnProperty('PREF_CAN_EDIT_DATES')) {
isEditDate = items['PREF_CAN_EDIT_DATES']['value'] !== '0';
}
this.setState({
isAllowClientAddress: isAllowClientAddress,
isAddSpeeker: isAddSpeeker,
isShowTitle: isShowTitle,
isEditDate: isEditDate,
isEditTime: isEditTime
})
}
}
}
fetchListUnites() {
console.log('FetchListUnites >>> Start')
// console.log('LinkUnite : ' + JSON.stringify(this.state.linkUnites))
SeUniteItem.fetchAllUniteItemByAccountIdGroupForServerId(this.state.userId).then(listUniteItem => {
// console.log('ListUniteItem : ' + JSON.stringify(listUniteItem))
SeUnite.fetch(this.state.userId)
.then(list => {
// console.log('ListUnites : ' + JSON.stringify(list))
const listKey = list.sortKey()
const listUnites = listKey.map(key => {
const temp = { ...list[key] }
// console.log('TmpUnite : ' + JSON.stringify(temp))
// console.log('TmpUnite : ' + temp.serverId)
temp.value = '';
Object.keys(this.state.linkUnites).forEach(key => {
item = this.state.linkUnites[key]
if (temp.id == item.fkUniteAppliId || temp.serverId == item.fkUniteServerId) {
temp.value = item.uniteValue
temp.valueUI = item.uniteValueUI
return;
}
})
//
if (temp.fieldType == 4) {
temp.typeStr = [{ label: I18n.t('CHOICE'), value: '' }]
}
if (temp.fieldType == 10) {
temp.typeStr = []
}
if (Object.keys(listUniteItem).length > 0) {
const listKeyUniteItem = Object.keys(listUniteItem)
for (var index = 0; index < listKeyUniteItem.length; index++) {
let uniteItem = listUniteItem[listKeyUniteItem[index]]
if (uniteItem.uniteServerId == temp.serverId) {
// console.log('UniteItemMatched : ' + JSON.stringify(uniteItem))
if (uniteItem) {
if (temp.fieldType == 4 || temp.fieldType == 10) {
temp.typeStr.push({ label: uniteItem.value, value: `${uniteItem.serverId}` })
} else {
temp.typeStr += uniteItem.value + ', '
}
}
}
}
}
return temp
})
this.setState({
listUnites: listUnites,
listRootUnites: listUnites,
})
})
.catch(console.log)
})
}
componentWillUnmount() {
DeviceEventEmitter.removeListener('reloadListProduct', this._refresh)
this.keyboardDidHideListener.remove()
}
_refresh = () => {
const { dataProducts } = this.state
console.log('DataProduct : ' + JSON.stringify(dataProducts))
selectedProduct = InterventionMobx.selectedProduct
console.log('selectedProduct : ' + JSON.stringify(selectedProduct))
dataProducts.push(selectedProduct)
console.log('DataProductChanged : ' + JSON.stringify(dataProducts))
InterventionMobx.clearSelectedProduct()
this.setState({
dataProducts
})
}
filterIntervant(str) {
const { yOfUser } = this.state
this.setState({
typeOfAutoFill: 'user',
intUserName: str,
})
const h = Platform.OS === 'ios' ? 68 : 48
this.setState({
topOfViewAuto: yOfUser + h + 5,
})
let isShow = true
if (str === '') {
isShow = false
} else {
const arr = this.parseListAddress(SeUser.filterUser(str.toLowerCase(), this.state.userId))
this.setState({
dataSearchSource: ds.cloneWithRows(arr),
})
}
this.setState({
isShowAutoComplete: isShow,
})
}
fetchListUser() {
SeUser.fetch(this.state.userId).then(list => {
const listKey = list.sortKey()
const arr = listKey.map(key => list[key])
this.setState({
listUsers: arr,
})
})
}
/* Handle InfoSection */
parseListAddress(list) {
const listKey = list.sortKey()
return listKey.map(key => list[key])
}
onChangeAddressEvent(text) {
const { yOfAddress, fkClientAppliId } = this.state
this.setState({
address: text,
typeOfAutoFill: 'address',
})
const h = Platform.OS === 'ios' ? 68 : 48
this.setState({
topOfViewAuto: yOfAddress + h + 5,
})
let isShow = true
if (text === '' || !fkClientAppliId) {
isShow = false
} else {
const arr = this.parseListAddress(
SeAddress.fetchItemWithFKClientId(this.state.userId, fkClientAppliId, text.toLowerCase())
)
this.setState({
dataSearchSource: ds.cloneWithRows(arr),
})
isShow = arr && arr.length > 0
}
this.setState({
isShowAutoComplete: isShow,
})
}
onChangeClientEvent(text) {
const { yOfClient } = this.state
this.setState({
client: text,
typeOfAutoFill: 'client',
})
const h = Platform.OS === 'ios' ? 68 : 48
this.setState({
topOfViewAuto: yOfClient + h + 5,
})
let isShow = true
if (text === '') {
this.setState({
client: text,
fkClientAppliId: null,
})
isShow = false
} else {
text = text.toLowerCase().replace(/\r?\n|\r/g, '');
const list = SeClient.filterClient(text, this.state.userId)
const listKey = list.sortKey()
const arr = listKey.map(key => {
const item = { ...list[key] }
item.countAddress = SeAddress.fetchItemWithFKClientId(this.state.userId, item.id, '').length
return item
})
this.setState({
dataSearchSource: ds.cloneWithRows(arr),
})
isShow = arr && arr.length > 0
}
this.setState({
isShowAutoComplete: isShow,
})
}
getPositionOfInput(type, y) {
if (type === 'client') {
this.setState({
yOfClient: y + 40,
})
}
if (type === 'address') {
this.setState({
yOfAddress: y + 40,
})
}
if (type === 'user') {
this.setState({
yOfUser: y + 120,
})
}
}
onChooseRow(data) {
const { isEditClient, typeOfAutoFill } = this.state
console.log('typeOfAutoFill :' + typeOfAutoFill)
if (typeOfAutoFill === 'client') {
if (data.countAddress === 1) {
const arr = this.parseListAddress(SeAddress.fetchItemWithFKClientId(this.state.userId, data.id, ''))
console.log('arr[0].id', arr[0].id)
if (arr.length > 0) {
this.setState({
address: [arr[0].adresse, arr[0].codePostal, arr[0].ville].join(' '),
fkAdresseAppliId: arr[0].id,
})
}
}
this.setState({
client: `${data.title} (${data.countAddress} adresses)`,
fkClientAppliId: data.id,
})
}
if (typeOfAutoFill === 'address') {
this.setState({
address: [data.adresse, data.codePostal, data.ville].join(' '),
fkAdresseAppliId: data.id,
})
}
if (typeOfAutoFill === 'user') {
this.setState({
intUserName: data.nom,
intUserId: data.id,
})
}
this.setState({
isShowAutoComplete: false,
})
}
renderRowAutoFill(data) {
const { typeOfAutoFill } = this.state
let content = ''
switch (typeOfAutoFill) {
case 'client':
content = `${data.title} (${data.countAddress} adresses)`
break
case 'address':
content = [data.adresse, data.codePostal, data.ville].join(' ')
break
case 'user':
content = data.nom
break
default:
content = ''
}
return (
<TouchableOpacity onPress={() => this.onChooseRow(data)}>
<View>
<Text
style={{
fontSize: 14,
color: 'black',
marginLeft: 10,
marginTop: 10,
}}
>
{content}
</Text>
<View style={styles.row_line} />
</View>
</TouchableOpacity>
)
}
/* Handle ActionSection */
/* Handle HoursSection */
onToggleCheckbox() {
const { isCompleted, doneHourStart, doneHourEnd } = this.state
// this.setState({
// isCompleted: !isCompleted,
// })
// if (this.props.intervention) {
// return;
// }
const currentTime = moment()
const currentDate = new Date()
const currentWorkTime = (currentDate.getHours() > 9 ? currentDate.getHours() : ('0' + currentDate.getHours())) + ':' + (currentDate.getMinutes() > 9 ? currentDate.getMinutes() : ('0' + currentDate.getMinutes()))
//
startwork = (!!doneHourStart && doneHourStart !== '') ? doneHourStart : TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) != null ? TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) : '00:00'
endwork = (!!doneHourEnd && doneHourEnd !== '') ? doneHourEnd : currentWorkTime
const workTime = (TimeUtills.getTimestamp(endwork) - TimeUtills.getTimestamp(startwork)).toString()
//console.log("isCompleted:"+this.state.isCompleted);
if (!isCompleted) {
this.isChangeWorkingHour = true;
this.setState({
isCompleted: !isCompleted,
planningDateStart: currentTime.format('YYYY-MM-DD'),
planningDateEnd: currentTime.format('YYYY-MM-DD'),
planningHourStart: TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob),
planningHourEnd: currentTime.format('HH:mm'),
planningHour: workTime > 0 ? TimeUtills.getTimeJob(workTime) : '00:00',
doneHourStart: (!!doneHourStart && doneHourStart !== '') ? doneHourStart : TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) != null ? TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) : '',
doneHourEnd: (!!doneHourEnd && doneHourEnd !== '') ? doneHourEnd : currentWorkTime,
doneHour: workTime > 0 ? TimeUtills.getTimeJob(workTime) : '00:00',
beginTime: `${I18n.t('BEGIN')} ${(!!doneHourStart && doneHourStart !== '') ? doneHourStart : TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) != null ? TimeUtills.getTimeJob(InterventionMobx.lastTimeFinishJob) : ''}`,
endTime: `${I18n.t('END')} ${(!!doneHourEnd && doneHourEnd !== '') ? doneHourEnd : currentWorkTime}`,
workTime: `${I18n.t('WORK_TIME')} ${workTime > 0
? TimeUtills.getTimeJob(workTime)
: '00:00'}`,
})
} else {
if (!this.state.isEdit) {
//console.log("Completed_2")
// console.log('Completed_2')
//fix bug not reset data when unchecked
this.setState({
isCompleted: !isCompleted,
doneDateStart: currentTime.format('YYYY-MM-DD'),
doneDateEnd: currentTime.format('YYYY-MM-DD'),
doneHourStart: currentTime.format('HH:mm'),
doneHourEnd: currentTime.format('HH:mm'),
doneHour: workTime > 0 ? workTime.toDateDurationWithoutSecond() : '00:00',
doneComment: this.state.planningComment,
beginTime: `${I18n.t('BEGIN')} ${I18n.t('EMPTY')}`,
endTime: `${I18n.t('END')} ${I18n.t('EMPTY')}`,
workTime: `${I18n.t('WORK_TIME')} ${I18n.t('EMPTY')}`
});
} else {
this.setState({
isCompleted: !isCompleted,
});
}
}
}
onShowDatePicker(type, isAction, rowId) {
const { typeDataPicker, isDatePickerVisible } = this.state
switch (typeDataPicker) {
case 'begin':
if (this.state.doneDateStart) {
this.currentDate = moment(this.state.doneDateStart)
}
break;
case 'end':
if (this.state.doneDateEnd) {
this.currentDate = moment(this.state.doneDateStart)
}
break;
}
this.setState({
typeDataPicker: type,
isDatePickerVisible: !isDatePickerVisible,
})
}
onShowCalendar(type, isAction, rowId) {
const { typeDataPicker, isDateTimePickerVisible } = this.state
if (isAction) {
this.setState({
isShowOfAction: isAction,
currentTaskId: rowId,
isDateTimePickerVisible: !isDateTimePickerVisible,
})
} else {
this.setState({
typeDataPicker: type,
isDateTimePickerVisible: !isDateTimePickerVisible,
})
}
}
onResetWorkTime = () => {
const { doneHourStart, doneHourEnd } = this.state
const workTimeStamp = (TimeUtills.getTimestamp(doneHourEnd) - TimeUtills.getTimestamp(doneHourStart)).toString()
workTime = '00:00'
if (workTimeStamp && !isNaN(workTimeStamp)) {
workTime = TimeUtills.getTimeJob(workTimeStamp);
}
// console.log('doneHour => '+workTime)
this.isChangeWorkingHour = true
this.setState({
workTime: `${I18n.t('WORK_TIME')}: ${workTime}`,
doneHour: workTime,
})
}
/* Handle MediaSection */
fetchImagesEdit(accountId, interventionId) {
SeMediaLink.fetchByAccountAndIntervention(accountId, interventionId).then(list => {
// console.log('ListMediaLink : ' + JSON.stringify(list))
const listKey = list.sortKey()
const listMediaLink = listKey.map(key => list[key])
if (listMediaLink.length > 0) {
arr = []
listMediaLink.forEach(mediaLink => {
SeMedia.fetchByAccountAndId(accountId, mediaLink['fkMediaAppliId']).then(listMedia => {
const listKeyMedia = listMedia.sortKey()
const arrMedia = listKeyMedia.map(key => listMedia[key])
arrMedia.forEach(media => arr.push(media))
return;
}).then(() => {
if (arr.length > 0) {
this.setState({
dataSource: arr,
})
}
});
})
}
})
}
onSelectAddress(data) {
//if (typeOfAutoFill === 'client') {
//if (data.countAddress === 1) {
this.setState({
address: [data.adresse, data.codePostal, data.ville].join(' '),
fkAdresseAppliId: data.id,
client: data.client.title,
fkClientAppliId: data.client.id,
})
//}
DialogManager.dismiss();
}
renderItemAddress(data) {
const { client } = data;
clientname = [client.title, client.nom].join(' ')
const content = [data.adresse, '#' + data.codePostal + '\n', data.distance + 'Km'].join(' ');
return (
<TouchableOpacity onPress={() => this.onSelectAddress(data)}>
<View>
<Text
style={{
fontSize: 18,
color: 'black',
marginLeft: 5,
marginTop: 5,
}}
>
{clientname}
</Text>
<Text
style={{
fontSize: 16,
color: 'black',
marginLeft: 5,
marginTop: 5,
}}
>
{content}
</Text>
<View style={styles.row_line} />
</View>
</TouchableOpacity>
)
}
showDialogAddressSuggestion() {
const show = (this.dataAddress.getRowCount() !== 0);
DialogManager.show({
// title: I18n.t('NEAR_BY_ADDRESS'),
// titleAlign: 'center',
animationDuration: 200,
width: 0.8,
ScaleAnimation: new ScaleAnimation(),
children: (
<DialogContent >
<Text
style={{
fontSize: 18,
color: 'blue',
marginBottom: 8
}}> {I18n.t('NEAR_BY_ADDRESS')}</Text>
<View style={{
height: 1,
backgroundColor: 'green',
}} />
{show && <ListView
enableEmptySections
dataSource={this.dataAddress}
renderRow={rowData => this.renderItemAddress(rowData)}
/>}
{
!show && <Text style={{
fontSize: 16,
color: 'black',
marginTop: 10,
marginBottom: 8
}} >{I18n.t('NO_ADDRESS_FOUND')}</Text>
}
</DialogContent>
),
}, () => {
console.log('callback - show');
});
}
deleteMedia(id) {
SeMedia.insert(id, 1)
}
onSaveNewOnSignature(rs, path) {
const { userId } = this.state
const data = {
accountId: userId,
fileData: rs,
filePath: path,
}
SeMedia.insert(data).then(item => {
const { dataSource, modalVisible } = this.state
const arr = dataSource.slice()
arr.push(item)
this.setState({
dataSource: arr,
modalVisible: !modalVisible,
})
})
}
saveNewItemToGrid(rs, path) {
const { dataSource, userId } = this.state
const data = {
accountId: userId,
filePath: path,
fileData: rs,
}
SeMedia.insert(data).then(item => {
const arr = dataSource.slice()
arr.push(item)
this.setState({
dataSource: arr,
})
})
}
removeItemMedia(index, item) {
const { dataSource } = this.state
SeMedia.insert(item.id, 1)
const arr = dataSource.slice()
arr.splice(index, 1)
this.setState({
dataSource: arr,
})
}
selectPhotoFromLibrary() {
const options = {
quality: 1.0,
maxWidth: 500,
maxHeight: 500,
storageOptions: {
skipBackup: true,
waitUntilSaved: true,
},
}
ImagePicker.launchImageLibrary(options, response => {
// console.log('Response = ', response)
if (response.didCancel) {
// console.log('User cancelled photo picker')
} else if (response.error) {
// console.log('ImagePickerưError: ', response.error)
} else if (response.customButton) {
// console.log('User tapped custom button: ', response.customButton)
} else {
// You can also display the image using data:
// let source = { uri: 'data:image/jpeg;base64,' + response.data };
this.saveNewItemToGrid(response.data, response.uri)
}
})
}
selectPhotoFromCamera() {
const options = {
quality: 1.0,
maxWidth: 500,
maxHeight: 500,
storageOptions: {
skipBackup: true,
waitUntilSaved: true,
},
}
ImagePicker.launchCamera(options, response => {
// console.log('Response = ', response)
if (response.didCancel) {
// console.log('User cancelled photo picker')
} else if (response.error) {
// console.log('ImagePicker Error: ', response.error)
} else if (response.customButton) {
// console.log('User tapped custom button: ', response.customButton)
} else {
// You can also display the image using data:
// let source = { uri: 'data:image/jpeg;base64,' + response.data };
this.saveNewItemToGrid(response.data, response.uri)
}
})
}
onShowError(textError) {
return Toast.show({
duration: 3000,
text: textError,
position: 'bottom',
supportedOrientations: ['Potrait', 'Landscape'],
})
}
valid() {
const {
client,
address,
planningHourStart,
planningHourEnd,
planningHour,
dataSource,
isEdit,
title,
} = this.state
const strError = []
!client && !isEdit && strError.push(`- ${I18n.t('ERROR_CLIENT_EMPTY')}`)
!address && !isEdit && strError.push(`- ${I18n.t('ERROR_ADDRESS_EMPTY')}`)
return strError.join('\n')
}
onUpdateIntervention() {
const {
latitude,
longitude,
planningDateStart,
planningDateEnd,
planningHourStart,
planningHourEnd,
planningHour,
planningComment,
doneDateStart,
doneDateEnd,
doneHourStart,
doneHourEnd,
doneHour,
doneComment,
dataSource,
userId,
fkFilialeAppliId,
isCompleted,
currentComment,
dataProducts
} = this.state
const msgError = this.valid()
if (msgError !== '') {
this.onShowError(msgError)
return
}
const isDone = isCompleted ? 1 : 0;
const data = { ...this.state.itemIntervention }
data.accountId = userId
// data.planningDateStart = planningDateStart
// data.planningDateEnd = planningDateEnd
// data.planningHourStart = planningHourStart
// data.planningHourEnd = planningHourEnd
// data.planningHour = planningHour
// data.planningComment = planningComment
// data.doneDateStart = isDone ? planningDateStart : doneDateStart
// data.doneDateEnd = isDone ? planningDateEnd : doneDateEnd
// data.doneHourStart = isDone ? planningHourStart : doneHourStart
// data.doneHourEnd = isDone ? planningHourEnd : doneHourEnd
// data.doneHour = isDone ? planningHour : doneHour
// data.doneComment = isDone ? planningComment : doneComment
if (this.isChangeDate) {
if (doneDateStart) {
data.doneDateStart = doneDateStart
}
if (doneDateEnd) {
data.doneDateEnd = doneDateEnd
}
}
//data.doneDateStart = planningDateStart ?
//data.doneDateEnd = planningDateEnd
if (this.isChangeWorkingHour) {
if (doneHourStart) {
data.doneHourStart = doneHourStart
}
if (doneHourEnd) {
data.doneHourEnd = doneHourEnd
}
if (doneHour) {
data.doneHour = doneHour
}
}
data.doneComment = currentComment
data.nom = this.state.title
data.isDone = 0
data.fkFilialeAppliId = fkFilialeAppliId
data.listCurrentProduct = dataProducts
SeIntervention.toggleDone(data, data.isDone).then(res => {
//console.log('ToggledIntervention : ' + JSON.stringify(this.state.intervention))
this.state.intervention = { ...this.state.intervention, ...res }
//console.log('ToggledIntervention : ' + JSON.stringify(this.state.intervention))
const newIntervention = { ...res }
newIntervention.isDone = this.state.isCompleted ? 1 : 0
newIntervention.doneDateStart = data.doneDateStart
newIntervention.doneDateEnd = data.doneDateEnd
if (SettingMobx.isEnableGPS && newIntervention.isDone == 1 && newIntervention.isDone != this.props.intervention.isDone) {
newIntervention.doneLongitude = String(this.state.longitude)
newIntervention.doneLatittude = String(this.state.latitude)
}
newIntervention.listCurrentProduct = dataProducts
//console.log('newIntervention'+JSON.stringify(newIntervention))
SeIntervention.update(
newIntervention,
dataSource,
this.state.dataSpeaker,
// this.state.listUsers,
this.state.listTasks,
this.state.listUnites
)
.then(item => {
InterventionMobx.onUpdate(item)
DeviceEventEmitter.emit('refresh')
Actions.pop()
// Actions.pop({ refresh: { intervention: item } })
})
.catch(err => {
})
// InterventionMobx.onUpdate(res)
// DeviceEventEmitter.emit('refresh')
})
}
onAddNewIntervention() {
const {
latitude,
longitude,
planningHourStart,
planningHourEnd,
planningHour,
planningDateStart,
planningDateEnd,
fkClientAppliId,
planningComment,
fkAdresseAppliId,
client,
address,
dataSource,
userId,
isCompleted,
fkFilialeAppliId,
//
doneDateStart,
doneDateEnd,
doneHourStart,
doneHourEnd,
doneHour,
doneComment,
//
currentComment,
//
dataProducts
} = this.state
const { currentUser } = UserMobx
const msgError = this.valid()
if (msgError !== '') {
this.onShowError(msgError)
return
}
// alert(JSON.stringify(this.state.listTasks))
// alert(JSON.stringify(this.state.listUnites))
const name = this.state.title || '' // || [currentUser.u_prenom, currentUser.u_nom].join(' ')
const isDone = isCompleted ? 1 : 0;
data = {};
if (isDone === 1) {
data = {
accountId: userId,
fkUserAppliId: '',
fkParentApplId: '',
fkClientAppliId,
fkAdresseAppliId,
nom: name,
priority: 2,
// planningDateStart: moment().format('YYYY-MM-DD, h:mm:ss a'),
// planningDateEnd: moment().format('YYYY-MM-DD, h:mm:ss a'),
isDone: isCompleted ? 1 : 0,
// planningHourStart,
// planningHourEnd,
// planningHour,
// planningComment,
// doneDateStart,
// doneDateEnd,
doneDateStart,
doneDateEnd,
doneHourStart,
doneHourEnd,
doneHour,
doneLongitude: SettingMobx.isEnableGPS ? String(this.state.longitude) : '',
doneLatittude: SettingMobx.isEnableGPS ? String(this.state.latitude) : '',
doneComment: currentComment,
fkFilialeAppliId,
parentId: currentUser.u_uuid,
//fkUserServerlId:parseInt(currentUser.u_id,10)
}
} else {
data = {
accountId: userId,
fkUserAppliId: '',
fkParentApplId: '',
fkClientAppliId,
fkAdresseAppliId,
nom: name,
priority: 2,
// planningDateStart: moment().format('YYYY-MM-DD, h:mm:ss a'),
// planningDateEnd: moment().format('YYYY-MM-DD, h:mm:ss a'),
isDone: isCompleted ? 1 : 0,
planningDateStart,
planningDateEnd,
planningHourStart,
planningHourEnd,
planningHour,
planningComment: currentComment,
doneDateStart,
doneDateEnd,
doneHourStart,
doneHourEnd,
doneHour,
fkFilialeAppliId,
parentId: currentUser.u_uuid,
//fkUserServerlId: parseInt(currentUser.u_id,10)
}
}
data.listCurrentProduct = dataProducts
SeIntervention.insert(
data,
client,
{
accountId: userId,
adresse: address,
latitude: latitude.toString(),
longitude: longitude.toString(),
},
dataSource,
this.state.dataSpeaker,
// this.state.listUsers,
this.state.listTasks,
this.state.listUnites
)
.then(items => {
// console.log('AddedIntervention : ' + JSON.stringify(items))
InterventionMobx.onAddNew(items)
DeviceEventEmitter.emit('refresh')
Actions.pop()
})
.catch(err => {
console.log('errrorrr' + err)
})
}
_keyboardDidHide() {
// this.setState({
// isShowAutoComplete: false,
// });
}
getLocation() {
navigator.geolocation.getCurrentPosition(
position => {
const accountId = parseInt(UserMobx.currentUser.u_id, 10);
const startPoint = { latitude: position.coords.latitude, longitude: position.coords.longitude }
const dataAdress1 = SeAddress.fetchItemWithLongLat(accountId, startPoint, 1000.0);
console.log('validAddress.length' + dataAdress1.length)
if (dataAdress1) {
this.dataAddress = ds.cloneWithRows(dataAdress1);
}
this.setState({
isEnableGPS: true,
latitude: position.coords.latitude,
longitude: position.coords.longitude
})
},
error => this.setState({ error: error.message, isEnableGPS: false }),
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
)
}
/* Main View */
addSpeaker() {
const { intUserName, intUserId } = this.state
if (intUserName === '') {
this.onShowError(I18n.t('ERROR_EMPTY_TEXT'))
} else {
const { dataSpeaker } = this.state
if (dataSpeaker.length >= 4) {
this.onShowError('Maximum 4 personne')
} else {
const arr = dataSpeaker.slice()
arr.push({ name: intUserName, id: intUserId })
this.setState({
dataSpeaker: arr,
intUserName: '',
})
}
}
}
removeSpeaker(id) {
const { dataSpeaker } = this.state
const arr = dataSpeaker.slice()
arr.forEach((item, index) => {
if (item.id === id) {
arr.splice(index, 1)
}
})
this.setState({
dataSpeaker: arr,
})
}
onToggleModal() {
const { modalVisible } = this.state
this.setState({
modalVisible: !modalVisible,
})
}
renderItemIntervant(rowData) {
return (
<View>
<Text>{rowData}</Text>
<View style={styles.intervenatTab_line} />
</View>
)
}
renderOverlay() {
const { topOfViewAuto, isShowAutoComplete } = this.state
const shouldShowOverlay = isShowAutoComplete && this.state.dataSearchSource && this.state.dataSearchSource.getRowCount() > 0
return (
<View
style={
shouldShowOverlay ? [styles.overlay, { top: topOfViewAuto }] : styles.hidden_overlay
}
>
<ListView
enableEmptySections
dataSource={this.state.dataSearchSource}
renderRow={rowData => this.renderRowAutoFill(rowData)}
/>
</View>
)
}
setTimeTask(timeTask) {
const { listTasks } = this.state
listTasks.forEach(item => {
if (item.id === this.state.currentTaskId) {
item.time = timeTask
}
})
this.setState({
listTasks,
})
}
toggleTaskCheckbox(taskId) {
const { listTasks, planningHour } = this.state
let index = listTasks.filter(item => item.isSelect).length
listTasks.forEach(item => {
if (item.id === taskId) {
item.isSelect = !item.isSelect
if (index == 0 && item.time == '00:00') {
item.time = planningHour
index += 1
}
}
})
this.setState({
listTasks,
})
}
_onUniteTextChange(data) {
const { listUnites } = this.state
listUnites.forEach(item => {
if (item.id === data.id) {
item.value = data.value
}
})
this.setState({
listUnites,
})
}
onDateTimePicked(date) {
const { typeDataPicker } = this.state
const y = moment(date).format('YYYY')
const m = moment(date).format('MM')
const d = moment(date).format('DD')
switch (typeDataPicker) {
case 'begin':
this.setState({
beginDate: `${I18n.t('BEGIN')}: ${y}-${m}-${d}`,
doneDateStart: `${y}-${m}-${d}`,
})
this.isChangeDate = true
break
case 'end':
this.setState({
endDate: `${I18n.t('END')}: ${y}-${m}-${d}`,
doneDateEnd: `${y}-${m}-${d}`,
})
this.isChangeDate = true
break
}
this.onHideDatePicker()
}
onDatePicked(date) {
const { typeDataPicker, isShowOfAction } = this.state
let h = moment(date).format('kk')
const m = moment(date).format('mm')
if (h == 24) {
h = 0;
}
if (isShowOfAction) {
this.setTimeTask(`${h}:${m}`)
this.setState({ isShowOfAction: false })
} else {
switch (typeDataPicker) {
case 'begin':
this.isChangeWorkingHour = true
this.setState({
beginTime: `${I18n.t('BEGIN')}: ${h}:${m}`,
beginTimeCalc: `${h}:${m}`,
doneHourStart: `${h}:${m}`,
})
break
case 'end':
this.isChangeWorkingHour = true
this.setState({
endTime: `${I18n.t('END')}: ${h}:${m}`,
endTimeCalc: `${h}:${m}`,
doneHourEnd: `${h}:${m}`,
})
break
case 'work':
this.isChangeWorkingHour = true
this.setState({
workTime: `${I18n.t('WORK_TIME')}: ${h}:${m}`,
doneHour: `${h}:${m}`,
})
break
default:
break
}
}
this.onHideDateTimePicker()
}
onHideDatePicker() {
this.setState({ isDatePickerVisible: false })
}
onHideDateTimePicker() {
this.setState({ isDateTimePickerVisible: false })
}
renderHeader(name) {
return (
<View style={styles.view_title}>
<View style={styles.view_title_1}>
<Label style={styles.text_title}>{I18n.t(name)}</Label>
</View>
</View>
)
}
renderModal() {
return (
<View>
<Modal
animationType={'none'}
visible={this.state.modalVisible}
onRequestClose={() => console.log('modal close')}
>
<SigntureView
saveSignature={this.onSaveNewOnSignature}
dismissModal={this.onToggleModal.bind(this)}
/>
</Modal>
</View>
)
}
toggleFiliale() {
this.setState({
isShowFilialeModal: !this.state.isShowFilialeModal,
})
}
_onChangeTitle(title) {
this.setState({
title,
})
}
_onChangeFaliale(data) {
// console.log('KeyFil : ' + data.serverId + " ~~~> " + (this.fkFilialeServerId != data.serverId))
if (this.fkFilialeServerId != data.serverId) {
this.setState({
isShowFilialeModal: !this.state.isShowFilialeModal,
nameFiliale: data.nom,
fkFilialeAppliId: data.id,
fkFilialeServerId: data.serverId,
listTasks: data.serverId != -1 ? this.state.listRootTasks.filter((item) => item.filialeServerKey == data.serverId) : this.state.listRootTasks,
listUnites: data.serverId != -1 ? this.state.listRootUnites.filter((item) => item.filialeServerKey == data.serverId) : this.state.listRootUnites
})
} else {
this.setState({
isShowFilialeModal: !this.state.isShowFilialeModal,
nameFiliale: data.nom,
fkFilialeAppliId: data.id,
fkFilialeServerId: data.serverId,
})
}
}
renderItemFiliale(data) {
return (
<TouchableOpacity onPress={this._onChangeFaliale.bind(this, data)}>
<View style={styles.btn_view}>
<Text style={styles.btn_text}>{data.nom}</Text>
</View>
</TouchableOpacity>
)
}
fetchListFiliale() {
SeFiliale.fetch(this.state.userId)
.then(list => {
// console.log('ListFiliale : ' + JSON.stringify(list))
list.splice(0, 0, { nom: this.state.subDomain, id: null, serverId: -1 })
if (this.state.fkFilialeAppliId) {
this.setNameFiliale(list)
}
this.setState({
listFiliale: list,
dataSourceFiliale: ds.cloneWithRows(list),
})
})
.catch(console.log)
}
setNameFiliale(filialeList) {
let nameFiliale = filialeList[0].nom
filialeList.forEach(filiale => {
if (filiale.id == this.state.fkFilialeAppliId) {
nameFiliale = filiale.nom
}
})
this.setState({
nameFiliale,
})
}
fetchListTasks() {
SeTask.fetch(this.state.userId)
.then(list => {
// console.log('ListTask : ' + JSON.stringify(list))
const listKey = list.sortKey().sort()
const listTasks = listKey.map(key => {
const temp = { ...list[key] }
temp.isSelect = false
temp.time = '00:00'
this.state.linkInterventionTasks.forEach(item => {
console.log('TaskItem : ' + JSON.stringify(item))
if (temp.id === item.fkTaskAppliId) {
//todo check it
console.log('TaskItemMatched : ' + JSON.stringify(item))
temp.isSelect = true
if (item.doneMinute != -1 && item.doneMinute != -10)
temp.time = moment.utc(item.doneMinute * 1000).format('mm:ss')
if (item.doneMinute == 0 || item.doneMinute == -10)
temp.isSelect = false
temp.planningMinute = item.planningMinute
}
})
return temp
})
this.setState({
listTasks: listTasks,
listRootTasks: listTasks,
})
})
.catch(console.log)
}
renderModalFiliale() {
return (
<ModalCustom
style={styles.modalFilliale}
position={'absolute'}
isOpen={this.state.isShowFilialeModal}
swipeToClose={false}
onRequestClose={() => console.log('modal close')}
>
<ListView
enableEmptySections
style={{ marginTop: 10 }}
dataSource={this.state.dataSourceFiliale}
renderRow={filiale => this.renderItemFiliale(filiale)}
/>
</ModalCustom>
)
}
_searchProducts = () => {
Actions.fetchProducts()
}
renderItemProduct(product) {
return (
<TouchableOpacity onPress={() => this.selectedProduct(product)}>
<View>
<Text
style={{
fontSize: 18,
color: 'black',
marginLeft: 5,
marginTop: 5,
}}
>
{product.nom}
</Text>
</View>
</TouchableOpacity>
)
}
_fetchProduct = (nom) => {
// from network
ServiceSync.findProductWithNom(nom).then(results => {
this.setState({
listProducts: results
})
})
}
selectedProduct(product) {
this.setState({
productSelected: product
})
}
_addProduct = (quantity) => {
const { productSelected, listCurrentProduct } = this.state
productSelected.quantitySelected = quantity
listCurrentProduct.push({ productSelected })
this.setState({
listCurrentProduct: listCurrentProduct,
productSelected: null
})
}
_removeProduct = (proId) => {
const { dataProducts } = this.state
const arr = dataProducts.slice()
arr.forEach((item, index) => {
if (item.id == proId) {
arr.splice(index, 1)
}
})
this.setState({
dataProducts: arr,
})
}
renderBody() {
const scrollView = {
style: styles.scrollview,
contentContainerStyle: styles.scrollview,
}
const {
dataSource,
dataSpeaker,
dataProducts,
beginTime,
endTime,
beginDate,
endDate,
workTime,
client,
address,
planningComment,
isEdit,
isCompleted,
dataSourceFiliale,
isAllowClientAddress,
isAddSpeeker,
isShowTitle,
isEditDate,
isEditTime,
listUnites,
doneComment,
currentComment,
itemIntervention,
} = this.state
const disabledFiliale = !dataSourceFiliale || dataSourceFiliale.getRowCount() === 0
// console.log(
// 'Client : ' + client +'\nAddress : ' + address
// )
// const comment = itemIntervention ? doneComment : planningComment;
return (
<ScrollView {...scrollView} onLayout={this.onLayoutScroll}>
<View style={{ flex: 1 }} onLayout={this.onLayoutView}>
{(!!isAllowClientAddress || !isEdit) && <InforSub
client={client}
address={address}
isEnableGPS={this.state.isEnableGPS}
onChangeClientEvent={this.onChangeClientEvent}
onChangeAddressEvent={this.onChangeAddressEvent}
getPositionOfInput={this.getPositionOfInput}
showDialogAddressSuggestion={this.showDialogAddressSuggestion.bind(this)}
/>}
{!!isAddSpeeker && <IntervantSection
userId={this.state.userId}
intUserName={this.state.intUserName}
dataSpeaker={dataSpeaker}
addSpeaker={this.addSpeaker.bind(this)}
removeSpeaker={this.removeSpeaker.bind(this)}
filterIntervant={this.filterIntervant.bind(this)}
getPositionOfInput={this.getPositionOfInput}
/>}
{!!isEditDate && <DateSection
onShowDatePicker={this.onShowDatePicker.bind(this)}
beginTime={beginDate}
endTime={endDate}
/>}
{!!isEditTime && <HoursSection
onShowCalendar={this.onShowCalendar.bind(this)}
onToggleCheckbox={this.onToggleCheckbox.bind(this)}
onResetWorkTime={this.onResetWorkTime}
beginTime={beginTime}
endTime={endTime}
workTime={workTime}
isDone={isCompleted}
/>}
<Filiale
userId={this.state.userId}
toggleFiliale={this.toggleFiliale.bind(this)}
disabled={disabledFiliale}
nameFiliale={this.state.nameFiliale}
fkFilialeAppliId={this.state.fkFilialeAppliId}
/>
{!!isShowTitle && <TitleSection title={this.state.title} onChangeTitle={this._onChangeTitle.bind(this)} />}
{!!(listUnites && Object.keys(listUnites).length > 0) && <UniteSection
userId={this.state.userId}
listUnites={listUnites}
onChangeText={this._onUniteTextChange.bind(this)}
/>}
<TaskSection
listTasks={this.state.listTasks}
onShowCalendar={this.onShowCalendar.bind(this)}
onToggleCheckbox={this.toggleTaskCheckbox.bind(this)}
/>
<SectionProduct
// userId={this.state.userId}
// intUserName={this.state.intUserName}
dataProducts={dataProducts}
searchProducts={this._searchProducts.bind(this)}
removeProduct={this._removeProduct.bind(this)}
// filterIntervant={this.filterIntervant.bind(this)}
// getPositionOfInput={this.getPositionOfInput}
/>
<MediaSection
onToggleModal={this.onToggleModal.bind(this)}
selectPhotoFromCamera={this.selectPhotoFromCamera.bind(this)}
selectPhotoFromLibrary={this.selectPhotoFromLibrary.bind(this)}
dataSource={dataSource}
removeItemMedia={this.removeItemMedia.bind(this)}
/>
<View>
{this.renderHeader('COMMENT')}
<View style={styles.comment_input_view}>
<TextInput
multiline
numberOfLines={4}
style={styles.comment_input}
value={currentComment}
returnKeyLabel='Done'
returnKeyType='done'
onSubmitEditing={Keyboard.dismiss}
onChangeText={text =>
this.setState({
currentComment: text,
})}
underlineColorAndroid="transparent"
/>
</View>
</View>
<Button
onPress={() => {
if (this.state.isEdit) {
this.onUpdateIntervention()
} else {
this.onAddNewIntervention()
}
}}
style={styles.btn_Add}
block
>
<Text>{I18n.t('ADD')}</Text>
</Button>
</View>
</ScrollView>
)
}
renderCalendarDate() {
const dateTimePicker = {
cancelTextIOS: I18n.t('DATETIMEPICKER_CANCEL'),
confirmTextIOS: I18n.t('DATETIMEPICKER_CONFIRM'),
titleIOS: I18n.t('DATETIMEPICKER_TITLE'),
}
let doneDateStart = this.state.doneDateStart
let doneDateEnd = this.state.doneDateEnd
if (this.state.typeDataPicker == 'begin') {
if (!doneDateStart || doneDateStart == '') {
doneDateStart = new Date()
} else {
doneDateStart = new Date(doneDateStart)
}
return (
<DateTimePicker
{...dateTimePicker}
onConfirm={this.onDateTimePicked}
onCancel={this.onHideDatePicker}
isVisible={this.state.isDatePickerVisible}
date={doneDateStart}
mode="date"
/>
)
} else {
if (!doneDateEnd || doneDateEnd == '') {
doneDateEnd = new Date()
} else {
doneDateEnd = new Date(doneDateEnd)
}
return (
<DateTimePicker
{...dateTimePicker}
onConfirm={this.onDateTimePicked}
onCancel={this.onHideDatePicker}
isVisible={this.state.isDatePickerVisible}
date={doneDateEnd}
mode="date"
/>
)
}
}
renderCalendar() {
const dateTimePicker = {
cancelTextIOS: I18n.t('DATETIMEPICKER_CANCEL'),
confirmTextIOS: I18n.t('DATETIMEPICKER_CONFIRM'),
titleIOS: I18n.t('DATETIMEPICKER_TITLE'),
}
//render datepicker
const {
typeDataPicker,
doneHourStart,
doneHourEnd,
doneHour,
} = this.state
let datetime = new Date();
const y = moment(datetime).format('YYYY')
const m = moment(datetime).format('MM')
const d = moment(datetime).format('DD')
//console.log('worktime'+typeDataPicker)
switch (typeDataPicker) {
case 'begin':
if (!!doneHourStart && doneHourStart != '') {
//TODO
arrTime = doneHourStart.split(':');
if (arrTime.length == 2) {
datetime = new Date(y, m, d, arrTime[0], arrTime[1])
}
}
break;
case 'end':
if (!!doneHourEnd && doneHourEnd != '') {
arrTime = doneHourEnd.split(':');
if (arrTime.length == 2) {
datetime = new Date(y, m, d, arrTime[0], arrTime[1])
}
}
//TODO
break;
case 'work':
console.log('workTime' + doneHour)
if (!!doneHour && doneHour != '') {
arrTime = doneHour.split(':');
if (arrTime.length == 2) {
datetime = new Date(y, m, d, arrTime[0], arrTime[1])
}
}
//TODO
break;
}
return (
<DateTimePicker
{...dateTimePicker}
onConfirm={this.onDatePicked}
onCancel={this.onHideDateTimePicker}
isVisible={this.state.isDateTimePickerVisible}
date={datetime}
mode="time"
is24Hour={true}
/>
)
}
renderHeaderMain() {
return (
<Header style={styles.header}>
<Left style={componentStyles.headerLeft}>
<Button transparent onPress={() => Actions.pop()}>
<IconBack />
<Image source={organilogIcon} style={styles.organilogIcon} />
</Button>
<Text style={styles.title}>{I18n.t('NEW_INTERVENTION')}</Text>
</Left>
{/* {this.state.isEnableGPS && <Right>
<Button transparent onPress={() => this.getLocation()}>
<Image
source={locationIcon}
style={[styles.organilogIcon, { width: 25, height: 25 }]}
/>
</Button>
</Right> } */}
</Header>
)
}
render() {
return (
// <KeyboardAvoidingView style={{ flex: 1 }} behavior="padding">
<Container style={styles.container} collapsable={false}>
<KeyboardAwareScrollView >
{this.renderHeaderMain()}
{this.renderBody()}
{this.renderModal()}
{this.renderCalendar()}
{this.renderCalendarDate()}
{this.renderOverlay()}
{this.renderModalFiliale()}
</KeyboardAwareScrollView>
</Container>
)
}
}
export default CreateIntervention
| 31.6138 | 234 | 0.587126 |
b765fe1a06fe76da5e4bc90dc72f6a11ce7e400b | 19,992 | js | JavaScript | test/src/Lifecycle/Lifecycle.test.js | yangyansong-adbe/wechat | 256b096d0cddf07652d73f1206369bb2bf4a1e8f | [
"Apache-2.0"
] | 9 | 2019-07-12T16:28:19.000Z | 2021-08-23T17:24:18.000Z | test/src/Lifecycle/Lifecycle.test.js | yangyansong-adbe/wechat | 256b096d0cddf07652d73f1206369bb2bf4a1e8f | [
"Apache-2.0"
] | 1 | 2021-02-23T11:31:40.000Z | 2021-02-23T12:03:42.000Z | test/src/Lifecycle/Lifecycle.test.js | yangyansong-adbe/wechat | 256b096d0cddf07652d73f1206369bb2bf4a1e8f | [
"Apache-2.0"
] | 9 | 2019-07-12T20:20:00.000Z | 2021-12-06T08:56:46.000Z | /*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
import assert from "assert";
import chai from 'chai';
import sinon from "sinon";
const Lifecycle = require('../../../src/Lifecycle/Lifecycle');
const {
localStorageService
} = require('../../../src/Platform/PlatformService');
const EventProcessor = require('../../../src/Common/EventProcessor');
const {
InvalidArgumentException
} = require('../../../src/Common/InvalidArgumentException');
const DEFAULT_CONFIGURATION = {
name: 'amsdk.configuration',
data: {
contextdata: {
'name': 'amsdk.configuration',
'app.version': '1.1.0',
'session.timeout': 10
}
}
};
const DEFAULT_LOCAL_OBJ = {
'install': {
'first.install.date': null,
'latest.install.date': null,
'app.version': '1.0.0'
},
'upgrade': {
'last.upgrade.date': null,
'launches.since.last.upgrade': 10
},
'session.previous': {
'amsdk.session.start.date': null,
'amsdk.session.end.date': null
},
'session.current': {
'amsdk.session.start.date': null,
'amsdk.session.end.date': null
},
'latest.engaged.day': null,
'latest.engaged.month': null,
'launches': 100
};
const EVENT_PROCESSOR = new EventProcessor();
describe('test Lifecycle/Lifecycle.js', () => {
beforeEach(() => {
localStorageService.removeWhenExist('amsdk.lifecye.local');
});
describe('# constructor()', () => {
it('should pass, if configuration is provided', () => {
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
assert(lifecycle.confContextData);
});
it('should throw exception, if not configuraiton provided', () => {
try {
new Lifecycle();
} catch (e) {
assert(e instanceof InvalidArgumentException);
}
chai.expect(() => new Lifecycle()).to.throw('failed to initialize Lifecycle object, as configuraiont or event processor is not set correctly.');
});
});
describe('# _loadLocalObj()', () => {
it('should return appLifecycle, if <amsdk.lifecye.local> exist in local storage', () => {
//stub wx.getStorageSync()
let WxStub = sinon.stub(wx, 'getStorageSync');
WxStub.withArgs('amsdk.lifecye.local').returns(DEFAULT_LOCAL_OBJ);
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
let rtnValue = lifecycle._loadLocalObj();
//console.log(JSON.stringify(rtnValue));
assert.equal(rtnValue.install['app.version'], '1.0.0');
assert.equal(rtnValue.launches, 100);
//restore stub
WxStub.restore();
});
it('should return default appLifecycle, if <amsdk.lifecye.local> not exist in local storage', () => {
let WxStub = sinon.stub(wx, 'getStorageSync');
WxStub.withArgs('amsdk.lifecye.local').returns(null);
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
let rtnValue = lifecycle._loadLocalObj();
assert.deepEqual(rtnValue, {
'install': {},
'upgrade': {},
'session.previous': {},
'session.current': {},
'latest.engaged.day': null,
'latest.engaged.month': null,
'launches': 0
});
WxStub.restore();
});
});
describe('# _saveObjToLocal()', () => {
it('should save obj to local with key = <amsdk.lifecye.local>', () => {
let WxSpy = sinon.spy(wx, 'setStorageSync');
new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR)._saveObjToLocal();
assert(WxSpy.withArgs('amsdk.lifecye.local').calledOnce);
WxSpy.restore();
});
});
describe('# _dateString()', () => {
it('should return right date format, like [5/15/2019]', () => {
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
chai.assert.match(lifecycle._dateString(Date.now()), /^([1-9]|1[0-2])\/([1-9]|[1-2][0-9]|3[0-1])\/[1-9]\d{3}$/);
});
});
describe('# _daysInterval()', () => {
it('should pass happy path', () => {
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
assert.equal(lifecycle._daysInterval(new Date('December 7, 2019 03:24:00').getTime(), new Date('December 17, 2019 03:24:00').getTime()), 10);
});
it('should return 0, if the dates are the same day', () => {
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
assert.equal(lifecycle._daysInterval(new Date('December 17, 2019 02:24:00').getTime(), new Date('December 17, 2019 03:24:00').getTime()), 0);
});
});
describe('# process()', () => {
it('should update configuration, if receive a configuration event', () => {
let newConfig = {
name: 'amsdk.configuration',
contextdata: {
'app.version': '1.2.0',
'session.timeout': 5
}
};
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
assert.equal(lifecycle.confContextData, DEFAULT_CONFIGURATION.data.contextdata);
lifecycle.process(newConfig);
assert.equal(lifecycle.confContextData, newConfig.contextdata);
});
it('should pass, when processing first launch after installation', () => {
let now = new Date('December 7, 2019 03:24:00').getTime();
let WxStub = sinon.stub(wx, 'getStorageSync');
WxStub.withArgs('amsdk.lifecye.local').returns(null);
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
let launchAppTypeSpy = sinon.spy(lifecycle, '_launchAppType');
lifecycle.process({
name: 'amsdk.app.on.launch',
date: now
});
chai.expect(launchAppTypeSpy.returnValues[0]).to.equal(1001);
assert.equal(lifecycle.contextdata['a.InstallEvent'], 'InstallEvent');
assert.equal(lifecycle.contextdata['a.InstallDate'], '12/7/2019');
launchAppTypeSpy.restore();
let showAppTypeSpy = sinon.spy(lifecycle, '_showAppType');
let analyticsSpy = sinon.spy(EVENT_PROCESSOR, 'process');
lifecycle.process({
name: 'amsdk.app.on.show',
date: now
});
chai.expect(showAppTypeSpy.returnValues[0]).to.equal(2001);
const expectEvent = {
"name": "amsdk.lifecycle",
data: {
'action': 'Lifecycle',
'isInternalAction': true,
'contextdata': {
'a.InstallEvent': 'InstallEvent',
'a.InstallDate': '12/7/2019',
'a.LaunchEvent': 'LaunchEvent',
//'a.PrevSessionLength': 0,
'a.sessionStartTimestamp': now,
'a.Launches': 1,
'a.DaysSinceFirstUse': 0,
'a.DaysSinceLastUse': 0,
'a.DailyEngUserEvent': 'DailyEngUserEvent',
'a.MonthlyEngUserEvent': 'MonthlyEngUserEvent',
'a.HourOfDay': 3,
'a.DayOfWeek': 7
}
}
};
assert.deepEqual(analyticsSpy.args[0][0], expectEvent);
assert.deepEqual(lifecycle.contextdata, {});
showAppTypeSpy.restore();
analyticsSpy.restore();
WxStub.restore();
});
it('should pass, when processing second launch as a new session after installation', () => {
let firstLaunchDate = new Date('December 7, 2019 03:24:00').getTime();
let hideDate = new Date('December 7, 2019 03:25:00').getTime();
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
lifecycle.process({
name: 'amsdk.app.on.launch',
date: firstLaunchDate
});
lifecycle.process({
name: 'amsdk.app.on.show',
date: firstLaunchDate
});
lifecycle.process({
name: 'amsdk.app.on.hide',
date: hideDate
});
assert.equal(lifecycle.appLifecycle['session.current']['amsdk.session.end.date'], hideDate);
let secondLaunchDate = new Date('December 17, 2019 03:24:00').getTime();
let lifecycle2 = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
let launchAppTypeSpy = sinon.spy(lifecycle2, '_launchAppType');
lifecycle2.process({
name: 'amsdk.app.on.launch',
date: secondLaunchDate
});
chai.expect(launchAppTypeSpy.returnValues[0]).to.equal(1003);
chai.expect(lifecycle2.contextdata).to.not.have.property('a.InstallEvent');
chai.expect(lifecycle2.contextdata).to.not.have.property('a.InstallDate');
launchAppTypeSpy.restore();
let showAppTypeSpy = sinon.spy(lifecycle2, '_showAppType');
let analyticsSpy = sinon.spy(lifecycle2.eventProcessor, 'process');
lifecycle2.process({
name: 'amsdk.app.on.show',
date: secondLaunchDate
});
chai.expect(showAppTypeSpy.returnValues[0]).to.equal(2001);
const expectEvent = {
"name": "amsdk.lifecycle",
data: {
'action': 'Lifecycle',
'isInternalAction': true,
'contextdata': {
'a.LaunchEvent': 'LaunchEvent',
'a.PrevSessionLength': 60,
'a.sessionStartTimestamp': secondLaunchDate,
'a.Launches': 2,
'a.DaysSinceFirstUse': 10,
'a.DaysSinceLastUse': 10,
'a.DailyEngUserEvent': 'DailyEngUserEvent',
'a.HourOfDay': 3,
'a.DayOfWeek': 3
}
}
};
assert.deepEqual(analyticsSpy.args[0][0], expectEvent);
assert.deepEqual(lifecycle2.contextdata, {});
showAppTypeSpy.restore();
analyticsSpy.restore();
});
it('should pass, when processing second launch event within session', () => {
let firstLaunchDate = new Date('December 7, 2019 03:24:00').getTime();
let hideDate = new Date('December 7, 2019 03:25:00').getTime();
let lifecycle = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
lifecycle.process({
name: 'amsdk.app.on.launch',
date: firstLaunchDate
});
lifecycle.process({
name: 'amsdk.app.on.show',
date: firstLaunchDate
});
lifecycle.process({
name: 'amsdk.app.on.hide',
date: hideDate
});
let five_seconds_after_hide = new Date('December 7, 2019 03:25:05').getTime();
let showAppTypeSpy = sinon.spy(lifecycle, '_showAppType');
lifecycle.process({
name: 'amsdk.app.on.show',
date: five_seconds_after_hide
});
chai.expect(showAppTypeSpy.returnValues[0]).to.equal(2002);
assert.equal(lifecycle.appLifecycle['session.current']['amsdk.session.start.date'], firstLaunchDate);
assert.equal(lifecycle.appLifecycle['session.current']['amsdk.session.end.date'], null);
assert.equal(lifecycle.appLifecycle.launches, 1);
});
it('should pass, when processing first upgrade event', () => {
let firstLaunchDate = new Date('December 7, 2019 03:24:00').getTime();
let hideDate = new Date('December 7, 2019 03:25:00').getTime();
let lifecycle1 = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
lifecycle1.process({
name: 'amsdk.app.on.launch',
date: firstLaunchDate
});
lifecycle1.process({
name: 'amsdk.app.on.show',
date: firstLaunchDate
});
lifecycle1.process({
name: 'amsdk.app.on.hide',
date: hideDate
});
let lifecycle2 = new Lifecycle({
name: 'amsdk.configuration',
data: {
contextdata: {
'name': 'amsdk.configuration',
'app.version': '1.2.0',
'session.timeout': 10
}
}
}, EVENT_PROCESSOR);
let launchAppTypeSpy = sinon.spy(lifecycle2, '_launchAppType');
let upgradeDate = new Date('December 17, 2019 03:24:00').getTime();
lifecycle2.process({
name: 'amsdk.app.on.launch',
date: upgradeDate
});
chai.expect(launchAppTypeSpy.returnValues[0]).to.equal(1002);
launchAppTypeSpy.restore();
const expectUpgradeData = {
'a.UpgradeEvent': 'UpgradeEvent',
'a.DaysSinceLastUpgrade': 10,
'a.LaunchesSinceUpgrade': 1
};
assert.deepEqual(lifecycle2.contextdata, expectUpgradeData);
let showAppTypeSpy = sinon.spy(lifecycle2, '_showAppType');
let analyticsSpy = sinon.spy(EVENT_PROCESSOR, 'process');
lifecycle2.process({
name: 'amsdk.app.on.show',
date: upgradeDate
});
chai.expect(showAppTypeSpy.returnValues[0]).to.equal(2001);
const expectEvent = {
"name": "amsdk.lifecycle",
data: {
'action': 'Lifecycle',
'isInternalAction': true,
'contextdata': {
'a.LaunchEvent': 'LaunchEvent',
'a.UpgradeEvent': 'UpgradeEvent',
'a.DaysSinceLastUpgrade': 10,
'a.LaunchesSinceUpgrade': 1,
'a.PrevSessionLength': 60,
'a.sessionStartTimestamp': upgradeDate,
'a.Launches': 2,
'a.DaysSinceFirstUse': 10,
'a.DaysSinceLastUse': 10,
'a.DailyEngUserEvent': 'DailyEngUserEvent',
'a.HourOfDay': 3,
'a.DayOfWeek': 3
}
}
};
assert.deepEqual(analyticsSpy.args[0][0], expectEvent);
assert.deepEqual(lifecycle2.contextdata, {});
showAppTypeSpy.restore();
analyticsSpy.restore();
});
it('should pass, when processing second upgrade event', () => {
let firstLaunchDate = new Date('December 7, 2019 03:24:00').getTime();
let hideDate = new Date('December 7, 2019 03:25:00').getTime();
let lifecycle1 = new Lifecycle(DEFAULT_CONFIGURATION, EVENT_PROCESSOR);
lifecycle1.process({
name: 'amsdk.app.on.launch',
date: firstLaunchDate
});
lifecycle1.process({
name: 'amsdk.app.on.show',
date: firstLaunchDate
});
lifecycle1.process({
name: 'amsdk.app.on.hide',
date: hideDate
});
let lifecycle2 = new Lifecycle({
name: 'amsdk.configuration',
data: {
contextdata: {
'name': 'amsdk.configuration',
'app.version': '1.2.0',
'session.timeout': 10
}
}
}, EVENT_PROCESSOR);
let upgradeDate = new Date('December 17, 2019 03:24:00').getTime();
let hideDate2 = new Date('December 17, 2019 03:25:00').getTime();
lifecycle2.process({
name: 'amsdk.app.on.launch',
date: upgradeDate
});
lifecycle2.process({
name: 'amsdk.app.on.show',
date: upgradeDate
});
lifecycle2.process({
name: 'amsdk.app.on.hide',
date: hideDate2
});
let lifecycle3 = new Lifecycle({
name: 'amsdk.configuration',
data: {
contextdata: {
'name': 'amsdk.configuration',
'app.version': '1.3.0',
'session.timeout': 10
}
}
}, EVENT_PROCESSOR);
let launchAppTypeSpy = sinon.spy(lifecycle3, '_launchAppType');
let upgradeDate2 = new Date('December 27, 2019 03:24:00').getTime();
lifecycle3.process({
name: 'amsdk.app.on.launch',
date: upgradeDate2
});
chai.expect(launchAppTypeSpy.returnValues[0]).to.equal(1002);
launchAppTypeSpy.restore();
const expectUpgradeData = {
'a.UpgradeEvent': 'UpgradeEvent',
'a.DaysSinceLastUpgrade': 10,
'a.LaunchesSinceUpgrade': 1
};
assert.deepEqual(lifecycle3.contextdata, expectUpgradeData);
let showAppTypeSpy = sinon.spy(lifecycle3, '_showAppType');
let analyticsSpy = sinon.spy(lifecycle3.eventProcessor, 'process');
lifecycle3.process({
name: 'amsdk.app.on.show',
date: upgradeDate2
});
chai.expect(showAppTypeSpy.returnValues[0]).to.equal(2001);
const expectEvent = {
"name": "amsdk.lifecycle",
data: {
'action': 'Lifecycle',
'isInternalAction': true,
'contextdata': {
'a.LaunchEvent': 'LaunchEvent',
'a.UpgradeEvent': 'UpgradeEvent',
'a.DaysSinceLastUpgrade': 10,
'a.LaunchesSinceUpgrade': 1,
'a.PrevSessionLength': 60,
'a.sessionStartTimestamp': upgradeDate2,
'a.Launches': 3,
'a.DaysSinceFirstUse': 20,
'a.DaysSinceLastUse': 10,
'a.DailyEngUserEvent': 'DailyEngUserEvent',
'a.HourOfDay': 3,
'a.DayOfWeek': 6
}
}
};
assert.deepEqual(analyticsSpy.args[0][0], expectEvent);
assert.deepEqual(lifecycle2.contextdata, {});
showAppTypeSpy.restore();
analyticsSpy.restore();
});
});
}); | 41.220619 | 156 | 0.519258 |
b7667caca38dc16e975b7f3e5d54439cb009854d | 413 | js | JavaScript | components/ui/icon.js | Vizzuality/otp-portal | 22e0385aa1deb6090c82191e2f8f5b6782cfb78e | [
"MIT"
] | 1 | 2018-04-24T12:37:29.000Z | 2018-04-24T12:37:29.000Z | components/ui/icon.js | Vizzuality/otp-portal | 22e0385aa1deb6090c82191e2f8f5b6782cfb78e | [
"MIT"
] | 4 | 2018-01-18T12:40:18.000Z | 2018-01-31T17:32:59.000Z | components/ui/icon.js | Vizzuality/otp-portal | 22e0385aa1deb6090c82191e2f8f5b6782cfb78e | [
"MIT"
] | 2 | 2021-01-11T17:46:08.000Z | 2021-10-05T09:22:16.000Z | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default function Icon({ name, className }) {
const classNames = classnames({
[className]: !!className
});
return (
<svg className={`c-icon ${classNames}`}>
<use xlinkHref={`#${name}`} />
</svg>
);
}
Icon.propTypes = {
name: PropTypes.string,
className: PropTypes.string
};
| 19.666667 | 51 | 0.646489 |
b766f557470a7911130ee57cdc4d7e2cc248b937 | 62 | js | JavaScript | client/dist/widgets/common/text/dist/setting/translations/vi.js | Freda0502/ArcGISExperienceBuilder | 8bb8df3ce2fe09a89b3f577f2d5be3ad71cf24b1 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-06-18T18:20:55.000Z | 2021-06-18T18:20:55.000Z | client/dist/widgets/common/text/src/setting/translations/vi.js | Freda0502/ArcGISExperienceBuilder | 8bb8df3ce2fe09a89b3f577f2d5be3ad71cf24b1 | [
"Apache-2.0",
"MIT"
] | null | null | null | client/dist/widgets/common/text/src/setting/translations/vi.js | Freda0502/ArcGISExperienceBuilder | 8bb8df3ce2fe09a89b3f577f2d5be3ad71cf24b1 | [
"Apache-2.0",
"MIT"
] | null | null | null | define({
wrap: 'Wrap',
verticalAlignment: 'Căn dọc'
}); | 15.5 | 31 | 0.596774 |
b767be250b360061ca1b659d284895ea5a07ce8e | 371 | js | JavaScript | src/scenes/SystemAdmin/shared/TitleizedField.test.js | trussworks/mymove | 6bf87d7e6237818e0051bf254502ae8c9a8fb631 | [
"MIT"
] | 46 | 2018-02-08T19:15:16.000Z | 2022-03-18T17:52:04.000Z | src/scenes/SystemAdmin/shared/TitleizedField.test.js | trussworks/mymove | 6bf87d7e6237818e0051bf254502ae8c9a8fb631 | [
"MIT"
] | 5,729 | 2018-01-19T01:11:09.000Z | 2022-03-31T21:46:17.000Z | src/scenes/SystemAdmin/shared/TitleizedField.test.js | trussworks/mymove | 6bf87d7e6237818e0051bf254502ae8c9a8fb631 | [
"MIT"
] | 39 | 2018-02-01T22:31:08.000Z | 2022-03-25T17:43:10.000Z | import React from 'react';
import { shallow } from 'enzyme';
import TitleizedField from './TitleizedField';
describe('TitleizedField', () => {
it('transforms text properly', () => {
const record = { issuer: 'coast-guard' };
const field = shallow(<TitleizedField source="issuer" record={record} />);
expect(field.text()).toEqual('Coast Guard');
});
});
| 26.5 | 78 | 0.649596 |
b767d2b3da83bae2698984835020142f18fa1251 | 2,195 | js | JavaScript | src/demo/stories/features/diferent_size.js | chybatronik/react_sortable | cf15fc52455b388d1e05909d4f3de32a70b037ee | [
"MIT"
] | 2 | 2017-11-15T14:25:27.000Z | 2019-03-07T02:42:32.000Z | src/demo/stories/features/diferent_size.js | chybatronik/react_sortable | cf15fc52455b388d1e05909d4f3de32a70b037ee | [
"MIT"
] | null | null | null | src/demo/stories/features/diferent_size.js | chybatronik/react_sortable | cf15fc52455b388d1e05909d4f3de32a70b037ee | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import {default_order_diff} from "../demo_data";
import SortableReact from '../../../lib/SortableReact';
import Markdown from 'react-markdown';
const code = `
\`\`\`js
<SortableReact
mode={mode}
cells=[
{id: "1", colspan:1, rowspan:1, defaultColumn:1, defaultRow:1, content: "1"},
{id: "2", colspan:1, rowspan:1, defaultColumn:2, defaultRow:1, content: "2"},
{id: "3", colspan:2, rowspan:2, defaultColumn:3, defaultRow:1, content: "3"},
{id: "11", colspan:1, rowspan:1, defaultColumn:1, defaultRow:2, content: "11"},
{id: "12", colspan:1, rowspan:1, defaultColumn:2, defaultRow:2, content: "12"},
{id: "21", colspan:1, rowspan:1, defaultColumn:1, defaultRow:3, content: "21"},
{id: "22", colspan:1, rowspan:1, defaultColumn:2, defaultRow:3, content: "22"},
{id: "23", colspan:1, rowspan:1, defaultColumn:3, defaultRow:3, content: "23"},
{id: "24", colspan:1, rowspan:1, defaultColumn:4, defaultRow:3, content: "24"},
]
/>
\`\`\`
`
const text = `
Size of item set in cells array.
###### colspan - width of item, width of item eq colspan * cellWidth.
###### rowspan - height of item, height of item eq rowspan * cellHeight.
###### defaultColumn - column.
###### defaultRow - row.
${code}
`
class StoreDiferentSize extends Component {
constructor(props) {
super(props)
this.state = {mode: "SORT"};
console.log("state::::", this.state)
}
onState(e){
console.log("onState:", e.target.value)
this.setState({"mode": e.target.value})
}
render(){
// console.log("this.props.mode;;", this.props)
const mode = this.state.mode
return (
<div>
<h1>Different size</h1>
<div style={{height:400}}>
<label>mode:</label>
<select style={{width:200, "marginLeft":20}} onChange={this.onState.bind(this)}>
<option value="SORT">SORT</option>
<option value="SWAP">SWAP</option>
</select>
<SortableReact
mode={mode}
cells={default_order_diff}
/>
</div>
<Markdown source={text}/>
</div>
)
}
}
export default StoreDiferentSize;
| 31.357143 | 90 | 0.600911 |
b7686ce6430d3fe3641302dca28324a2f6a00e82 | 4,787 | js | JavaScript | packages/app/components/childListItem.component.js | devilbuddy/skolplattformen | f9aa58a09eb13e678e82e8409b4feabb068b8936 | [
"Apache-2.0"
] | null | null | null | packages/app/components/childListItem.component.js | devilbuddy/skolplattformen | f9aa58a09eb13e678e82e8409b4feabb068b8936 | [
"Apache-2.0"
] | null | null | null | packages/app/components/childListItem.component.js | devilbuddy/skolplattformen | f9aa58a09eb13e678e82e8409b4feabb068b8936 | [
"Apache-2.0"
] | null | null | null | import React from 'react'
import { StyleSheet, View } from 'react-native'
import { DateTime } from 'luxon'
import moment from 'moment'
import {
useNotifications,
useNews,
useClassmates,
useCalendar,
useMenu,
useSchedule,
} from '@skolplattformen/api-hooks'
import { Button, Icon, Text, Card, Avatar } from '@ui-kitten/components'
const NotificationsIcon = (props) => (
<Icon {...props} name="alert-circle-outline" />
)
const NewsIcon = (props) => <Icon {...props} name="activity-outline" />
const CalendarIcon = (props) => <Icon {...props} name="calendar-outline" />
const PeopleIcon = (props) => <Icon {...props} name="people-outline" />
export const ChildListItem = ({ navigation, child, color }) => {
const { data: notifications, status: notificationsStatus } = useNotifications(
child,
)
const { data: news, status: newsStatus } = useNews(child)
const { data: classmates, status: classmatesStatus } = useClassmates(child)
const { data: calendar, status: calendarStatus } = useCalendar(child)
const { data: menu, status: menuStatus } = useMenu(child)
const { data: schedule, status: scheduleStatus } = useSchedule(
child,
DateTime.local(),
DateTime.local().plus({ days: 7 }),
)
const getClassName = () => {
// hack: we can find the class name (ex. 8C) from the classmates. let's pick the first one and select theirs class
if (classmates.length > 0) {
return classmates[0].className
}
// otherwise we show the status: Grundskola, Gymnasium etc.
const abbrevations = {
G: 'Gymnasiet', // ? i'm guessing here
GR: 'Grundskolan',
F: 'Förskoleklass',
}
return child.status
.split(';')
.map((status) => abbrevations[status] || status)
.join(', ')
}
const Header = (props) => (
<View {...props} style={{ flexDirection: 'row' }}>
<View style={{ margin: 20 }}>
<Avatar source={require('../assets/avatar.png')} shape="square" />
</View>
<View style={{ margin: 20 }}>
<Text category="h6">{child.name?.split('(')[0]}</Text>
<Text category="s1">{`${getClassName()}`}</Text>
</View>
</View>
)
const Footer = (props, info) => (
<View style={styles.itemFooter}>
<Button
style={[styles.item, styles[newsStatus]]}
status="control"
size="small"
onPress={() =>
navigation.navigate('Child', { child, color, selectedTab: 0 })
}
accessoryLeft={NewsIcon}>
{`${(news || []).length}`}
</Button>
<Button
style={[styles.item, styles[notificationsStatus]]}
status="control"
size="small"
onPress={() =>
navigation.navigate('Child', { child, color, selectedTab: 1 })
}
accessoryLeft={NotificationsIcon}>
{`${(notifications || []).length}`}
</Button>
<Button
style={[styles.item, styles[calendarStatus]]}
status="control"
size="small"
onPress={() =>
navigation.navigate('Child', { child, color, selectedTab: 2 })
}
accessoryLeft={CalendarIcon}>
{`${(notifications || []).length}`}
</Button>
<Button
style={[styles.item, styles[classmatesStatus]]}
status="control"
size="small"
onPress={() =>
navigation.navigate('Child', { child, color, selectedTab: 3 })
}
accessoryLeft={PeopleIcon}>
{`${(classmates || []).length}`}
</Button>
</View>
)
return (
<Card
style={{ ...styles.card }}
appearance="filled"
status={color}
header={Header}
footer={Footer}
onPress={() => navigation.navigate('Child', { child, color })}>
{[...(calendar ?? []), ...(schedule ?? [])]
.filter((a) => moment(a.startDate).isSame('week'))
.slice(0, 3)
.map((calendarItem, i) => (
<Text
appearance="hint"
category="c1"
key={i}
style={{ textColor: styles.loaded(notificationsStatus) }}>
{`${calendarItem.title}`}
</Text>
))}
{notifications
.filter((n) => moment(n).isSame('week'))
.map((notification, i) => (
<Text appearance="hint" category="c1" key={i}>
{`${notification.message}`}
</Text>
))}
</Card>
)
}
const styles = StyleSheet.create({
card: {
flex: 1,
margin: 10,
},
itemFooter: {
flexDirection: 'row',
justifyContent: 'space-evenly',
paddingHorizontal: 5,
paddingVertical: 5,
borderRadius: 5,
margin: 0,
},
item: {
paddingHorizontal: 0,
},
loaded: {
color: '#000',
},
loading: {
color: '#555',
},
error: {
color: '#500',
},
})
| 27.831395 | 118 | 0.558596 |
b76878a0d50c37113dc515c4adcb4104db4277a9 | 10,307 | js | JavaScript | src/io/ApplicationUpdater.js | Andrea-MariaDB-2/arc-electron | cbdf2d8b06f54f10992259e877e93bc69555b063 | [
"Apache-2.0"
] | 1,123 | 2017-10-07T02:08:38.000Z | 2022-03-27T04:44:55.000Z | src/io/ApplicationUpdater.js | Andrea-MariaDB-2/arc-electron | cbdf2d8b06f54f10992259e877e93bc69555b063 | [
"Apache-2.0"
] | 431 | 2017-11-07T10:11:46.000Z | 2022-03-30T23:55:38.000Z | src/io/ApplicationUpdater.js | Andrea-MariaDB-2/arc-electron | cbdf2d8b06f54f10992259e877e93bc69555b063 | [
"Apache-2.0"
] | 195 | 2017-12-13T22:42:39.000Z | 2022-03-23T17:54:01.000Z | import { autoUpdater } from 'electron-updater';
import { EventEmitter } from 'events';
import { dialog, nativeImage, ipcMain, BrowserWindow } from 'electron';
import path from 'path';
import { logger } from './Logger.js';
autoUpdater.logger = logger;
/** @typedef {import('electron-updater').UpdateInfo} UpdateInfo */
/** @typedef {import('@advanced-rest-client/arc-types').Config.ARCConfig} ARCConfig */
export const checkingHandler = Symbol('checkingHandler');
export const updateAvailableHandler = Symbol('updateAvailableHandler');
export const updateNotAvailableHandler = Symbol('updateNotAvailableHandle');
export const updateErrorHandler = Symbol('updateErrorHandler');
export const downloadProgressHandler = Symbol('downloadProgressHandler');
export const downloadReadyHandler = Symbol('downloadReadyHandler');
export const checkUpdateHandler = Symbol('checkUpdateHandler');
/**
* A module to check for updates.
*
* UpdateInfo model:
* - version {String} - The version.
* - files {Array<module:builder-util-runtime.UpdateFileInfo>}
* - releaseName {String} - The release name.
* - releaseNotes {String} - The release notes.
* - releaseDate {String} - The release date.
* - stagingPercentage {Number} - The staged rollout percentage, 0-100.
*/
export class ApplicationUpdater extends EventEmitter {
constructor() {
super();
this.state = 0;
this.lastInfoObject = undefined;
this[checkingHandler] = this[checkingHandler].bind(this);
this[updateAvailableHandler] = this[updateAvailableHandler].bind(this);
this[updateNotAvailableHandler] = this[updateNotAvailableHandler].bind(this);
this[updateErrorHandler] = this[updateErrorHandler].bind(this);
this[downloadProgressHandler] = this[downloadProgressHandler].bind(this);
this[downloadReadyHandler] = this[downloadReadyHandler].bind(this);
this.installUpdate = this.installUpdate.bind(this);
this.check = this.check.bind(this);
}
/**
* Adds auto-update library event listeners.
*/
listen() {
autoUpdater.on('checking-for-update', this[checkingHandler]);
autoUpdater.on('update-available', this[updateAvailableHandler]);
autoUpdater.on('update-not-available', this[updateNotAvailableHandler]);
autoUpdater.on('error', this[updateErrorHandler]);
autoUpdater.on('download-progress', this[downloadProgressHandler]);
autoUpdater.on('update-downloaded', this[downloadReadyHandler]);
ipcMain.handle('check-for-update', this[checkUpdateHandler].bind(this));
ipcMain.on('install-update', this.installUpdate);
}
/**
* Adds auto-update library event listeners.
*/
unlisten() {
autoUpdater.off('checking-for-update', this[checkingHandler]);
autoUpdater.off('update-available', this[updateAvailableHandler]);
autoUpdater.off('update-not-available', this[updateNotAvailableHandler]);
autoUpdater.off('error', this[updateErrorHandler]);
autoUpdater.off('download-progress', this[downloadProgressHandler]);
autoUpdater.off('update-downloaded', this[downloadReadyHandler]);
ipcMain.removeHandler('check-for-update');
ipcMain.off('install-update', this.installUpdate);
}
/**
* Checks if `channel` is a valid channel signature.
* @param {String} channel
* @return {Boolean}
*/
isValidChannel(channel) {
return ['beta', 'alpha', 'latest'].indexOf(channel) !== -1;
}
/**
* Checks for update.
*
* @param {object=} opts Options for checking for an update.
*/
check(opts={}) {
this.lastOptions = opts;
logger.info('Checking for application updates...');
autoUpdater.checkForUpdates();
}
/**
* Sets the channel value on auto updater
* @param {string} channel Channel name
*/
setReleaseChannel(channel) {
if (this.isValidChannel(channel)) {
logger.debug(`Setting the release channel to${ channel}`);
autoUpdater.channel = channel;
} else {
logger.warn(`Channel ${channel} is not a valid application release channel.`);
}
}
/**
* Checks for app update.
* This function **must** be called after the app ready event.
*
* @param {ARCConfig=} settings Current application configuration.
* @param {boolean=} skipAppUpdate When set it skips application update check
*/
start(settings={}, skipAppUpdate=false) {
logger.info('ApplicationUpdater::Initializing auto updater.');
const { updater={} } = settings;
const { auto, channel } = updater;
if (channel) {
if (this.isValidChannel(channel)) {
logger.info(`ApplicationUpdater::Setting auto updater channel to ${channel}`);
autoUpdater.channel = channel;
}
}
if (skipAppUpdate || auto === false) {
logger.debug('Auto Updater is disabled. Manual requests will still download the update.');
autoUpdater.autoDownload = false;
autoUpdater.autoInstallOnAppQuit = false;
return;
}
if (!skipAppUpdate) {
setTimeout(() => this.check());
}
}
/**
* Quits the application and installs the update.
*/
installUpdate() {
logger.info('Initializing update process (quit & install)');
autoUpdater.quitAndInstall();
}
/**
* Handler for the `check-for-update` event dispatched by the renderer process.
* Calls `check()` with option to not notify the user about the update
* @returns {Promise<UpdateInfo>}
*/
async [checkUpdateHandler]() {
const result = await autoUpdater.checkForUpdates();
if (!result || !result.updateInfo) {
return undefined;
}
return result.updateInfo;
}
/**
* Emitted when checking if an update has started.
*/
[checkingHandler]() {
this.state = 1;
this.lastInfoObject = undefined;
this.emit('notify-windows', 'checking-for-update');
this.emit('status-changed', 'checking-for-update');
}
/**
* Emitted when there is an available update. The update is downloaded
* automatically.
*
* @param {UpdateInfo} info Update info object. See class docs for details.
*/
[updateAvailableHandler](info) {
logger.debug('Update available.');
this.state = 2;
this.lastInfoObject = info;
this.emit('notify-windows', 'update-available', info);
this.emit('status-changed', 'download-progress');
if (!this.lastOptions || !this.lastOptions.notify) {
return;
}
this.updateAvailableDialog();
}
/**
* Emitted when there is no available update.
*
* @param {UpdateInfo} info Update info object. See class docs for details.
*/
[updateNotAvailableHandler](info) {
logger.debug('Update not available.');
this.state = 3;
this.lastInfoObject = info;
this.emit('notify-windows', 'update-not-available', info);
this.emit('status-changed', 'not-available');
this.notifyUser('No update available.', `${info.version} is the latest version.`);
}
/**
* Emitted when there is an error while updating.
*
* @param {any} error Error from the library.
*/
[updateErrorHandler](error) {
const { message, code } = error;
logger.error('Update error');
this.state = 4;
this.lastInfoObject = error;
this.emit('notify-windows', 'autoupdate-error', {
message,
code,
});
this.emit('status-changed', 'not-available');
if (code === 8) {
let msg = 'Unable to update the application when it runs in';
msg += ' read-only mode. Move the application to the Applications';
msg += ' folder first and try again.';
this.notifyUser('Update error', msg, true);
} else {
this.notifyUser('Update error', message, true);
}
}
/**
* Emitted on download progress.
*
* @param {object} progressObj Progress info data. Contains `progress` property which has the following properties:
* - bytesPerSecond
* - percent
* - total
* - transferred
*/
[downloadProgressHandler](progressObj) {
logger.debug('Update download progress');
this.state = 5;
this.lastInfoObject = progressObj;
this.emit('notify-windows', 'download-progress', progressObj);
}
/**
* Emitted when a new version is downloaded.
*
* @param {UpdateInfo} info Update info object. See class docs for details.
*/
[downloadReadyHandler](info) {
logger.debug('Update download ready', info);
this.state = 6;
this.lastInfoObject = info;
this.emit('notify-windows', 'update-downloaded', info);
this.emit('status-changed', 'update-downloaded');
if (this.lastOptions && this.lastOptions.notify) {
setImmediate(() => autoUpdater.quitAndInstall());
}
}
/**
* Notifies the user about update event.
*
* @param {string} message Message to display.
* @param {string} detail MacOS only. Additional detail message.
* @param {boolean=} isError Should be true when notifying about error.
*/
notifyUser(message, detail, isError) {
this.lastOptions = this.lastOptions || {};
if (!this.lastOptions || !this.lastOptions.notify) {
return;
}
const dialogOpts = {
type: isError ? 'error' : 'info',
title: 'ARC updater',
message,
detail,
};
if (!isError) {
const imgPath = path.join(__dirname, '..', '..', 'assets', 'icon.iconset', 'icon_512x512.png');
dialogOpts.icon = nativeImage.createFromPath(imgPath);
}
dialog.showMessageBox(dialogOpts);
}
async updateAvailableDialog() {
let msg = 'Application update is available. ';
msg += 'Do you want to install it now?';
const window = BrowserWindow.getFocusedWindow();
const result = await dialog.showMessageBox(window, {
type: 'info',
title: 'Application update',
message: msg,
buttons: ['Yes', 'No']
});
if (result.response === 0) {
autoUpdater.downloadUpdate();
}
}
/**
* A function reserved for the application menu to call.
* Checks for the update status when requested.
* @param {string} action The action requested by the user.
*/
menuActionHandler(action) {
if (action.indexOf('application') === -1) {
return;
}
switch (action) {
case 'application:install-update':
this.installUpdate();
break;
case 'application:check-for-update':
this.check({
notify: true,
});
break;
default:
}
}
}
| 32.209375 | 117 | 0.665761 |
b7688fdbf8c14e70deb2e173e7c2f7448061073e | 64 | js | JavaScript | test/fixtures/basic/services/bar.js | jasonsites/app-container | 51ffc0b979c826d770814f419a6b7456ac49576e | [
"MIT"
] | 3 | 2017-11-11T05:58:34.000Z | 2019-07-14T13:17:33.000Z | test/fixtures/basic/services/bar.js | jasonsites/app-container | 51ffc0b979c826d770814f419a6b7456ac49576e | [
"MIT"
] | 3 | 2018-05-08T11:01:25.000Z | 2021-05-08T21:53:06.000Z | test/fixtures/basic/services/bar.js | jasonsites/app-container | 51ffc0b979c826d770814f419a6b7456ac49576e | [
"MIT"
] | 1 | 2019-05-19T00:39:53.000Z | 2019-05-19T00:39:53.000Z |
export default {
baz: 'bar',
};
export const inject = { };
| 8 | 26 | 0.5625 |
b768da865e31f609ef9704a39439b4e0efc3a1be | 1,026 | js | JavaScript | src/demos/Qrcode.vue.vux.js | xiamo0201/vux | 9469c529ca36466088be6df049fd3c83bb69dd6b | [
"MIT"
] | null | null | null | src/demos/Qrcode.vue.vux.js | xiamo0201/vux | 9469c529ca36466088be6df049fd3c83bb69dd6b | [
"MIT"
] | null | null | null | src/demos/Qrcode.vue.vux.js | xiamo0201/vux | 9469c529ca36466088be6df049fd3c83bb69dd6b | [
"MIT"
] | null | null | null | <template>
<div style="text-align:center;margin-top:15px;">
<divider>{{ $t('Notice: It cannot be extracted by Wechat') }}</divider>
<qrcode value="https://vux.li"></qrcode>
<br>
<br>
<qrcode :value="value" :fg-color="fgColor"></qrcode>
<br>
<span>{{ $t('current url') }}: {{value}}</span>
<br>
<span>{{ $t('current fgColor') }}: {{fgColor}}</span>
</div>
</template>
<i18n>
'Notice: It cannot be extracted by Wechat':
zh-CN: 注意:canvas不能在微信里长按识别
current url:
zh-CN: 当前url
current fgColor:
zh-CN: 当前颜色
</i18n>
<script>
import Qrcode from '../components/qrcode/index.vue'
import Divider from '../components/divider/index.vue'
export default {
mounted () {
setInterval(() => {
this.value = `https://vux.li?t=${Math.random()}`
this.fgColor = `#${Math.floor(Math.random() * 16777215).toString(16)}`
}, 1000)
},
components: {
Qrcode,
Divider
},
data () {
return {
value: 'https://vux.li',
fgColor: '#000000'
}
}
}
</script> | 21.829787 | 76 | 0.584795 |
b7699500ccbac5790e4326ceedd80c3b773cc4af | 144 | js | JavaScript | config/keys.js | brentgroves/mern-auth | 9947ca8c94cf52047abfe7dc22a6e13e6c1960d3 | [
"MIT"
] | null | null | null | config/keys.js | brentgroves/mern-auth | 9947ca8c94cf52047abfe7dc22a6e13e6c1960d3 | [
"MIT"
] | 1 | 2021-05-08T17:07:27.000Z | 2021-05-08T17:07:27.000Z | config/keys.js | brentgroves/mern-auth | 9947ca8c94cf52047abfe7dc22a6e13e6c1960d3 | [
"MIT"
] | null | null | null | module.exports = {
mongoURI: "mongodb+srv://brent:JesusLives1!@mycluster-yp9hk.mongodb.net/test?retryWrites=true",
secretOrKey: "secret"
};
| 28.8 | 97 | 0.743056 |
b7699f2f04933d97a355f70d7702c68c0948c6d5 | 3,096 | js | JavaScript | ProfileSPA/src/components/App/App.js | senal/ms-identity-javascript-react-spa-dotnetcore-webapi-obo | 4312ef9fe3fc99a1c32372d2e42bea2a239d3a05 | [
"MIT"
] | 59 | 2020-04-25T16:30:46.000Z | 2022-02-07T08:11:27.000Z | ProfileSPA/src/components/App/App.js | senal/ms-identity-javascript-react-spa-dotnetcore-webapi-obo | 4312ef9fe3fc99a1c32372d2e42bea2a239d3a05 | [
"MIT"
] | 34 | 2020-04-25T01:48:39.000Z | 2021-09-08T15:42:00.000Z | ProfileSPA/src/components/App/App.js | senal/ms-identity-javascript-react-spa-dotnetcore-webapi-obo | 4312ef9fe3fc99a1c32372d2e42bea2a239d3a05 | [
"MIT"
] | 35 | 2020-05-13T05:22:25.000Z | 2021-12-02T10:45:52.000Z | import React from "react";
import PropTypes from "prop-types";
import ProfileContainer from '../../containers/ProfileContainer';
import {
Nav,
Navbar,
Button,
Jumbotron
} from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import './App.css';
class App extends React.Component {
handleSignIn = () => {
this.props.signIn().then(() => {
if (this.props.account) {
this.props.updateAccount(this.props.account);
} else {
if (this.props.error) {
this.props.updateError(this.props.error);
} else {
this.props.updateError({ errorMessage: 'Sign-in failed. Please try again.' });
}
}
});
};
handleSignOut = () => {
this.props.signOut().then(() => {
if (!this.props.account) {
this.props.updateAccount(null);
} else {
if (this.props.error) {
this.props.updateError(this.props.error);
} else {
this.props.updateError({ errorMessage: 'Sign-out failed. Please try again.' });
}
}
});
}
render() {
return (
<div className="app">
<Navbar className="navbar" bg="dark" variant="dark">
<Navbar.Brand href="/">Microsoft identity platform</Navbar.Brand>
<Nav className="mr-auto">
</Nav>
{
this.props.isAuthenticated ?
<Button variant="info" onClick={this.handleSignOut}>Logout</Button>
:
<Button variant="outline-info" onClick={this.handleSignIn}>Login</Button>
}
</Navbar>
{
this.props.isAuthenticated ?
<ProfileContainer
acquireToken={this.props.acquireToken}
updateToken={this.props.updateToken}
/>
:
<Jumbotron className="welcome">
<h1>Azure AD On-Behalf-Of Flow</h1>
<p>A React & Redux single-page application authorizing an ASP.NET Core web API
to call the Microsoft Graph API on-behalf-of a user via Microsoft Graph SDK.</p>
<Button variant="primary"
onClick={() => window.open("https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow", "_blank")}
>Learn More</Button>
</Jumbotron>
}
</div>
);
}
}
App.propTypes = {
account: PropTypes.object,
error: PropTypes.string,
signIn: PropTypes.func.isRequired,
signOut: PropTypes.func.isRequired,
acquireToken: PropTypes.func.isRequired,
}
export default App;
| 33.652174 | 158 | 0.479005 |
b76a9149056c283632137feb0de261434e621ebc | 101 | js | JavaScript | seed.js | willybeans/vault-express | 82cd47dab42b59995ee337ee5d996ed704ff6019 | [
"MIT"
] | null | null | null | seed.js | willybeans/vault-express | 82cd47dab42b59995ee337ee5d996ed704ff6019 | [
"MIT"
] | null | null | null | seed.js | willybeans/vault-express | 82cd47dab42b59995ee337ee5d996ed704ff6019 | [
"MIT"
] | null | null | null | require('dotenv').config();
const db = require('./db/db');
db.seed();
console.log('seed finished');
| 16.833333 | 30 | 0.643564 |
b76adadea4ae928087895985da03609bb79393d7 | 1,468 | js | JavaScript | test/helpers_spec.js | Originate/lodash-match-pattern | 5e197c3974173c60b70ac8b0a2abdcce933f62f8 | [
"MIT"
] | 50 | 2016-06-01T04:50:44.000Z | 2021-12-10T20:53:19.000Z | test/helpers_spec.js | Originate/lodash-match-pattern | 5e197c3974173c60b70ac8b0a2abdcce933f62f8 | [
"MIT"
] | 34 | 2016-06-01T05:35:20.000Z | 2021-11-03T05:50:48.000Z | test/helpers_spec.js | Originate/lodash-match-pattern | 5e197c3974173c60b70ac8b0a2abdcce933f62f8 | [
"MIT"
] | 7 | 2016-06-16T14:39:55.000Z | 2020-01-11T16:28:37.000Z |
'use strict';
var chai = require('chai');
var expect = chai.expect;
var helpers = require('../lib/helpers');
var fillSrcWithVoids = helpers.fillSrcWithVoids;
var fillTargWithVoids = helpers.fillTargWithVoids;
describe('helpers', function () {
describe('fillSrcWithVoids', function () {
var fillSrcTests = [
'{targ: {a: 2, b: 2}, src: {a: 1}, result: {a: 1, b: undefined}}',
'{targ: {a: 2, b: 2}, src: {a: 1, c: 1}, result: {a: 1, c: 1, b: undefined}}',
'{targ: {a: 2, b: 2, "__MP_subset": ""}, src: {a: 1, c: 1}, result: {a: 1, b: undefined}}'
];
fillSrcTests.forEach(function (test) {
var testData = new Function('return ' + test)();
it(test, function () {
var filled = fillSrcWithVoids(testData.targ, testData.src);
expect(filled).to.deep.equal(testData.result);
});
});
});
describe('fillTargWithVoids', function () {
var fillTargTests = [
'{targ: {a: 2, b: 2}, src: {a: 1}, result: {a: 2, b: 2}}',
'{targ: {a: 2, b: 2}, src: {a: 1, c: 1}, result: {a: 2, c: undefined, b: 2}}',
'{targ: {a: 2, b: 2, "__MP_subset": ""}, src: {a: 1, c: 1}, result: {a: 2, b: 2, c: undefined}}'
];
fillTargTests.forEach(function (test) {
var testData = new Function('return ' + test)();
it(test, function () {
var filled = fillTargWithVoids(testData.targ, testData.src);
expect(filled).to.deep.equal(testData.result);
});
});
});
});
| 33.363636 | 102 | 0.557221 |
b76aee64596b5a5d8d32312429b0109ce0036358 | 103 | js | JavaScript | app/containers/NewCallPage/constants.js | jeggett/call-adviser | 538b4f4222cd917de7acd2a014189136b30490e2 | [
"MIT"
] | null | null | null | app/containers/NewCallPage/constants.js | jeggett/call-adviser | 538b4f4222cd917de7acd2a014189136b30490e2 | [
"MIT"
] | 1 | 2016-06-14T18:33:18.000Z | 2017-02-26T11:38:14.000Z | app/containers/NewCallPage/constants.js | jeggett/call-adviser | 538b4f4222cd917de7acd2a014189136b30490e2 | [
"MIT"
] | null | null | null | /*
*
* NewCallPage constants
*
*/
export const DEFAULT_ACTION = 'app/NewCallPage/DEFAULT_ACTION';
| 12.875 | 63 | 0.708738 |
b76ba46d58793ad444ee1edee988b126ac324d67 | 3,399 | js | JavaScript | js/webGISMaps.js | mtnekros/WebGIS-Assignment-Project | 988fdcf207df4a3be2df4b019f59fde11cfceebd | [
"MIT"
] | 1 | 2019-04-28T15:56:44.000Z | 2019-04-28T15:56:44.000Z | js/webGISMaps.js | mtnekros/WebGIS-App-Project | 988fdcf207df4a3be2df4b019f59fde11cfceebd | [
"MIT"
] | null | null | null | js/webGISMaps.js | mtnekros/WebGIS-App-Project | 988fdcf207df4a3be2df4b019f59fde11cfceebd | [
"MIT"
] | null | null | null | // base osm layer
var osmLayer =new ol.layer.Tile({
title: 'Base Map',
source: new ol.source.OSM(),
type: 'base'
})
// initializing map object
var map = new ol.Map({
target: 'mainMap',
layers: [
osmLayer
],
view: new ol.View({
center: ol.proj.fromLonLat([84.1240, 28.3949]),
zoom: 7
})
});
// bing base map initializing
var bingBase = new ol.layer.Tile({
title: 'BingMaps', // same name as variable
type: 'base',
visible: false,
source: new ol.source.BingMaps({
key: 'AoTlmaazzog43ImdKts9HVztFzUI4PEOT0lmo2V4q7f20rfVorJGAgDREKmfQAgd',
imagerySet: 'AerialWithLabels',
maxZoom: 19
})
});
map.addLayer(bingBase);
// bingBase map toggling functionalities
var bingBaseCheckBox = document.getElementById("bingBaseLayer");
bingBaseCheckBox.addEventListener("change",toggleBaseMap);
function toggleBaseMap()
{
if (bingBaseCheckBox.checked) {
bingBase.setVisible(true);
osmLayer.setVisible(false);
return 1;
}
else
{
osmLayer.setVisible(true);
bingBase.setVisible(false);
return 0;
}
}
// initializing total population layer
var populationLayer = new ol.layer.Image({
visible: true,
source: new ol.source.ImageWMS({
url: 'http://localhost:8080/geoserver/Nepal/wms',
params: {'Layers': 'Nepal:nepal_district'},
serverType: 'geoserver'
})
});
// initializing male population layer
var malePopulationLayer = new ol.layer.Image({
visible: false,
source: new ol.source.ImageWMS({
url: 'http://localhost:8080/geoserver/Nepal/wms',
params: {'Layers' : 'Nepal:MalePopulation'},
serverType: 'geoserver'
})
});
// initializing female population layer
var femalePopulationLayer = new ol.layer.Image({
visible: false,
source: new ol.source.ImageWMS({
url: 'http://localhost:8080/geoserver/Nepal/wms',
params: {'Layers' : 'Nepal:femalePopulation'},
serverType: 'geoserver'
})
});
// initializing administrative layer
var administrativeLayer = new ol.layer.Image({
visible: false,
source: new ol.source.ImageWMS({
url: 'http://localhost:8080/geoserver/Nepal/wms',
params: {'LAYERS': 'Nepal:municipalities-polygon'},
serverType: 'geoserver'
})
});
// initializing land cover layer
var landCoverLayer = new ol.layer.Image({
visible: false,
source: new ol.source.ImageWMS({
url: 'http://localhost:8080/geoserver/Nepal/wms',
params: {'LAYERS': 'Nepal:geotiff_coverage'},
serverType: 'geoserver'
})
});
// making the list of above layers
layers = {
'totalPopLayerLegend':populationLayer,
'malePopulationLayerLegend':malePopulationLayer,
'femalePopulationLayerLegend':femalePopulationLayer,
'administrativeLayerLegend':administrativeLayer,
'landCoverLayerLegend':landCoverLayer
};
// adding the layers to map using for loop
for (var key in layers)
{
map.addLayer(layers[key]);
}
// initializing checkboxes from the document
$(function (){
$('.layerCheckBox').change(
function() {
var legend = $(this).attr('data-legend')// which is also the key for layers dictionary
if ($(this).is(':checked'))
{
layers[legend].setVisible(true);
hideAllLegendExcept(legend);
}
else
{
layers[legend].setVisible(false);
}
}
)
});
// function to hide all layers
function hideAllLegendExcept(legendToShow)
{
for (var key in layers)
{
$('#'+key).hide();
}
$('#'+legendToShow).slideDown(100);
}
hideAllLegendExcept("totalPopLayerLegend")
| 22.966216 | 89 | 0.698735 |
b76d448120b98de589b97a5471ed18ec125fcca1 | 454 | js | JavaScript | src/components/LectureAddBtn/LectureAddBtn.js | dev-ashishpal/LMS-React | 0b630897e0cac5513a584738db307b84fe1a1f19 | [
"MIT"
] | null | null | null | src/components/LectureAddBtn/LectureAddBtn.js | dev-ashishpal/LMS-React | 0b630897e0cac5513a584738db307b84fe1a1f19 | [
"MIT"
] | null | null | null | src/components/LectureAddBtn/LectureAddBtn.js | dev-ashishpal/LMS-React | 0b630897e0cac5513a584738db307b84fe1a1f19 | [
"MIT"
] | null | null | null | import React from "react";
import classes from "./LectureAddBtn.module.css";
import img from "../../assets/images/plus.svg";
import PropTypes from "prop-types";
const lectureAddBtn = (props) => {
return (
<div className={classes.LectureAddBtn} onClick={props.clicked}>
<figure>
<img src={img} alt="addBtn" />
</figure>
</div>
);
};
lectureAddBtn.propTypes = {
clicked: PropTypes.func,
};
export default lectureAddBtn;
| 22.7 | 67 | 0.660793 |
b76e020eeea82fe954d85a338a3ae55cb5de30a6 | 392 | js | JavaScript | www/js/modules/game/events/pointer/move.js | theprometeus/sidescroller | 69287d69634873d0941cf1ac786dfc16afa4b774 | [
"Unlicense"
] | null | null | null | www/js/modules/game/events/pointer/move.js | theprometeus/sidescroller | 69287d69634873d0941cf1ac786dfc16afa4b774 | [
"Unlicense"
] | null | null | null | www/js/modules/game/events/pointer/move.js | theprometeus/sidescroller | 69287d69634873d0941cf1ac786dfc16afa4b774 | [
"Unlicense"
] | null | null | null | Sidescroller.addEventListener("POINTER_MOVE", function() {
Sidescroller.Game.cursorMarker.x = Sidescroller.Game.layers.ground.getTileX(Sidescroller.Game.input.activePointer.worldX) * Sidescroller.Game.tilemap.tileWidth;
Sidescroller.Game.cursorMarker.y = Sidescroller.Game.layers.ground.getTileY(Sidescroller.Game.input.activePointer.worldY) * Sidescroller.Game.tilemap.tileHeight;
}); | 98 | 166 | 0.82398 |
b76e6534482a3f1ada40c9260906cba8e5037edb | 567 | js | JavaScript | munimap/static/js/admin/group-list-controller.js | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 2 | 2022-02-07T13:20:45.000Z | 2022-02-14T21:40:06.000Z | munimap/static/js/admin/group-list-controller.js | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 4 | 2021-06-17T07:53:53.000Z | 2021-12-17T10:55:48.000Z | munimap/static/js/admin/group-list-controller.js | MrSnyder/bielefeldGEOCLIENT | 17c78b43fc2055d23a1bc4b5091da164756bf767 | [
"Apache-2.0"
] | 2 | 2021-06-01T09:41:55.000Z | 2022-02-14T17:33:33.000Z | angular.module('munimapAdmin')
.controller('GroupListController', ['$scope', '$route', '$routeParams', '$timeout', 'orderByFilter', 'ModelService', function($scope, $route, $routeParams, $timeout, orderBy, ModelService) {
$scope.groups = orderBy(ModelService.groups, 'name');
$scope.setSubpage(undefined);
$scope.removeGroup = function(group) {
ModelService.removeGroup(group)
.then(function() {
$scope.groups = orderBy(ModelService.groups, 'name');
});
};
}]); | 43.615385 | 194 | 0.590829 |
b76e85b0ec684f74950c3110cf43a4e2612d923c | 1,465 | js | JavaScript | test/test_case_3.js | franleplant/require-less | 27fd42fc8bb82625e5b32781853c7de5d806e413 | [
"MIT"
] | 1 | 2016-12-19T13:51:14.000Z | 2016-12-19T13:51:14.000Z | test/test_case_3.js | franleplant/require-less | 27fd42fc8bb82625e5b32781853c7de5d806e413 | [
"MIT"
] | null | null | null | test/test_case_3.js | franleplant/require-less | 27fd42fc8bb82625e5b32781853c7de5d806e413 | [
"MIT"
] | null | null | null | var test = require('tape');
var b = require('browserify');
var fs = require('fs');
var gulp = require('gulp');
var clean = require('gulp-clean');
var gulp_buffer = require('gulp-buffer');
var glob = require('glob');
var entry_file = './test/fixtures/index.js';
var bundle_js = './test/bundle.js';
var bundle_css = './test/bundle.css';
//Partial application
var clean = require('./clean_helper').bind(null, bundle_js, './test/rev-manifest.json');
test('It should allow piping the CSS stream', function (t) {
t.plan(2);
clean()
var rev = require('gulp-rev');
var source = require('vinyl-source-stream');
function browserify_test_cb(bundle) {
t.ok( fs.existsSync(bundle_js) , 'bundle.js should exist');
}
function require_less_test_cb() {
t.ok( fs.existsSync('./test/rev-manifest.json') , 'manifest.json should be created');
//Remove bundle-[md5].js file generated by gulp-rev
glob('./test/bundle*.css', function (err, file_name) {
if (err) { throw err; }
clean(file_name[0]);
});
}
var browserify_opts = {
entries: entry_file
};
var require_less = require('../index.js')({
cb: require_less_test_cb,
pipe: [
source('bundle.css'),
gulp_buffer(),
rev(),
gulp.dest('./test'),
rev.manifest(),
gulp.dest('./test')
]
});
b(browserify_opts)
.transform(require_less)
.bundle(browserify_test_cb)
.pipe(fs.createWriteStream(bundle_js));
});
| 21.865672 | 88 | 0.634812 |
b76eb16cbdca5bf84d0fc93a9961eeb3f8bade35 | 272 | js | JavaScript | src/utils/auto-play/get-speed-factor.js | scaleflex/js-cloudimage-360-view-utils | 90ee7440834cdcbdc971905e222e3d5c93ef4eb7 | [
"MIT"
] | 1 | 2022-03-25T09:34:01.000Z | 2022-03-25T09:34:01.000Z | src/utils/auto-play/get-speed-factor.js | flow-motion/js-cloudimage-360-view | 693cf36d9f82181a89e945d7ba48accdef090af5 | [
"MIT"
] | null | null | null | src/utils/auto-play/get-speed-factor.js | flow-motion/js-cloudimage-360-view | 693cf36d9f82181a89e945d7ba48accdef090af5 | [
"MIT"
] | null | null | null | export const getSpeedFactor = (dragSpeed, amount, containerOffset) => {
const containerOffsetWidth = Math.max(containerOffset, 600);
const speedFactor = (dragSpeed / 150) * (36 / amount) * 25 * (containerOffsetWidth / 1500) || 1;
return Math.floor(speedFactor);
};
| 38.857143 | 98 | 0.713235 |
b76ecae28c97aaf53c4419efa310f5d6d7efd538 | 3,057 | js | JavaScript | athena/queues/private-community-request-sent.js | Weird-Street/spectrum | d63e6af68924ac3d0cdc93760ffc1442c534de5c | [
"BSD-3-Clause"
] | null | null | null | athena/queues/private-community-request-sent.js | Weird-Street/spectrum | d63e6af68924ac3d0cdc93760ffc1442c534de5c | [
"BSD-3-Clause"
] | null | null | null | athena/queues/private-community-request-sent.js | Weird-Street/spectrum | d63e6af68924ac3d0cdc93760ffc1442c534de5c | [
"BSD-3-Clause"
] | null | null | null | // @flow
const debug = require('debug')(
'athena:queue:user-requested-join-private-community'
);
import { getCommunityById } from '../models/community';
import { storeNotification } from '../models/notification';
import { storeUsersNotifications } from 'shared/db/queries/usersNotifications';
import {
getOwnersInCommunity,
getModeratorsInCommunity,
} from '../models/usersCommunities';
import { getUsers } from 'shared/db/queries/user';
import { fetchPayload } from '../utils/payloads';
import isEmail from 'validator/lib/isEmail';
import { sendPrivateCommunityRequestEmailQueue } from 'shared/bull/queues';
import type { Job, PrivateCommunityRequestJobData } from 'shared/bull/types';
import { signCommunity, signUser } from 'shared/imgix';
export default async (job: Job<PrivateCommunityRequestJobData>) => {
const { userId, communityId } = job.data;
debug(
`new request to join a private community from user ${userId} in community ${communityId}`
);
const [actor, context] = await Promise.all([
fetchPayload('USER', userId),
fetchPayload('COMMUNITY', communityId),
]);
const eventType = 'PRIVATE_COMMUNITY_REQUEST_SENT';
// construct a new notification record to either be updated or stored in the db
const nextNotificationRecord = Object.assign(
{},
{
event: eventType,
actors: [actor],
context,
entities: [context],
}
);
// update or store a record in the notifications table, returns a notification
const updatedNotification = await storeNotification(nextNotificationRecord);
// get the owners of the community
const [ownersInCommunity, moderatorsInCommunity] = await Promise.all([
getOwnersInCommunity(communityId),
getModeratorsInCommunity(communityId),
]);
const uniqueRecipientIds = [
...ownersInCommunity,
...moderatorsInCommunity,
].filter((item, i, ar) => ar.indexOf(item) === i);
// get all the user data for the owners
const recipientsWithUserData = await getUsers([...uniqueRecipientIds]);
// only get owners + moderators with emails
const filteredRecipients = recipientsWithUserData.filter(
owner => owner && owner.email && isEmail(owner.email)
);
// for each owner, create a notification for the app
const usersNotificationPromises = filteredRecipients.map(recipient =>
storeUsersNotifications(updatedNotification.id, recipient.id)
);
// for each owner,send an email
const userPayload = JSON.parse(actor.payload);
const community = await getCommunityById(communityId);
const usersEmailPromises = filteredRecipients.map(recipient =>
sendPrivateCommunityRequestEmailQueue.add({
// $FlowFixMe
user: signUser(userPayload),
// $FlowFixMe
recipient: signUser(recipient),
community: signCommunity(community),
})
);
return Promise.all([
usersEmailPromises, // handle emails separately
usersNotificationPromises, // update or store usersNotifications in-app
]).catch(err => {
console.error('❌ Error in job:\n');
console.error(err);
});
};
| 33.593407 | 93 | 0.719987 |
b76f061cd8877a6bcfa7c04a802b7a6e42bf8ba9 | 27,731 | js | JavaScript | server/routes/admin_intersections.js | alexmiller522/Truth-Loop | 562b4c45cfa4bfc472ef010a7c1f9ddc6fc7a2f9 | [
"Apache-2.0"
] | null | null | null | server/routes/admin_intersections.js | alexmiller522/Truth-Loop | 562b4c45cfa4bfc472ef010a7c1f9ddc6fc7a2f9 | [
"Apache-2.0"
] | null | null | null | server/routes/admin_intersections.js | alexmiller522/Truth-Loop | 562b4c45cfa4bfc472ef010a7c1f9ddc6fc7a2f9 | [
"Apache-2.0"
] | null | null | null | const logger = require('../logger').logger
const adminIntersectionsDB = require('../db/admin_intersections')
var express = require('express')
var router = express.Router()
/**
* @api [delete] /api/v1/adminIntersections/category/{artifactId}/{categoryId}
* summary: Delete a single intersection between an artifact and a category
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: categoryId
* schema:
* type: integer
* description: The category ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/category/:artifactId/:categoryId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
const categoryId = parseInt(request.params.categoryId)
adminIntersectionsDB.removeSingleCategoryIntersection(
artifactId,
categoryId,
(error, results) => {
if (error) {
logger.error(
'failed to remove category intersection between artifact %d and category %d: %s',
artifactId,
categoryId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [delete] /api/v1/adminIntersections/category/{artifactId}
* summary: Delete all category intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/category/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllCategoryIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all category intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/category/{artifactId}/{categoryId}
* summary: Create an association between an artifact and a category
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: categoryId
* schema:
* type: integer
* description: The category ID
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post('/category/:artifactId/:categoryId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
const categoryId = parseInt(request.params.categoryId)
adminIntersectionsDB.addCategoryIntersection(
artifactId,
categoryId,
(error, results) => {
if (error) {
logger.error(
'failed to add category intersection between artifact %d and category %d: %s',
artifactId,
categoryId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
})
// GEOSPATIAL DEFINITION ------------------------
/**
* @api [delete] /api/v1/adminIntersections/geospatialDefinition/{artifactId}/{geospatialDefinitionId}
* summary: Delete a single intersection between an artifact and a geospatial definition
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: geospatialDefinitionId
* schema:
* type: integer
* description: The geospatial definition ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete(
'/geospatialDefinition/:artifactId/:geospatialDefinitionId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const geoDefId = parseInt(request.params.geospatialDefinitionId)
adminIntersectionsDB.removeSingleGeoDefIntersection(
artifactId,
geoDefId,
(error, results) => {
if (error) {
logger.error(
'failed to remove geospatial definition intersection between artifact %d and geoDef %d: %s',
artifactId,
geoDefId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
}
)
/**
* @api [delete] /api/v1/adminIntersections/geospatialDefinition/{artifactId}
* summary: Delete all geospatial definition intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/geospatialDefinition/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllGeoDefIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all geospatial definition intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/geospatialDefinition/{artifactId}/{geospatialDefinitionId}
* summary: Create an association between an artifact and a geospatial definition
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: geospatialDefinitionId
* schema:
* type: integer
* description: The geospatial definition ID
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post(
'/geospatialDefinition/:artifactId/:geospatialDefinitionId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const geoDefId = parseInt(request.params.geospatialDefinitionId)
adminIntersectionsDB.addGeoDefIntersection(
artifactId,
geoDefId,
(error, results) => {
if (error) {
logger.error(
'failed to add geospatial definition intersection between artifact %d and geoDef %d: %s',
artifactId,
geoDefId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
}
)
// OFFICIAL ------------------------
/**
* @api [delete] /api/v1/adminIntersections/official/{artifactId}/{officialId}
* summary: Delete a single intersection between an artifact and an official
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: officialId
* schema:
* type: integer
* description: The official ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/official/:artifactId/:officialId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
const officialId = parseInt(request.params.officialId)
adminIntersectionsDB.removeSingleOfficialIntersection(
artifactId,
officialId,
(error, results) => {
if (error) {
logger.error(
'failed to remove official intersection between artifact %d and official %d: %s',
artifactId,
officialId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [delete] /api/v1/adminIntersections/official/{artifactId}
* summary: Delete all official intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/official/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllOfficialIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all official intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/official
* summary: Create an association between an artifact and an official
* tags:
* - Intersections
* parameters:
* - in: body
* schema:
* $ref: "#/components/schemas/ArtifactOfficialIntersection"
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post('/official', (request, response) => {
adminIntersectionsDB.addOfficialIntersection(
request.body,
(error, results) => {
if (error) {
logger.error(
'failed to add official intersection between artifact %d and official %d: %s',
request.body.artifact_id,
request.body.official_id,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
})
// PUBLICATION ------------------------
/**
* @api [delete] /api/v1/adminIntersections/publication/{artifactId}/{publicationId}
* summary: Delete a single intersection between an artifact and a publication
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: publicationId
* schema:
* type: integer
* description: The publication ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete(
'/publication/:artifactId/:publicationId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const publicationId = parseInt(request.params.publicationId)
adminIntersectionsDB.removeSinglePublicationIntersection(
artifactId,
publicationId,
(error, results) => {
if (error) {
logger.error(
'failed to remove publication intersection between artifact %d and publication %d: %s',
artifactId,
publicationId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
}
)
/**
* @api [delete] /api/v1/adminIntersections/publication/{artifactId}
* summary: Delete all publication intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/publication/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllPublicationIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all publication intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/publication/{artifactId}/{publicationId}
* summary: Create an association between an artifact and a publication
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: publicationId
* schema:
* type: integer
* description: The publication ID
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post('/publication/:artifactId/:publicationId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
const publicationId = parseInt(request.params.publicationId)
adminIntersectionsDB.addPublicationIntersection(
artifactId,
publicationId,
(error, results) => {
if (error) {
logger.error(
'failed to add publication intersection between artifact %d and publication %d: %s',
artifactId,
publicationId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
})
// ADVOCACY GROUP ------------------------
/**
* @api [delete] /api/v1/adminIntersections/advocacyGroup/{artifactId}/{advocacyGroupId}
* summary: Delete a single intersection between an artifact and an advocacy group
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: advocacyGroupId
* schema:
* type: integer
* description: The advocacy group ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete(
'/advocacyGroup/:artifactId/:advocacyGroupId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const advocacyGroupId = parseInt(request.params.advocacyGroupId)
adminIntersectionsDB.removeSingleAdvocacyGroupIntersection(
artifactId,
advocacyGroupId,
(error, results) => {
if (error) {
logger.error(
'failed to remove advocacy group intersection between artifact %d and advocacy group %d: %s',
artifactId,
advocacyGroupId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
}
)
/**
* @api [delete] /api/v1/adminIntersections/advocacyGroup/{artifactId}
* summary: Delete all advocacy group intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/advocacyGroup/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllAdvocacyGroupIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all advocacy group intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/advocacyGroup/{artifactId}/{advocacyGroupId}
* summary: Create an association between an artifact and an advocacy group
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: advocacyGroupId
* schema:
* type: integer
* description: The advocacy group ID
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post(
'/advocacyGroup/:artifactId/:advocacyGroupId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const advocacyGroupId = parseInt(request.params.advocacyGroupId)
adminIntersectionsDB.addAdvocacyGroupIntersection(
artifactId,
advocacyGroupId,
(error, results) => {
if (error) {
logger.error(
'failed to add advocacy group intersection between artifact %d and advocacy group %d: %s',
artifactId,
advocacyGroupId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
}
)
// VIDEO TESTIMONIAL ------------------------
/**
* @api [delete] /api/v1/adminIntersections/videoTestimonial/{artifactId}/{videoTestimonialId}
* summary: Delete a single intersection between an artifact and a video testimonial
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: videoTestimonialId
* schema:
* type: integer
* description: The video testimonial ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete(
'/videoTestimonial/:artifactId/:videoTestimonialId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const videoTestimonialId = parseInt(request.params.videoTestimonialId)
adminIntersectionsDB.removeSingleVideoTestimonialIntersection(
artifactId,
videoTestimonialId,
(error, results) => {
if (error) {
logger.error(
'failed to remove video testimonial intersection between artifact %d and video testimonial %d: %s',
artifactId,
videoTestimonialId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
}
)
/**
* @api [delete] /api/v1/adminIntersections/videoTestimonial/{artifactId}
* summary: Delete all video testimonial intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/category/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllVideoTestimonialIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all video testimonial intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/videoTestimonial/{artifactId}/{videoTestimonialId}
* summary: Create an association between an artifact and a video testimonial
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: videoTestimonialId
* schema:
* type: integer
* description: The video testimonial ID
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post(
'/videoTestimonial/:artifactId/:videoTestimonialId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const videoTestimonialId = parseInt(request.params.videoTestimonialId)
adminIntersectionsDB.addVideoTestimonialIntersection(
artifactId,
videoTestimonialId,
(error, results) => {
if (error) {
logger.error(
'failed to add video testimonial intersection between artifact %d and video testimonial %d: %s',
artifactId,
videoTestimonialId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
}
)
// RELATED ARTIFACT ------------------------
/**
* @api [delete] /api/v1/adminIntersections/relatedArtifact/{artifactId}/{relatedArtifactId}
* summary: Delete a single intersection between an artifact its related artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: relatedArtifactId
* schema:
* type: integer
* description: The ID of the artifact to which the first artifact is related
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete(
'/relatedArtifact/:artifactId/:relatedArtifactId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const relatedArtifactId = parseInt(request.params.relatedArtifactId)
adminIntersectionsDB.removeSingleRelatedArtifactIntersection(
artifactId,
relatedArtifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove related artifact intersection between artifact %d and related artifact %d: %s',
artifactId,
relatedArtifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
}
)
/**
* @api [delete] /api/v1/adminIntersections/relatedArtifact/{artifactId}
* summary: Delete all related artifact intersections for an artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* responses:
* 200:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.delete('/relatedArtifact/:artifactId', (request, response) => {
const artifactId = parseInt(request.params.artifactId)
adminIntersectionsDB.removeAllRelatedArtifactIntersections(
artifactId,
(error, results) => {
if (error) {
logger.error(
'failed to remove all related artifact intersections for artifact %d: %s',
artifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(200).json({
ok: true,
})
}
}
)
})
/**
* @api [post] /api/v1/adminIntersections/relatedArtifact/{artifactId}/{relatedArtifact}
* summary: Create an association between an artifact and another (related) artifact
* tags:
* - Intersections
* parameters:
* - in: path
* name: artifactId
* schema:
* type: integer
* description: The artifact ID
* - in: path
* name: relatedArtifactId
* schema:
* type: integer
* description: The ID of the artifact being designated as related to the first artifact
* responses:
* 201:
* description: confirmation of success
* content:
* application/json:
* schema:
* $ref: "#/components/schemas/ConfirmationOfSuccess"
*/
router.post(
'/relatedArtifact/:artifactId/:relatedArtifactId',
(request, response) => {
const artifactId = parseInt(request.params.artifactId)
const relatedArtifactId = parseInt(request.params.relatedArtifactId)
adminIntersectionsDB.addRelatedArtifactIntersection(
artifactId,
relatedArtifactId,
(error, results) => {
if (error) {
logger.error(
'failed to add related artifact intersection between artifact %d and related artifact %d: %s',
artifactId,
relatedArtifactId,
error
)
response.status(500).json({
error: 'Internal Server Error',
})
} else {
response.status(201).json({
ok: true,
})
}
}
)
}
)
module.exports = router
| 26.923301 | 111 | 0.594281 |
b76f6d05e8d3a20f74e93ff38087664c28975402 | 2,206 | js | JavaScript | views/comparisons.js | garrlker/regl-site | b0040b974f51b4c541dc38029670d20690db51a4 | [
"MIT"
] | 4 | 2017-12-30T05:06:32.000Z | 2019-02-06T23:58:30.000Z | views/comparisons.js | garrlker/regl-site | b0040b974f51b4c541dc38029670d20690db51a4 | [
"MIT"
] | 8 | 2018-01-18T03:16:01.000Z | 2020-01-21T21:50:54.000Z | views/comparisons.js | garrlker/regl-site | b0040b974f51b4c541dc38029670d20690db51a4 | [
"MIT"
] | 5 | 2018-01-12T15:08:43.000Z | 2019-12-17T03:25:43.000Z | var choo = require('choo')
var back = require('./components/back')
var css = require('dom-css')
var request = require('browser-request')
var hl = require('highlight.js')
module.exports = function (params, state, send) {
function main (code) {
var container = document.createElement('div')
container.id ='text'
container.className = 'code-body'
css(container, {
width: '50%',
height: window.innerHeight,
position: 'fixed',
padding: '30px',
top: '0px',
right: '0px',
fontSize: '80%',
opacity: 0.9,
display: 'inline-block',
overflow: 'scroll',
background: 'rgb(30,30,30)',
fontFamily: '12px Consolas, Courier, monospace'
})
var pre = document.createElement('pre')
var block = document.createElement('code')
container.appendChild(pre)
pre.appendChild(block)
if (code) {
block.innerHTML = hl.highlight('js', code).value
}
return container
}
var examples = ['threejs', 'twgl', 'regl', 'webgl']
var toggles = []
examples.forEach(function (label, i) {
var toggle = document.createElement('div')
toggle.innerHTML = label
toggle.className = 'switch'
css(toggle, {
width: '20%',
height: '40px',
top: i * 80 + 400,
right: '50%',
marginRight: '60px',
background: 'rgb(30,30,30)',
position: 'fixed',
padding: '10px',
paddingLeft: '20px',
fontSize: '175%',
fontFamily: 'klartext_monolight',
cursor: 'pointer'
})
if (label === state.comparisons.selected) {
css(toggle, {opacity: 0.9})
} else {
css(toggle, {opacity: 0.7})
}
toggles.push(toggle)
toggle.onclick = function () {
send('comparisons:select', {payload: label})
}
})
var comparisons = state.comparisons.contents ?
state.comparisons.contents[state.comparisons.selected] :
null
return choo.view`
<main>
<div class='row' id='title'>
<div class='hero-medium'>
<h1 align='right'>comparisons</h1>
</div>
<div class='color-block-medium pink'></div>
</div>
<div>
${main(comparisons)}
${toggles}
</div>
${back()}
</main>`
} | 25.952941 | 60 | 0.586129 |
b76f6e86a5c8d6c37cfee7ed45a79e2fd55b8d9b | 643 | js | JavaScript | src/common/mixin.js | huangjwCode/huangjw-mall | 4049caa43d2af7b579413069a96912a40a0ab67a | [
"MIT"
] | null | null | null | src/common/mixin.js | huangjwCode/huangjw-mall | 4049caa43d2af7b579413069a96912a40a0ab67a | [
"MIT"
] | null | null | null | src/common/mixin.js | huangjwCode/huangjw-mall | 4049caa43d2af7b579413069a96912a40a0ab67a | [
"MIT"
] | null | null | null | /**
* 防抖minxin封装
*/
import { deBounce } from "common/utils.js";
export const itemListenerMinxin = {
data() {
return {
bcFunc: null
};
},
mounted() {
// 防抖
let deBounceRefresh = deBounce(this.$refs.scroll.refresh, 50);
this.bcFunc = () => {
//利用 $bus 事件监听,去刷新 scroll的高度
deBounceRefresh();
};
}
};
/**
* 回到顶部minxin封装
*/
import BackTop from "components/contents/backTop/BackTop.vue";
export const backTopMinxin = {
components: {
BackTop
},
data() {
return {
isShowTop: false
};
},
methods: {
backClick() {
this.$refs.scroll.scrollTo(0, 0);
}
}
};
| 16.075 | 66 | 0.564541 |
b76fc38bf7a8c88e7df75d76fd8c9084b1b5e022 | 1,207 | js | JavaScript | install.js | zhao0/ipapk-Server | 23440ed7f992c7e6245be3d2f28f9ac54b2c8968 | [
"MIT"
] | 306 | 2016-12-07T09:29:34.000Z | 2022-03-01T20:43:56.000Z | install.js | zhao0/ipapk-Server | 23440ed7f992c7e6245be3d2f28f9ac54b2c8968 | [
"MIT"
] | 32 | 2016-12-07T06:06:30.000Z | 2022-03-08T23:12:08.000Z | install.js | zhao0/ipapk-Server | 23440ed7f992c7e6245be3d2f28f9ac54b2c8968 | [
"MIT"
] | 105 | 2016-12-06T08:23:24.000Z | 2021-11-15T18:46:07.000Z | var fs = require('fs');
var os = require('os');
var spawn = require('child_process').spawn;
var base_dir = __dirname;
var pngdefry_src_path = base_dir + "/pngdefry-master";
//Everything seems ok.
//Rename pngdefry path
//Let's configure the tool
try {
process.chdir(pngdefry_src_path);
} catch (err) {
process.exit();
}
var pngdefry_configure_file = "./configure";
var params = [pngdefry_configure_file];
var pngdefry_config = spawn('sh', params);
pngdefry_config.on('exit', function (code, signal) {
if (code != null) {
var pngdefry_make = spawn('make');
pngdefry_make.on('exit', function (code, signal) {
if (code != null) {
var pngdefry_make_install = spawn('make', ['install']);
pngdefry_make_install.on('exit', function (code, signal) {
});
pngdefry_make_install.on("error", function (err) {
console.log(err)
});
}
});
pngdefry_make.on("error", function (err) {
console.log(err)
});
}
});
pngdefry_config.on("error", function (err) {
console.log(err);
});
// process.exit();
| 25.680851 | 74 | 0.568351 |
b76fe9a92757ed6230c617018a6dbf3ca09e4ee7 | 3,408 | js | JavaScript | controllers/usersController.js | smilleeymilleey/EventPlanner | 64f445896b88197059c69aac208a635443c28ad0 | [
"MIT"
] | null | null | null | controllers/usersController.js | smilleeymilleey/EventPlanner | 64f445896b88197059c69aac208a635443c28ad0 | [
"MIT"
] | 29 | 2021-05-20T04:12:45.000Z | 2021-05-25T02:34:49.000Z | controllers/usersController.js | smilleeymilleey/EventPlanner | 64f445896b88197059c69aac208a635443c28ad0 | [
"MIT"
] | 1 | 2021-06-02T00:17:34.000Z | 2021-06-02T00:17:34.000Z | const db = require("../models");
// Calling Schema Event for now
// Defining methods for the usersController
module.exports = {
findAll: function(req, res) {
db.Users
.find(req.query)
.sort({ _id: -1 })
.then(dbUserData => res.json(dbUserData))
.catch(err => res.status(422).json(err));
},
findById: function(req, res) {
db.Users
.findById(req.params.id)
.then(dbUserData => res.json(dbUserData))
.catch(err => res.status(422).json(err));
},
create: function(req, res) {
const newUser = new db.Users (req.body);
newUser
.save()
.then(dbUserData => {
req.session.save(() => {
req.session.user_id = dbUserData._id;
req.session.username = dbUserData.username;
req.session.logged_in = true;
res.json(dbUserData);
})
})
.catch(err => res.status(422).json(err));
},
// router.post('/', async (req, res) => {
// try {
// const userData = await User.create(req.body);
// req.session.save(() => {
// req.session.user_id = userData.id;
// req.session.use_name = userData.username;
// req.session.logged_in = true;
// res.status(200).json(userData);
// });
// } catch (err) {
// res.status(400).json(err);
// }
// });
login: function(req, res) {
db.Users.findOne({ username: req.body.username })
.then ((user) => {
if (!user) {
res
.status(400)
.json({ message: 'Incorrect email or password, please try again' });
return;
}
user.comparePassword(req.body.password, function(err, isMatch) {
if (err) {
console.log("Error logging in.");
res.status(400)
.json({message: "Incorrect username or password, please try again."});
};
if (!isMatch) {
console.log("Incorrect login.");
res.status(400)
.json({ message: "Incorrect username or password, please try again." });
return;
} else {
console.log("Success!");
req.session.save(() => {
req.session.user_id = user._id;
req.session.username = user.username;
req.session.logged_in = true;
})
res.json({ user: user.username,
user_id: user._id,
logged_in: true,
message: 'Welcome! You are logged in as: '+user.username });
}
});
})
// .then (() => {
// console.log("later");
// })
.catch ((err) => {
console.log(err);
res.json({message: "Error: "+err});
})
},
logout: function (req, res) {
if (req.session.logged_in) {
req.session.destroy(() => {
res.status(204).end();
});
} else {
res.status(404).end();
}
},
update: function(req, res) {
db.Users
.findOneAndUpdate({ _id: req.params.id }, req.body)
.then(dbUserData => res.json(dbUserData))
.catch(err => res.status(422).json(err));
},
remove: function(req, res) {
db.Users
.findById({ _id: req.params.id })
.then(dbUserData => dbUserData.remove())
.then(dbUserData => res.json(dbUserData))
.catch(err => res.status(422).json(err));
}
};
| 27.264 | 86 | 0.50939 |
b7709f5bf6773881cf2a7b483c02bd2694f8f81a | 26 | js | JavaScript | src/index.js | lfarrell/basic-template | 6b7ea9f058ff4bde0d9728d0306d1b673d16f532 | [
"MIT"
] | 2 | 2021-04-06T01:00:41.000Z | 2021-04-06T01:00:43.000Z | src/index.js | lfarrell/basic-template | 6b7ea9f058ff4bde0d9728d0306d1b673d16f532 | [
"MIT"
] | 2 | 2021-03-09T09:15:37.000Z | 2021-05-09T08:20:31.000Z | src/index.js | lfarrell/basic-template | 6b7ea9f058ff4bde0d9728d0306d1b673d16f532 | [
"MIT"
] | null | null | null | import * as d3 from 'd3';
| 13 | 25 | 0.615385 |
b7719cfe1354c2966bc0668dc6bf953a643f44da | 8,495 | js | JavaScript | src/components/EmbedPlayer/index.js | jungdaniel/video-streaming-developer-docs | 856b5d257cce1fd30493617ab4b48e46c0c3aba9 | [
"Apache-2.0"
] | 13 | 2020-07-14T12:44:14.000Z | 2022-02-19T01:26:59.000Z | src/components/EmbedPlayer/index.js | jungdaniel/video-streaming-developer-docs | 856b5d257cce1fd30493617ab4b48e46c0c3aba9 | [
"Apache-2.0"
] | 12 | 2020-07-29T14:36:15.000Z | 2022-03-28T14:04:10.000Z | src/components/EmbedPlayer/index.js | jungdaniel/video-streaming-developer-docs | 856b5d257cce1fd30493617ab4b48e46c0c3aba9 | [
"Apache-2.0"
] | 50 | 2020-08-06T19:22:47.000Z | 2022-02-19T01:28:45.000Z | import React, { useEffect, useRef, useState } from 'react';
import cx from 'classnames';
import { Row, Column } from 'gatsby-theme-carbon/src/components/Grid';
import { Loading, Button } from 'carbon-components-react';
import { MediaSwitcher } from './Modules/MediaSwitcher';
import { BasicControls, CustomControls, AdvancedControls, FullScreenControls, MultiControls } from './Controls';
import * as styles from './index.module.scss';
const AVAILABLE_CONTROLS = Object.freeze({
BASIC: 'basic',
ADVANCED: 'advanced',
FULLSCREEN: 'fullscreen',
CUSTOM: 'custom',
MULTI: 'multi',
});
const BasicEmbed = ({ src, controls = [], dynamic = false, withMediaSwitcher = false } = {}) => {
const frame = useRef(null);
const container = useRef(null);
const [ready, setReady] = useState(false);
const [playing, setPlaying] = useState(false);
const [viewer, setViewer] = useState(null);
const [inserted, setInserted] = useState(!dynamic);
const [fullscreen, setFullscreen] = useState(false);
const [qualities, setQualities] = useState([]);
const [duration, setDuration] = useState(0);
const [progress, setProgress] = useState(0);
const [activeLabels, setActiveLabels] = useState([]);
const [embedDuration, setEmbedDuration] = useState(undefined);
const [embedProgress, setEmbedProgress] = useState(undefined);
const [embedContent, setEmbedContent] = useState(undefined);
const [embedViewers, setEmbedViewers] = useState(undefined);
const [embedQuality, setEmbedQuality] = useState(undefined);
const onPlay = () => {
viewer.callMethod('play');
};
const onPause = () => {
viewer.callMethod('pause');
};
const onContentAvailable = () => {
setReady(true);
};
const onLive = () => {
setActiveLabels((prevLabels) => prevLabels.filter((label) => label !== 'OFFLINE').concat('LIVE'));
};
const onOffline = () => {
setActiveLabels((prevLabels) => prevLabels.filter((label) => label !== 'LIVE').concat('OFFLINE'));
};
const onPlaying = (name, status) => {
setActiveLabels((prevLabels) =>
status ? prevLabels.concat('PLAYING') : prevLabels.filter((label) => label !== 'PLAYING'),
);
setPlaying(status);
};
const onFinished = () => {
setActiveLabels((prevLabels) => prevLabels.filter((label) => label !== 'PLAYING').concat('ENDED'));
};
const onQuality = (eventName, newQualities) => {
setQualities(newQualities);
};
const onContent = (eventName, content) => {
setEmbedContent(content);
};
const onDuration = (eventName, newDuration) => {
setDuration(newDuration);
};
const onGetDuration = () => {
viewer.getProperty('duration', (newDuration) => {
setEmbedDuration(newDuration);
});
};
const onGetProgress = () => {
viewer.getProperty('progress', (newProgress) => {
setEmbedProgress(newProgress);
});
};
const onGetViewers = () => {
viewer.getProperty('viewers', (viewers) => {
setEmbedViewers(viewers);
});
};
const onSetVolume = (volume) => {
viewer.callMethod('volume', volume);
};
const onSetSeek = (seek) => {
viewer.callMethod('seek', seek);
};
const onSetQuality = (id) => {
setEmbedQuality(id);
viewer.callMethod('quality', id);
};
const onMediaChange = (type, id) => {
setReady(false);
setPlaying(false);
setQualities([]);
setActiveLabels([]);
setDuration(0);
setProgress(0);
setEmbedDuration(undefined);
setEmbedProgress(undefined);
setEmbedContent(undefined);
setEmbedViewers(undefined);
setEmbedQuality(undefined);
setFullscreen(undefined);
viewer.callMethod('load', type, id);
};
const onFullScreen = () => {
if (document.fullscreenElement) {
document.exitFullscreen();
setFullscreen(false);
} else if (container.current) {
container.current.requestFullscreen();
setFullscreen(true);
}
};
const isLive = () => {
return activeLabels.indexOf('LIVE') !== -1;
};
const hasControl = (conrol) => {
return controls.indexOf(conrol) !== -1;
};
useEffect(() => {
if (!frame.current) {
return;
}
(async function () {
const { default: PlayerAPI } = await import('ibm-video-streaming-web-player-api');
setViewer(new PlayerAPI(frame.current));
})();
}, [frame, inserted]);
useEffect(() => {
if (!viewer) {
return;
}
viewer.addListener('live', onLive);
viewer.addListener('offline', onOffline);
viewer.addListener('playing', onPlaying);
viewer.addListener('finished', onFinished);
viewer.addListener('quality', onQuality);
viewer.addListener('content', onContent);
viewer.addListener('duration', onDuration);
viewer.addListener('contentAvailable', onContentAvailable);
return () => {
if (!viewer) {
return;
}
viewer.removeListener('live', onLive);
viewer.removeListener('offline', onOffline);
viewer.removeListener('playing', onPlaying);
viewer.removeListener('finished', onFinished);
viewer.removeListener('quality', onQuality);
viewer.removeListener('content', onContent);
viewer.removeListener('duration', onDuration);
viewer.removeListener('contentAvailable', onContentAvailable);
};
}, [viewer]);
useEffect(() => {
const interval = setInterval(() => {
if (!viewer || !playing || !hasControl(AVAILABLE_CONTROLS.CUSTOM)) {
return;
}
viewer.getProperty('progress', (prog) => setProgress(prog));
}, 200);
return () => clearInterval(interval);
}, [viewer, playing]);
if (!inserted) {
return <Button onClick={() => setInserted(true)}>Insert embed</Button>;
}
const loadingClasses = cx(styles.loader, {
[styles.active]: !ready,
});
return (
<>
<Row>
<Column colLg={8}>
<div id="Container" ref={container}>
<div className={styles.responsive}>
<iframe
title="Embed"
ref={frame}
src={src}
className={styles.iframe}
allowFullScreen
frameBorder="0"
referrerpolicy="no-referrer-when-downgrade"
/>
<div className={loadingClasses}>
<Loading active={!ready} />
</div>
</div>
{controls && controls.length > 0 && (
<div className={styles.toolbox}>
{hasControl(AVAILABLE_CONTROLS.BASIC) && (
<BasicControls onPlay={onPlay} onPause={onPause} activeLabels={activeLabels} ready={ready} />
)}
{hasControl(AVAILABLE_CONTROLS.MULTI) && <MultiControls onMediaChange={onMediaChange} ready={ready} />}
{hasControl(AVAILABLE_CONTROLS.CUSTOM) && (
<CustomControls
onPlay={onPlay}
onPause={onPause}
onSeek={onSetSeek}
onVolume={onSetVolume}
duration={duration}
progress={progress}
ready={ready}
/>
)}
{hasControl(AVAILABLE_CONTROLS.FULLSCREEN) && (
<FullScreenControls onFullScreen={onFullScreen} fullscreen={fullscreen} ready={ready} />
)}
{hasControl(AVAILABLE_CONTROLS.ADVANCED) && (
<AdvancedControls
onGetDuration={onGetDuration}
onGetProgress={onGetProgress}
onGetViewers={onGetViewers}
onMediaChange={onMediaChange}
onSetSeek={onSetSeek}
onSetVolume={onSetVolume}
onSetQuality={onSetQuality}
embedQuality={embedQuality}
embedViewers={embedViewers}
embedContent={embedContent}
embedDuration={embedDuration}
embedProgress={embedProgress}
qualities={qualities}
isLive={isLive}
ready={ready}
/>
)}
</div>
)}
</div>
</Column>
</Row>
{withMediaSwitcher && (
<Row>
<Column colLg={8}>
<MediaSwitcher onMediaChange={onMediaChange} />
</Column>
</Row>
)}
</>
);
};
export default BasicEmbed;
| 30.339286 | 119 | 0.582813 |
b771e0d0f39ce7f81d2460fc74f33c3ae61657a6 | 588 | js | JavaScript | src/ZodiacPosition.js | KevinMartins367/CircularNatalHoroscopeJS | 715eaa54e401bcafe511afaa44bb5d96c5a2c512 | [
"Unlicense"
] | 95 | 2020-09-14T00:16:18.000Z | 2022-03-31T17:16:50.000Z | src/ZodiacPosition.js | 0xStarcat/WesternHoroscopeJS | 76e150f64a3525797afe5b7ce118c2c63a1d59bd | [
"Unlicense"
] | 26 | 2020-08-24T03:45:51.000Z | 2022-03-16T08:01:11.000Z | src/ZodiacPosition.js | 0xStarcat/WesternHoroscopeJS | 76e150f64a3525797afe5b7ce118c2c63a1d59bd | [
"Unlicense"
] | 30 | 2019-12-30T15:15:48.000Z | 2022-02-07T03:50:16.000Z | import { validateString } from './utilities/validators'
import { decimalDegreesToDMS } from './utilities/math'
import { dmsString } from './utilities/copy'
import { modulo } from './utilities/math'
import { getZodiacSign, applyZodiacOffsetCounter } from './utilities/astrology'
class ZodiacPosition {
constructor({ decimalDegrees=0.00, zodiac='tropical' }={}) {
decimalDegrees = parseFloat(modulo(decimalDegrees, 360).toFixed(4))
this.Sign = getZodiacSign({decimalDegrees: applyZodiacOffsetCounter(decimalDegrees, zodiac), zodiac: zodiac})
}
}
export default ZodiacPosition
| 39.2 | 113 | 0.756803 |
b77343aa67efd8bb2b54e0da38ea845bbe525d71 | 10,811 | js | JavaScript | deps/mozjs/src/tests/ecma/Expressions/11.13.2-3.js | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 2,494 | 2015-02-11T04:34:13.000Z | 2022-03-31T14:21:47.000Z | deps/mozjs/src/tests/ecma/Expressions/11.13.2-3.js | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 685 | 2015-02-11T17:14:26.000Z | 2021-04-13T09:58:39.000Z | deps/mozjs/src/tests/ecma/Expressions/11.13.2-3.js | ktrzeciaknubisa/jxcore-binary-packaging | 5759df084be10a259a4a4f1b38c214c6084a7c0f | [
"Apache-2.0"
] | 442 | 2015-02-12T13:45:46.000Z | 2022-03-21T05:28:05.000Z | /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
File Name: 11.13.2-4.js
ECMA Section: 11.13.2 Compound Assignment: %=
Description:
*= /= %= += -= <<= >>= >>>= &= ^= |=
11.13.2 Compound assignment ( op= )
The production AssignmentExpression :
LeftHandSideExpression @ = AssignmentExpression, where @ represents one of
the operators indicated above, is evaluated as follows:
1. Evaluate LeftHandSideExpression.
2. Call GetValue(Result(1)).
3. Evaluate AssignmentExpression.
4. Call GetValue(Result(3)).
5. Apply operator @ to Result(2) and Result(4).
6. Call PutValue(Result(1), Result(5)).
7. Return Result(5).
Author: christine@netscape.com
Date: 12 november 1997
*/
var SECTION = "11.13.2-3";
var VERSION = "ECMA_1";
startTest();
writeHeaderToLog( SECTION + " Compound Assignment: +=");
// If either operand is NaN, result is NaN
new TestCase( SECTION,
"VAR1 = NaN; VAR2=1; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = Number.NaN; VAR2=1; VAR1 %= VAR2") );
new TestCase( SECTION,
"VAR1 = NaN; VAR2=1; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.NaN; VAR2=1; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = NaN; VAR2=0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = Number.NaN; VAR2=0; VAR1 %= VAR2") );
new TestCase( SECTION,
"VAR1 = NaN; VAR2=0; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.NaN; VAR2=0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 0; VAR2=NaN; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = 0; VAR2=Number.NaN; VAR1 %= VAR2") );
new TestCase( SECTION,
"VAR1 = 0; VAR2=NaN; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = 0; VAR2=Number.NaN; VAR1 %= VAR2; VAR1") );
// if the dividend is infinity or the divisor is zero or both, the result is NaN
new TestCase( SECTION,
"VAR1 = Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = Infinity; VAR2= -Infinity; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 =-Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 =-Infinity; VAR2=-Infinity; VAR1 %= VAR2; VAR1",
Number.NaN,
eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= -Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= -Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = 1; VAR2 = Number.POSITIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = -1; VAR2 = Number.POSITIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= -Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = -1; VAR2 = Number.NEGATIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= -Infinity; VAR2 %= VAR1",
Number.NaN,
eval("VAR1 = 1; VAR2 = Number.NEGATIVE_INFINITY; VAR2 %= VAR1; VAR2") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= 0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = 0; VAR2 = 0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= -0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = 0; VAR2 = -0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= 0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = -0; VAR2 = 0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= -0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = -0; VAR2 = -0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= 0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = 1; VAR2 = 0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= -0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = 1; VAR2 = -0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= 0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = -1; VAR2 = 0; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= -0; VAR1 %= VAR2",
Number.NaN,
eval("VAR1 = -1; VAR2 = -0; VAR1 %= VAR2; VAR1") );
// if the dividend is finite and the divisor is an infinity, the result equals the dividend.
new TestCase( SECTION,
"VAR1 = 0; VAR2= Infinity; VAR1 %= VAR2;VAR1",
0,
eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= Infinity; VAR1 %= VAR2;VAR1",
-0,
eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= -Infinity; VAR1 %= VAR2;VAR1",
-0,
eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= -Infinity; VAR1 %= VAR2;VAR1",
0,
eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= Infinity; VAR1 %= VAR2;VAR1",
1,
eval("VAR1 = 1; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= Infinity; VAR1 %= VAR2;VAR1",
-1,
eval("VAR1 = -1; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -1; VAR2= -Infinity; VAR1 %= VAR2;VAR1",
-1,
eval("VAR1 = -1; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 1; VAR2= -Infinity; VAR1 %= VAR2;VAR1",
1,
eval("VAR1 = 1; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") );
// if the dividend is a zero and the divisor is finite, the result is the same as the dividend
new TestCase( SECTION,
"VAR1 = 0; VAR2= 1; VAR1 %= VAR2; VAR1",
0,
eval("VAR1 = 0; VAR2 = 1; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= 1; VAR1 %= VAR2; VAR1",
-0,
eval("VAR1 = -0; VAR2 = 1; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = -0; VAR2= -1; VAR1 %= VAR2; VAR1",
-0,
eval("VAR1 = -0; VAR2 = -1; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = 0; VAR2= -1; VAR1 %= VAR2; VAR1",
0,
eval("VAR1 = 0; VAR2 = -1; VAR1 %= VAR2; VAR1") );
// string cases
new TestCase( SECTION,
"VAR1 = 1000; VAR2 = '10', VAR1 %= VAR2; VAR1",
0,
eval("VAR1 = 1000; VAR2 = '10', VAR1 %= VAR2; VAR1") );
new TestCase( SECTION,
"VAR1 = '1000'; VAR2 = 10, VAR1 %= VAR2; VAR1",
0,
eval("VAR1 = '1000'; VAR2 = 10, VAR1 %= VAR2; VAR1") );
/*
new TestCase( SECTION, "VAR1 = 10; VAR2 = '0XFF', VAR1 %= VAR2", 2550, eval("VAR1 = 10; VAR2 = '0XFF', VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = '0xFF'; VAR2 = 0xA, VAR1 %= VAR2", 2550, eval("VAR1 = '0XFF'; VAR2 = 0XA, VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = '10'; VAR2 = '255', VAR1 %= VAR2", 2550, eval("VAR1 = '10'; VAR2 = '255', VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = '10'; VAR2 = '0XFF', VAR1 %= VAR2", 2550, eval("VAR1 = '10'; VAR2 = '0XFF', VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = '0xFF'; VAR2 = 0xA, VAR1 %= VAR2", 2550, eval("VAR1 = '0XFF'; VAR2 = 0XA, VAR1 %= VAR2") );
// boolean cases
new TestCase( SECTION, "VAR1 = true; VAR2 = false; VAR1 %= VAR2", 0, eval("VAR1 = true; VAR2 = false; VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = true; VAR2 = true; VAR1 %= VAR2", 1, eval("VAR1 = true; VAR2 = true; VAR1 %= VAR2") );
// object cases
new TestCase( SECTION, "VAR1 = new Boolean(true); VAR2 = 10; VAR1 %= VAR2;VAR1", 10, eval("VAR1 = new Boolean(true); VAR2 = 10; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION, "VAR1 = new Number(11); VAR2 = 10; VAR1 %= VAR2; VAR1", 110, eval("VAR1 = new Number(11); VAR2 = 10; VAR1 %= VAR2; VAR1") );
new TestCase( SECTION, "VAR1 = new Number(11); VAR2 = new Number(10); VAR1 %= VAR2", 110, eval("VAR1 = new Number(11); VAR2 = new Number(10); VAR1 %= VAR2") );
new TestCase( SECTION, "VAR1 = new String('15'); VAR2 = new String('0xF'); VAR1 %= VAR2", 255, eval("VAR1 = String('15'); VAR2 = new String('0xF'); VAR1 %= VAR2") );
*/
test();
| 40.490637 | 178 | 0.502544 |
b77357794e0e4cb7635f9be1a798b432f31d2861 | 1,486 | js | JavaScript | src/adapters/bugsnag.js | dial-once/node-logtify-bugsnag | 907e2f7e12960b8895be869538868293042c4eb0 | [
"MIT"
] | 2 | 2017-05-12T09:29:38.000Z | 2017-09-05T20:30:25.000Z | src/adapters/bugsnag.js | dial-once/node-logtify-bugsnag | 907e2f7e12960b8895be869538868293042c4eb0 | [
"MIT"
] | 8 | 2017-05-30T11:53:17.000Z | 2018-07-02T11:12:50.000Z | src/adapters/bugsnag.js | dial-once/node-logtify-bugsnag | 907e2f7e12960b8895be869538868293042c4eb0 | [
"MIT"
] | null | null | null | const assert = require('assert');
const BugsnagStreamLink = require('../bugsnag-link');
/**
@class Bugsnag
Adapter for the bugsnag subscriber.
Exposes the notify function as if a standard bugsnag module was used
@constructor consumes the instance of a LoggerStream @class
* */
class Bugsnag {
/**
@constructor
Construct an instance of a bugsnag adapter
@param stream {Object} - an instance of a @class LoggerStream
@param settings {Object} - stream settings
* */
constructor(stream, settings) {
assert(stream);
this.settings = settings;
this.Message = stream.Message;
// if notify @function is called, a user probably just wants it to be notified without progressing further along the stream
// that is why we use a seprate instance of a subscriber instead of a loggerStream.bugsnagSubscriber
this.bugsnag = new BugsnagStreamLink(settings);
this.requestHandler = this.bugsnag.notifier ? this.bugsnag.notifier.requestHandler : undefined;
this.errorHandler = this.bugsnag.notifier ? this.bugsnag.notifier.errorHandler : undefined;
}
/**
@function notify
A function to fire a notify request to bugsnag api
@param message {String|Object|Error} - an object to include into a notification
@param metadatas {Object} - metadata to include into the notification
* */
notify(message, ...metadatas) {
this.bugsnag.handle(new this.Message('error', message, ...metadatas));
}
}
module.exports = Bugsnag;
| 37.15 | 127 | 0.723419 |
b77390828f6cce7b5e65f84c4567c5426a27dd1f | 56 | js | JavaScript | resources/assets/js/app/listofvalues/vuex/state.js | szana8/bitbucket-jwt | 1812e0fbad58dc09b0f23beb6114fd7af648c51d | [
"MIT"
] | null | null | null | resources/assets/js/app/listofvalues/vuex/state.js | szana8/bitbucket-jwt | 1812e0fbad58dc09b0f23beb6114fd7af648c51d | [
"MIT"
] | null | null | null | resources/assets/js/app/listofvalues/vuex/state.js | szana8/bitbucket-jwt | 1812e0fbad58dc09b0f23beb6114fd7af648c51d | [
"MIT"
] | null | null | null | /**
*
*/
export default {
listofvalues: {
}
} | 7 | 19 | 0.446429 |
b773d8950d79a1ba0e8508348793a7f1c93dbef7 | 1,320 | js | JavaScript | src/org.js | TangChr/jhub2 | 7a91da6cd64eca8d7e8037295d06075d49766bb7 | [
"MIT"
] | null | null | null | src/org.js | TangChr/jhub2 | 7a91da6cd64eca8d7e8037295d06075d49766bb7 | [
"MIT"
] | null | null | null | src/org.js | TangChr/jhub2 | 7a91da6cd64eca8d7e8037295d06075d49766bb7 | [
"MIT"
] | null | null | null | jhub.userOrgs = function (callback) {
jsonp('https://api.github.com/users/'+this.githubUser+'/orgs', function(result) {
var tmp = [];
for(var i in result.data) {
tmp.push({
id: result.data[i].id,
login: result.data[i].login
});
}
callback(tmp);
});
return this;
};
jhub.org = function (orgName) {
if (!(this instanceof jhub.org)) {
return new jhub.org(orgName);
}
this.orgName = orgName;
};
jhub.org.prototype.get = function (callback) {
jsonp('https://api.github.com/orgs/'+this.orgLogin, function(result) {
var org = {
id: result.data.id,
login: result.data.login,
name: result.data.name,
description: result.data.description,
blog: result.data.blog,
htmlUrl: result.data.html_url,
publicRepos: result.data.public_repos
};
callback(org);
});
return this;
};
jhub.org.prototype.members = function (callback) {
jsonp('https://api.github.com/orgs/'+this.orgName+'/public_members', function(result) {
var users = [];
for(var i in result.data) {
users.push({login: result.data[i].login});
}
callback(users);
});
return this;
}; | 29.333333 | 91 | 0.545455 |
b774a3ba837df4b675f887eb0811d80fcbdaad27 | 1,270 | js | JavaScript | tests/core.proxy.test.js | carabins/alak | c49eb2c78844a0359692e60f256bc1a80020cbef | [
"MIT"
] | 3 | 2020-05-15T10:44:17.000Z | 2021-07-27T15:19:02.000Z | tests/core.proxy.test.js | carabins/alak | c49eb2c78844a0359692e60f256bc1a80020cbef | [
"MIT"
] | 24 | 2020-04-08T22:25:44.000Z | 2022-03-26T09:00:55.000Z | tests/core.proxy.test.js | carabins/alak | c49eb2c78844a0359692e60f256bc1a80020cbef | [
"MIT"
] | null | null | null | const { A } = require('../facade')
const startValue = 'startValue'
const finalValue = 'finalValue'
const beStart = (v) => expect(v).toBe(startValue)
const beFinal = (v) => expect(v).toBe(finalValue)
const neverBe = (v) => expect(v).toThrow
function asyncFn() {
return new Promise((done) => {
setTimeout(() => done(finalValue), 24)
})
}
test('proxyProps ', () => {
let a = A.proxy()
expect(a.id).toBeDefined()
expect(a.uid).toBe(a.id)
a.setId('skill')
a.setName('bob')
expect(a.id).toBe('skill')
expect(a.name).toBe('bob')
a.stateless()
expect(a.isStateless).toBeTruthy()
})
test('async getter', async () => {
let a = A.proxy(startValue)
a.setGetter(asyncFn)
expect(a.isAsync).toBeFalsy()
a()
expect(a.value).toBe(startValue)
expect(a.isAwaiting).toBeTruthy()
await a()
expect(a.isAwaiting).toBeFalsy()
expect(a.value).toBe(finalValue)
})
test('clear', () => {
let a = A.proxy()
a(startValue)
expect(a.isEmpty).toBeFalsy()
a.next(beFinal)
const clearResolver = jest.fn()
a.onClear(clearResolver)
a.clearValue()
a.offClear(clearResolver)
a.clearValue()
expect(a.isEmpty).toBeTruthy()
a.from(A(finalValue)).weak((v) => v)
a.clear()
a(startValue)
expect(clearResolver).toHaveBeenCalledTimes(1)
})
| 23.090909 | 49 | 0.655118 |
b775eeb0079baa584a844e00ed9fef501d689c61 | 1,904 | js | JavaScript | app.js | xouabita/learnpassport | 452f862fad1ea638366caf9e246f464dce13fb52 | [
"MIT"
] | null | null | null | app.js | xouabita/learnpassport | 452f862fad1ea638366caf9e246f464dce13fb52 | [
"MIT"
] | null | null | null | app.js | xouabita/learnpassport | 452f862fad1ea638366caf9e246f464dce13fb52 | [
"MIT"
] | null | null | null | // dependencies
var config = require('./oauth.js')
, path = require('path')
, express = require('express')
, http = require('http')
, mongoose = require('mongoose')
, passport = require('passport')
, LocalStrategy = require('passport-local').Strategy
, FacebookStrategy = require('passport-facebook').Strategy;
// global config
var app = express();
app.set('port', process.env.PORT || 1337);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.set('view options', {layout: false});
app.use(express.favicon());
app.use(express.logger());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('my secret here'));
app.use(express.session());
app.use(passport.initialize());
app.use(passport.session());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
// env config
app.configure('development', function(){
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});
app.configure('production', function(){
app.use(express.errorHandler());
});
// Passport config
var Account = require('./models/account');
passport.use(new LocalStrategy(Account.authenticate()));
passport.serializeUser(Account.serializeUser());
passport.deserializeUser(Account.deserializeUser());
passport.use(new FacebookStrategy({
clientID: config.facebook.clientID,
clientSecret: config.facebook.clientSecret,
callbackURL: config.facebook.callbackURL
},
function(accessToken, refreshToken, profile, done) {
process.nextTick(function() {
return done(null, profile);
});
}));
// mongoose
mongoose.connect('mongodb://localhost/passport_local_mongoose');
// routes
require('./routes')(app);
// run server
app.listen(app.get('port'), function(){
console.log('\nExpress server listening on port ' + app.get('port'));
});
| 29.292308 | 77 | 0.688025 |
b7768e65ba118e361e936e358849f2dfe0602985 | 1,079 | js | JavaScript | assets/turbo/turbo-helper.js | wickedOne/paragin-assignment | ec20008514408e2222f41fbaf69a7abd60d34656 | [
"MIT"
] | null | null | null | assets/turbo/turbo-helper.js | wickedOne/paragin-assignment | ec20008514408e2222f41fbaf69a7abd60d34656 | [
"MIT"
] | null | null | null | assets/turbo/turbo-helper.js | wickedOne/paragin-assignment | ec20008514408e2222f41fbaf69a7abd60d34656 | [
"MIT"
] | null | null | null | import * as Turbo from "@hotwired/turbo";
const TurboHelper = class {
constructor() {
document.addEventListener('turbo:before-fetch-request', (event) => {
this.beforeFetchRequest(event);
});
document.addEventListener('turbo:before-fetch-response', (event) => {
this.beforeFetchResponse(event);
});
}
beforeFetchResponse(event) {
const fetchResponse = event.detail.fetchResponse;
const redirectLocation = fetchResponse.response.headers.get('Turbo-Location');
if (!redirectLocation) {
return;
}
Turbo.visit(redirectLocation);
}
beforeFetchRequest(event) {
const frameId = event.detail.fetchOptions.headers['Turbo-Frame'];
if (!frameId) {
return;
}
const frame = document.getElementById(frameId);
if (!frame || !frame.dataset.turboFormRedirect) {
return;
}
event.detail.fetchOptions.headers['Turbo-Frame-Redirect'] = 1;
}
}
export default new TurboHelper(); | 25.093023 | 86 | 0.60241 |
b776a2cdce8a70fbe1c80d9f6224644836211d9c | 472 | js | JavaScript | highest-scoring-word/solution.js | EmeryP/code-wars | ef7616e51b4331a2ac5d9b02cdfc82d792af6877 | [
"MIT"
] | null | null | null | highest-scoring-word/solution.js | EmeryP/code-wars | ef7616e51b4331a2ac5d9b02cdfc82d792af6877 | [
"MIT"
] | null | null | null | highest-scoring-word/solution.js | EmeryP/code-wars | ef7616e51b4331a2ac5d9b02cdfc82d792af6877 | [
"MIT"
] | null | null | null |
function high(x){
let a = 'abcdefghijklmnopqrstuvwxyz';
var alphabetArr = a.split('');
var arrOfWords = x.split(' ');
var arrOfTotals = [];
for(var i = 0; i < arrOfWords.length; i++){
var count = 0;
for(var j = 0; j < arrOfWords[i].length; j++){
count = count + alphabetArr.indexOf(arrOfWords[i][j]) + 1;
}
arrOfTotals.push(count);
}
var indexOfMax = arrOfTotals.indexOf(Math.max(...arrOfTotals));
return arrOfWords[indexOfMax];
}
| 24.842105 | 65 | 0.622881 |
b776c03564d7142961cbc95011a452166fae3746 | 486 | js | JavaScript | app/routes.js | Raymond-Zhu/music-video-frontend | 7c10e7b7e238b86d2a450869090c6d30bc36be24 | [
"MIT"
] | null | null | null | app/routes.js | Raymond-Zhu/music-video-frontend | 7c10e7b7e238b86d2a450869090c6d30bc36be24 | [
"MIT"
] | 1 | 2016-07-24T13:58:22.000Z | 2016-07-24T13:58:22.000Z | app/routes.js | Raymond-Zhu/music-video-app | 7c10e7b7e238b86d2a450869090c6d30bc36be24 | [
"MIT"
] | null | null | null | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import ArtistPage from './artist/containers/ArtistPage';
import YoutubePage from './youtube/components/YoutubePage';
import TrackPage from './track/containers/TrackPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={ArtistPage} />
<Route path="/youtube" component={YoutubePage} />
<Route path="/track" component={TrackPage} />
</Route>
);
| 32.4 | 59 | 0.711934 |
b777212c6324cad33e2fe484926dee1250650e0d | 1,440 | js | JavaScript | src/updateTexture.js | bbbbx/toy.gl | 4748f09db723f8cf26ee98a3565b36b81b764562 | [
"MIT"
] | 1 | 2022-02-09T12:23:20.000Z | 2022-02-09T12:23:20.000Z | src/updateTexture.js | bbbbx/toy.gl | 4748f09db723f8cf26ee98a3565b36b81b764562 | [
"MIT"
] | null | null | null | src/updateTexture.js | bbbbx/toy.gl | 4748f09db723f8cf26ee98a3565b36b81b764562 | [
"MIT"
] | null | null | null | import defaultValue from "./defaultValue";
/**
* Update texture data.
* @param {WebGLRenderingContext} gl
* @param {WebGLTexture} texture
* @param {Object | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement} source
* @param {Number} source.width
* @param {Number} source.height
* @param {TypedArray} source.arrayBufferView
* @param {Number} [source.level=0]
* @param {Number} [source.internalFormat=gl.RGBA]
* @param {Number} [source.format=gl.RGBA]
* @param {Number} [source.type=gl.UNSIGNED_BYTE]
* @returns {WebGLTexture}
*/
function updateTexture(gl, texture, source) {
gl.activeTexture(gl.TEXTURE0);
gl.bindTexture(gl.TEXTURE_2D, texture);
if (source instanceof HTMLImageElement ||
source instanceof HTMLCanvasElement ||
source instanceof HTMLVideoElement) {
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, videoElem);
} else {
const { width, height, arrayBufferView } = source;
const level = defaultValue(source.level, 0);
const internalFormat = defaultValue(source.internalFormat, gl.RGBA);
const format = defaultValue(source.format, gl.RGBA);
const type = defaultValue(source.internalFormat, gl.UNSIGNED_BYTE);
const border = 0;
gl.texImage2D(gl.TEXTURE_2D, level, internalFormat, width, height, border, format, type, arrayBufferView);
}
gl.bindTexture(gl.TEXTURE_2D, null);
return texture;
}
export default updateTexture;
| 34.285714 | 110 | 0.722917 |
b7778ae719e3146dc348cca424ef8a9374c6aa83 | 72 | js | JavaScript | generators/business/templates/selectors.js | davidhazeland/generator-geminio | 517593e6d7effdd8179a06e2f93a48c74ed5af86 | [
"MIT"
] | null | null | null | generators/business/templates/selectors.js | davidhazeland/generator-geminio | 517593e6d7effdd8179a06e2f93a48c74ed5af86 | [
"MIT"
] | null | null | null | generators/business/templates/selectors.js | davidhazeland/generator-geminio | 517593e6d7effdd8179a06e2f93a48c74ed5af86 | [
"MIT"
] | null | null | null | import {name} from './reducer'
export const get = state => state[name]
| 18 | 39 | 0.680556 |
b777b71661857a302c5d0443209f14ef601b64f1 | 1,361 | js | JavaScript | src/applications/discharge-wizard/tests/e2e/discharge-wizard.cypress.spec.js | bmish/vets-website | 5da47eee70e3c1d35a4e1f72b25e1c47b4fa3879 | [
"CC0-1.0"
] | 241 | 2015-11-12T05:48:25.000Z | 2022-03-24T16:10:53.000Z | src/applications/discharge-wizard/tests/e2e/discharge-wizard.cypress.spec.js | bmish/vets-website | 5da47eee70e3c1d35a4e1f72b25e1c47b4fa3879 | [
"CC0-1.0"
] | 7,794 | 2015-11-11T20:15:51.000Z | 2022-03-31T20:19:59.000Z | src/applications/discharge-wizard/tests/e2e/discharge-wizard.cypress.spec.js | bmish/vets-website | 5da47eee70e3c1d35a4e1f72b25e1c47b4fa3879 | [
"CC0-1.0"
] | 137 | 2015-11-12T14:39:27.000Z | 2022-03-07T19:27:01.000Z | function axeTestPage() {
cy.injectAxe();
cy.axeCheck('main', {
rules: {
'aria-roles': {
enabled: false,
},
},
});
}
describe('functionality of discharge wizard', () => {
it('fill out the form and expect the form to have elements', () => {
// navigate to discharge wizard and make an axe check
// landing page
cy.visit('/discharge-upgrade-instructions/');
axeTestPage();
// questions page | fill out form
cy.get('.main .usa-button-primary').click();
cy.get('input[name="1_branchOfService"]')
.first()
.click();
cy.get('select[name="2_dischargeYear"]').select('2016');
cy.get('input[name="4_reason"]')
.first()
.click();
cy.get('input[name="6_intention"]')
.first()
.click();
cy.get('input[name="7_courtMartial"]')
.first()
.click();
cy.get('input[name="8_prevApplication"]')
.first()
.click();
cy.get('input[name="9_prevApplicationYear"]')
.first()
.click();
cy.get('input[name="12_priorService"]')
.first()
.click();
// a11y check after all elements are visible
axeTestPage();
cy.get('.main .usa-button-primary').click();
// a11y check on results page
axeTestPage();
// open Form download
cy.get('.main .usa-button-primary').click();
});
});
| 21.603175 | 70 | 0.567965 |
b777c5a64c75a81378af42b7bab589bb7c31c2bf | 917 | js | JavaScript | tests/common/string/getShowCounts.test.js | GHBJayce/j-weapons | ea4be9d78f021ced60d85348cbfeba6ab6002293 | [
"MIT"
] | 3 | 2020-06-04T06:44:39.000Z | 2020-11-18T18:41:18.000Z | tests/common/string/getShowCounts.test.js | GHBJayce/j-weapons | ea4be9d78f021ced60d85348cbfeba6ab6002293 | [
"MIT"
] | 1 | 2019-12-25T01:36:45.000Z | 2019-12-25T01:36:45.000Z | tests/common/string/getShowCounts.test.js | GHBJayce/j-weapons | ea4be9d78f021ced60d85348cbfeba6ab6002293 | [
"MIT"
] | null | null | null |
require('../../../src/common/string');
test('getShowCounts', () => {
const str1 = ' ';
expect(str1.getShowCounts()).toEqual({});
const str2 = 'apple';
expect(str2.getShowCounts()).toEqual({
a: 1,
p: 2,
l: 1,
e: 1,
});
const str3 = '`11!@#$%^&*()_+-=aa[]\'\;\\\\,./<>?:"|{}';
expect(str3.getShowCounts()).toEqual({
'`': 1,
1: 2,
'!': 1,
'@': 1,
'#': 1,
'$': 1,
'%': 1,
'^': 1,
'&': 1,
'*': 1,
'(': 1,
')': 1,
'_': 1,
'+': 1,
'-': 1,
'=': 1,
a: 2,
'[': 1,
']': 1,
'\'': 1,
';': 1,
'\\': 2,
',': 1,
'.': 1,
'/': 1,
'<': 1,
'>': 1,
'?': 1,
':': 1,
'"': 1,
'|': 1,
'{': 1,
'}': 1,
});
}); | 16.981481 | 60 | 0.229008 |
b778253bf7621bcd5a3868fc000e862bb421acb9 | 1,885 | js | JavaScript | js/entities/padlock.js | knightburton/themanoeuvre | 1d1ca2e4aa342040b16a0e0d6e3d3da23f8f19e3 | [
"Apache-2.0"
] | 1 | 2017-01-06T15:42:44.000Z | 2017-01-06T15:42:44.000Z | js/entities/padlock.js | knightburton/Platformer | 1d1ca2e4aa342040b16a0e0d6e3d3da23f8f19e3 | [
"Apache-2.0"
] | null | null | null | js/entities/padlock.js | knightburton/Platformer | 1d1ca2e4aa342040b16a0e0d6e3d3da23f8f19e3 | [
"Apache-2.0"
] | null | null | null | /**
* Padlock entitiy.
*/
game.PadlockEntity = me.CollectableEntity.extend({
/**
* Constructor
*/
init(x, y, settings) {
this.color = game.parseColor(settings.color);
this.doorNumber = settings.doorNumber;
this.name = 'padlock';
settings.image = 'padlocks';
settings.framewidth = 32;
settings.frameheight = 32;
// Set the renderable position to center.
settings.anchorPoint = new me.Vector2d(0.5, 0.5);
settings.shapes = [new me.Rect(6, 4, 20, 24)];
// Call the super constructor.
this._super(me.CollectableEntity, 'init', [x, y, settings]);
this.body.collisionType = me.collision.types.ACTION_OBJECT;
// Calculate the correct frame line.
this.numberOfFrames = 6;
this.animationLine = this.numberOfFrames * this.color;
// add an idle animation.
this.renderable.addAnimation('idle', [
0 + this.animationLine,
1 + this.animationLine,
2 + this.animationLine,
3 + this.animationLine,
4 + this.animationLine,
5 + this.animationLine,
], 200);
// set the default animation.
this.renderable.setCurrentAnimation('idle');
},
/**
* Open the padlock and remove from the world.
*/
open() {
const index = game.data.obtainedKeys.indexOf(this.color);
if (index > -1) {
// Remove the key from the stash.
game.data.obtainedKeys.splice(index, 1);
this.renderable.flicker(300, () => {
// Remove the padlock from the map.
me.game.world.removeChild(this);
// Open the proper door.
for (const door of game.doors) {
if (door.doorNumber === this.doorNumber) {
door.open(this.color);
break;
}
}
});
return true;
}
return false;
},
/**
* Collision handling.
*/
onCollision(response, other) {
return false;
},
});
| 24.480519 | 64 | 0.603714 |
b77996e293e3c5f48601b68bb0befe886274871c | 296 | js | JavaScript | src/doc/html/search/functions_3.js | wejick/ignsdk-qt | 5152f3a2f29fc046247a8db768526ad7fbd002f6 | [
"BSD-3-Clause"
] | null | null | null | src/doc/html/search/functions_3.js | wejick/ignsdk-qt | 5152f3a2f29fc046247a8db768526ad7fbd002f6 | [
"BSD-3-Clause"
] | null | null | null | src/doc/html/search/functions_3.js | wejick/ignsdk-qt | 5152f3a2f29fc046247a8db768526ad7fbd002f6 | [
"BSD-3-Clause"
] | null | null | null | var searchData=
[
['fileread',['fileRead',['../classfs.html#a3d159962ee52b310e72abfd24983aabb',1,'fs']]],
['fileremove',['fileRemove',['../classfs.html#a487615943788e2ad877f8cb34b57f732',1,'fs']]],
['filewrite',['fileWrite',['../classfs.html#a3a0ce4b04c726976116b2e1dae2b1b3a',1,'fs']]]
];
| 42.285714 | 93 | 0.702703 |
b779c70e5373c3a50d51f41bda16ba8e0980891f | 2,010 | js | JavaScript | packages/custom/dashboard/public/controllers/modals/broadcast-modal-controller.js | dm-dashboard/dashboard | 1c3e65f3ba26581c656d24675741f85b0f6565a4 | [
"MIT"
] | 11 | 2017-01-23T10:34:12.000Z | 2018-04-24T09:38:46.000Z | packages/custom/dashboard/public/controllers/modals/broadcast-modal-controller.js | dm-dashboard/dashboard | 1c3e65f3ba26581c656d24675741f85b0f6565a4 | [
"MIT"
] | 2 | 2017-01-23T18:33:45.000Z | 2017-01-24T06:24:32.000Z | packages/custom/dashboard/public/controllers/modals/broadcast-modal-controller.js | dm-dashboard/dashboard | 1c3e65f3ba26581c656d24675741f85b0f6565a4 | [
"MIT"
] | null | null | null | (function () {
'use strict';
angular.module('mean.dashboard')
.controller('BroadcastModalController', BroadcastModalController);
BroadcastModalController.$inject = ['$q', '$scope', '$modalInstance', 'clients', 'dashboards', 'edit'];
function BroadcastModalController($q, $scope, $modalInstance, clients, dashboards, edit) {
var modal = this;
var allClientsTag = {
name: 'All Clients',
_id: '__all__'
};
modal.dateOptions = {};
modal.clients = clients;
modal.dashboards = dashboards;
modal.broadcast = angular.copy(edit);
modal.ok = ok;
modal.cancel = cancel;
modal.open = open;
modal.getClients = getClients;
activate();
///////////////////////////////////////
function activate() {
if (modal.broadcast.allClients) {
modal.broadcast.clients = [allClientsTag];
} else {
angular.forEach(modal.broadcast.clients, function (client) {
client.name = modal.clients.filter(function (fullClientDetails) {
return fullClientDetails.ip = client.ip;
})[0].name;
});
}
}
function ok() {
$modalInstance.close(modal.broadcast);
};
function cancel() {
$modalInstance.dismiss();
};
function open($event, time) {
$event.preventDefault();
$event.stopPropagation();
modal[time + 'Opened'] = true;
};
function getClients(query) {
var deferred = $q.defer();
var result = modal.clients.filter(function (client) {
return client.name.toLowerCase().indexOf(query.toLowerCase()) === 0;
});
result.unshift(allClientsTag);
deferred.resolve(result);
return deferred.promise;
}
}
})();
| 28.309859 | 107 | 0.512935 |
b77b76e94a79c5a3bcc74b16002c3f94629cb91b | 387 | js | JavaScript | public/admins/role/add/add.js | kinryuu92/manage-shopping | 8189115c2870c5a55096308f94b73cd3038cfba3 | [
"MIT"
] | null | null | null | public/admins/role/add/add.js | kinryuu92/manage-shopping | 8189115c2870c5a55096308f94b73cd3038cfba3 | [
"MIT"
] | null | null | null | public/admins/role/add/add.js | kinryuu92/manage-shopping | 8189115c2870c5a55096308f94b73cd3038cfba3 | [
"MIT"
] | null | null | null | $('.checkbox_parent').on('click', function () {
$(this).parents('.border-primary').find('.checkbox_childrent').prop('checked', $(this).prop('checked'));
});
$('.checkall').on('click', function () {
$(this).parents().find('.checkbox_childrent').prop('checked', $(this).prop('checked'));
$(this).parents().find('.checkbox_parent').prop('checked', $(this).prop('checked'));
})
| 43 | 108 | 0.620155 |
b77c2273816cad1aee2ea6abca62fc5d4951842f | 42,681 | js | JavaScript | test/js/structured-query-parser-tests.js | ryangrimm/Corona | 2b9ffcd41fc66b35e0c6956a4c9f38d511551940 | [
"Apache-2.0"
] | 1 | 2016-09-12T02:53:27.000Z | 2016-09-12T02:53:27.000Z | test/js/structured-query-parser-tests.js | ryangrimm/Corona | 2b9ffcd41fc66b35e0c6956a4c9f38d511551940 | [
"Apache-2.0"
] | null | null | null | test/js/structured-query-parser-tests.js | ryangrimm/Corona | 2b9ffcd41fc66b35e0c6956a4c9f38d511551940 | [
"Apache-2.0"
] | null | null | null | if(typeof corona == "undefined" || !corona) {
corona = {};
corona.stash = {};
}
corona.queries = [
/* Contains */
{
"query": {
"key": "foo",
"contains": "bar"
},
"xmlQuery": '<constraint><key>foo</key><contains>bar</contains></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-word-query>',
"purpose": "Simple JSON contains query"
},
{
"query": {
"element": "foo",
"contains": "bar"
},
"xmlQuery": '<constraint><element>foo</element><contains>bar</contains></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-word-query>',
"purpose": "Simple XML element contains query"
},
{
"query": {
"element": "testns:foo",
"contains": "bar"
},
"xmlQuery": '<constraint><element>testns:foo</element><contains>bar</contains></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:testns="http://test.ns/uri">testns:foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-word-query>',
"purpose": "Simple XML namespaced element contains query"
},
{
"query": {
"element": "foo",
"attribute": "bar",
"contains": "baz"
},
"xmlQuery": '<constraint><element>foo</element><attribute>bar</attribute><contains>baz</contains></constraint>',
"result": '<cts:element-attribute-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:attribute>bar</cts:attribute> <cts:text xml:lang="en">baz</cts:text></cts:element-attribute-word-query>',
"purpose": "Simple XML namespaced element/attribute contains query"
},
{
"query": {
"key": "foo",
"contains": "bar",
"caseSensitive": true,
"diacriticSensitive": true,
"punctuationSensitve": true,
"whitespaceSensitive": true,
"stemmed": false,
"wildcarded": true,
"weight": 10
},
"xmlQuery": '<constraint><key>foo</key><contains>bar</contains><caseSensitive>true</caseSensitive><diacriticSensitive>true</diacriticSensitive><punctuationSensitve>true</punctuationSensitve><whitespaceSensitive>true</whitespaceSensitive><stemmed>false</stemmed><wildcarded>true</wildcarded><weight>10</weight></constraint>',
"result": '<cts:element-word-query weight="10" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> <cts:option>case-sensitive</cts:option> <cts:option>diacritic-sensitive</cts:option> <cts:option>punctuation-sensitive</cts:option> <cts:option>whitespace-sensitive</cts:option> <cts:option>unstemmed</cts:option> <cts:option>wildcarded</cts:option></cts:element-word-query>',
"purpose": "Extract word options"
},
{
"query": {
"key": "foo",
"contains": ["bar", "baz"]
},
"xmlQuery": '<constraint><key>foo</key><contains><value>bar</value><value>baz</value></contains></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> <cts:text xml:lang="en">baz</cts:text></cts:element-word-query>',
"purpose": "Value as an array"
},
/* Equals */
{
"query": {
"key": "foo",
"equals": "bar"
},
"xmlQuery": '<constraint><key>foo</key><equals>bar</equals></constraint>',
"result": '<cts:element-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-value-query>',
"purpose": "Simple JSON equals query (string)"
},
{
"query": {
"key": "foo",
"equals": true
},
"xmlQuery": '<constraint><key>foo</key><equals type="boolean">true</equals></constraint>',
"result": '<cts:element-attribute-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:attribute>boolean</cts:attribute> <cts:text xml:lang="en">true</cts:text></cts:element-attribute-value-query>',
"purpose": "Simple JSON equals query (boolean)"
},
{
"query": {
"key": "foo",
"equals": 10
},
"xmlQuery": '<constraint><key>foo</key><equals type="number">10</equals></constraint>',
"result": '<cts:element-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">10</cts:text></cts:element-value-query>',
"purpose": "Simple JSON equals query (number)"
},
{
"query": {
"key": "foo::date",
"equals": "November 10th, 1980"
},
"result": '<cts:element-attribute-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:text xml:lang="en">1980-11-10T00:00:00</cts:text></cts:element-attribute-value-query>',
"purpose": "Simple JSON equals query (date)"
},
{
"query": {
"element": "foo",
"equals": "bar"
},
"xmlQuery": '<constraint><element>foo</element><equals>bar</equals></constraint>',
"result": '<cts:element-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-value-query>',
"purpose": "Simple XML element equals query"
},
{
"query": {
"element": "testns:foo",
"equals": "bar"
},
"xmlQuery": '<constraint><element>testns:foo</element><equals>bar</equals></constraint>',
"result": '<cts:element-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:testns="http://test.ns/uri">testns:foo</cts:element> <cts:text xml:lang="en">bar</cts:text></cts:element-value-query>',
"purpose": "Simple XML namespaced element equals query"
},
{
"query": {
"element": "foo",
"attribute": "bar",
"equals": "baz"
},
"xmlQuery": '<constraint><element>foo</element><attribute>bar</attribute><equals>baz</equals></constraint>',
"result": '<cts:element-attribute-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:attribute>bar</cts:attribute> <cts:text xml:lang="en">baz</cts:text></cts:element-attribute-value-query>',
"purpose": "Simple XML attribute equals query"
},
/* WordAnywhere */
{
"query": { "wordAnywhere": "foo" },
"xmlQuery": '<constraint><wordAnywhere>foo</wordAnywhere></constraint>',
"result": '<cts:word-query xmlns:cts="http://marklogic.com/cts"> <cts:text xml:lang="en">foo</cts:text></cts:word-query>',
"purpose": "Simple wordAnywhere query"
},
{
"query": { "wordAnywhere": ["foo", "bar"] },
"xmlQuery": '<constraint><wordAnywhere><value>foo</value><value>bar</value></wordAnywhere></constraint>',
"result": '<cts:word-query xmlns:cts="http://marklogic.com/cts"> <cts:text xml:lang="en">foo</cts:text> <cts:text xml:lang="en">bar</cts:text></cts:word-query>',
"purpose": "wordAnywhere query with array"
},
{
"query": {
"wordAnywhere": "foo",
"weight": 2
},
"xmlQuery": '<constraint><wordAnywhere>foo</wordAnywhere><weight>2</weight></constraint>',
"result": '<cts:word-query weight="2" xmlns:cts="http://marklogic.com/cts"> <cts:text xml:lang="en">foo</cts:text></cts:word-query>',
"purpose": "wordAnywhere query with weight"
},
/* wordInBinary */
{
"query": { "wordInBinary": "foo" },
"xmlQuery": '<constraint><wordInBinary>foo</wordInBinary></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:corona="http://marklogic.com/corona">corona:extractedPara</cts:element> <cts:text xml:lang="en">foo</cts:text></cts:element-word-query>',
"purpose": "Simple wordInBinary query"
},
{
"query": { "wordInBinary": ["foo", "bar"] },
"xmlQuery": '<constraint><wordInBinary><value>foo</value><value>bar</value></wordInBinary></constraint>',
"result": '<cts:element-word-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:corona="http://marklogic.com/corona">corona:extractedPara</cts:element> <cts:text xml:lang="en">foo</cts:text> <cts:text xml:lang="en">bar</cts:text></cts:element-word-query>',
"purpose": "wordInBinary query with array"
},
{
"query": {
"wordInBinary": "foo",
"weight": 2
},
"xmlQuery": '<constraint><wordInBinary>foo</wordInBinary><weight>2</weight></constraint>',
"result": '<cts:element-word-query weight="2" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:corona="http://marklogic.com/corona">corona:extractedPara</cts:element> <cts:text xml:lang="en">foo</cts:text></cts:element-word-query>',
"purpose": "wordInBinary query with weight"
},
/* inTextDocument */
{
"query": { "inTextDocument": "foo" },
"xmlQuery": '<constraint><inTextDocument>foo</inTextDocument></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:term-query> <cts:key>2328177500544466626</cts:key> </cts:term-query> <cts:word-query> <cts:text xml:lang="en">foo</cts:text> </cts:word-query></cts:and-query>',
"purpose": "Simple inTextDocument query"
},
{
"query": { "inTextDocument": ["foo", "bar"] },
"xmlQuery": '<constraint><inTextDocument><value>foo</value><value>bar</value></inTextDocument></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:term-query> <cts:key>2328177500544466626</cts:key> </cts:term-query> <cts:word-query> <cts:text xml:lang="en">foo</cts:text> <cts:text xml:lang="en">bar</cts:text> </cts:word-query></cts:and-query>',
"purpose": "inTextDocument query with array"
},
{
"query": {
"inTextDocument": "foo",
"weight": 2
},
"xmlQuery": '<constraint><inTextDocument>foo</inTextDocument><weight>2</weight></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:term-query> <cts:key>2328177500544466626</cts:key> </cts:term-query> <cts:word-query weight="2"> <cts:text xml:lang="en">foo</cts:text> </cts:word-query></cts:and-query>',
"purpose": "inTextDocument query with weight"
},
/* contentType */
{
"query": {
"contentType": "json"
},
"xmlQuery": '<constraint><contentType>json</contentType></constraint>',
"result": '<cts:term-query xmlns:cts="http://marklogic.com/cts"> <cts:key>13332737702526692693</cts:key></cts:term-query>',
"purpose": "contentType json"
},
{
"query": {
"contentType": "text"
},
"xmlQuery": '<constraint><contentType>text</contentType></constraint>',
"result": '<cts:term-query xmlns:cts="http://marklogic.com/cts"> <cts:key>2328177500544466626</cts:key></cts:term-query>',
"purpose": "contentType text"
},
{
"query": {
"contentType": "binary"
},
"xmlQuery": '<constraint><contentType>binary</contentType></constraint>',
"result": '<cts:term-query xmlns:cts="http://marklogic.com/cts"> <cts:key>7908746777995149422</cts:key></cts:term-query>',
"purpose": "contentType binary"
},
/* And */
{
"query": { "and": [
{
"key": "foo",
"equals": "bar"
},
{
"key": "foo",
"equals": "baz"
}
]},
"xmlQuery": '<and><constraint><key>foo</key><equals>bar</equals></constraint><constraint><key>foo</key><equals>baz</equals></constraint></and>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">baz</cts:text> </cts:element-value-query></cts:and-query>',
"purpose": "And query"
},
/* Or */
{
"query": { "or": [
{
"key": "foo",
"equals": "bar"
},
{
"key": "foo",
"equals": "baz"
}
]},
"xmlQuery": '<or><constraint><key>foo</key><equals>bar</equals></constraint><constraint><key>foo</key><equals>baz</equals></constraint></or>',
"result": '<cts:or-query xmlns:cts="http://marklogic.com/cts"> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">baz</cts:text> </cts:element-value-query></cts:or-query>',
"purpose": "Or query"
},
/* Not */
{
"query": { "not":
{
"key": "foo",
"equals": "bar"
}
},
"xmlQuery": '<not><constraint><key>foo</key><equals>bar</equals></constraint></not>',
"result": '<cts:not-query xmlns:cts="http://marklogic.com/cts"> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query></cts:not-query>',
"purpose": "Not query"
},
/* And Not */
{
"query": { "andNot": {
"positive": {
"key": "foo",
"equals": "bar"
},
"negative": {
"key": "foo",
"equals": "baz"
}
}},
"xmlQuery": '<andNot><positive><constraint><key>foo</key><equals>bar</equals></constraint></positive><negative><constraint><key>foo</key><equals>baz</equals></constraint></negative></andNot>',
"result": '<cts:and-not-query xmlns:cts="http://marklogic.com/cts"> <cts:positive> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query> </cts:positive> <cts:negative> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">baz</cts:text> </cts:element-value-query> </cts:negative></cts:and-not-query>',
"purpose": "And not query"
},
/* Near */
{
"query": {
"near": [
{
"key": "foo",
"equals": "bar"
},
{
"key": "foo",
"equals": "baz"
}
],
"ordered": true,
"distance": 15,
"weight": 2
},
"xmlQuery": '<constraint><near><constraint><key>foo</key><equals>bar</equals></constraint><constraint><key>foo</key><equals>baz</equals></constraint></near><ordered>true</ordered><distance>15</distance><weight>2</weight></constraint>',
"result": '<cts:near-query weight="2" distance="15" xmlns:cts="http://marklogic.com/cts"> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query> <cts:element-value-query> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:text xml:lang="en">baz</cts:text> </cts:element-value-query> <cts:option>ordered</cts:option></cts:near-query>',
"purpose": "Near query"
},
/* isNULL */
{
"query": { "isNULL": "foo" },
"xmlQuery": '<isNULL>foo</isNULL>',
"result": '<cts:element-attribute-value-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:attribute>type</cts:attribute> <cts:text xml:lang="en">null</cts:text></cts:element-attribute-value-query>',
"purpose": "isNULL query"
},
/* keyExists */
{
"query": { "keyExists": "foo" },
"xmlQuery": '<keyExists>foo</keyExists>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:and-query/></cts:element-query>',
"purpose": "keyExists query"
},
/* elementExists */
{
"query": { "elementExists": "foo" },
"xmlQuery": '<elementExists>foo</elementExists>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:and-query/></cts:element-query>',
"purpose": "elementExists query"
},
/* Collection */
{
"query": { "collection": "foo" },
"xmlQuery": '<collection>foo</collection>',
"result": '<cts:collection-query xmlns:cts="http://marklogic.com/cts"> <cts:uri>foo</cts:uri></cts:collection-query>',
"purpose": "Collection query"
},
{
"query": { "collection": ["foo", "bar"] },
"xmlQuery": '<collection><value>foo</value><value>bar</value></collection>',
"result": '<cts:collection-query xmlns:cts="http://marklogic.com/cts"> <cts:uri>foo</cts:uri> <cts:uri>bar</cts:uri></cts:collection-query>',
"purpose": "Collection query with an array of values"
},
/* Directory */
{
"query": { "directory": "/foo" },
"xmlQuery": '<constraint><directory>/foo</directory></constraint>',
"result": '<cts:directory-query xmlns:cts="http://marklogic.com/cts"> <cts:uri>/foo</cts:uri></cts:directory-query>',
"purpose": "Directory query"
},
{
"query": { "directory": "/foo", "descendants": true},
"xmlQuery": '<constraint><directory>/foo</directory><descendants>true</descendants></constraint>',
"result": '<cts:directory-query depth="infinity" xmlns:cts="http://marklogic.com/cts"> <cts:uri>/foo</cts:uri></cts:directory-query>',
"purpose": "Directory query with a depth"
},
/* Properties */
{
"query": {
"property": "foo",
"equals": "bar"
},
"xmlQuery": '<constraint><property>foo</property><equals>bar</equals></constraint>',
"result": '<cts:properties-query xmlns:cts="http://marklogic.com/cts"> <cts:element-value-query> <cts:element xmlns:corona="http://marklogic.com/corona">corona:foo</cts:element> <cts:text xml:lang="en">bar</cts:text> </cts:element-value-query></cts:properties-query>',
"purpose": "Property query"
},
/* Places */
{
"query": {
"place": "place1",
"contains": "bar"
},
"xmlQuery": '<constraint><place>place1</place><equals>bar</equals></constraint>',
"result": '<cts:field-word-query xmlns:cts="http://marklogic.com/cts"> <cts:field>corona-field-place1</cts:field> <cts:text xml:lang="en">bar</cts:text></cts:field-word-query>',
"purpose": "Place query"
},
/* UnderKey */
{
"query": {
"underKey": "foo",
"query": "bar"
},
"xmlQuery": '<constraint><underKey>foo</underKey><query>bar</query></constraint>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:word-query> <cts:text xml:lang="en">bar</cts:text> </cts:word-query></cts:element-query>',
"purpose": "underKey query"
},
{
"query": {
"underKey": "foo",
"query": {
"wordAnywhere": "bar"
}
},
"xmlQuery": '<constraint><underKey>foo</underKey><query><constraint><wordAnywhere>bar</wordAnywhere></constraint></query></constraint>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:foo</cts:element> <cts:word-query> <cts:text xml:lang="en">bar</cts:text> </cts:word-query></cts:element-query>',
"purpose": "underKey complex query"
},
/* UnderElement */
{
"query": {
"underElement": "foo",
"query": "bar"
},
"xmlQuery": '<constraint><underElement>foo</underElement><query>bar</query></constraint>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:word-query> <cts:text xml:lang="en">bar</cts:text> </cts:word-query></cts:element-query>',
"purpose": "underElement query"
},
{
"query": {
"underElement": "foo",
"query": {
"wordAnywhere": "bar"
}
},
"xmlQuery": '<constraint><underElement>foo</underElement><query><constraint><wordAnywhere>bar</wordAnywhere></constraint></query></constraint>',
"result": '<cts:element-query xmlns:cts="http://marklogic.com/cts"> <cts:element>foo</cts:element> <cts:word-query> <cts:text xml:lang="en">bar</cts:text> </cts:word-query></cts:element-query>',
"purpose": "underElement complex query"
},
/* boolean */
{
"query": {
"boolean": true
},
"xmlQuery": '<boolean>true</boolean>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"/>',
"purpose": "boolean true query"
},
{
"query": {
"boolean": false
},
"xmlQuery": '<boolean>false</boolean>',
"result": '<cts:or-query xmlns:cts="http://marklogic.com/cts"/>',
"purpose": "boolean false query"
},
{
"query": {
"namedQuery": "zip:94402"
},
"xmlQuery": '<namedQuery>zip:94402</namedQuery>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:latLongKey</cts:element> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">37.554167,-122.31306</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Named query"
},
/* Range */
{
"query": {
"range": "list",
"value": "foo"
},
"result": '<cts:element-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:list</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">foo</cts:value> <cts:option>collation=http://marklogic.com/collation/codepoint</cts:option></cts:element-range-query>',
"purpose": "Range index with collation"
},
{
"query": {
"range": "range1",
"value": "November 17th 1980"
},
"result": '<cts:element-attribute-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:date1_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1980-11-17T00:00:00</cts:value></cts:element-attribute-range-query>',
"purpose": "JSON date range query"
},
{
"query": {
"range": "range1",
"from": "November 17th 1980",
"to": "November 17th 1981"
},
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:element-attribute-range-query operator=">="> <cts:element xmlns:json="http://marklogic.com/json">json:date1_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1980-11-17T00:00:00</cts:value> </cts:element-attribute-range-query> <cts:element-attribute-range-query operator="<="> <cts:element xmlns:json="http://marklogic.com/json">json:date1_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1981-11-17T00:00:00</cts:value> </cts:element-attribute-range-query></cts:and-query>',
"purpose": "JSON date range query with from and to"
},
{
"query": {
"range": "range2",
"value": "foo"
},
"xmlQuery": '<constraint><range>range2</range><value>foo</value></constraint>',
"result": '<cts:element-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:rangeKey</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">foo</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option></cts:element-range-query>',
"purpose": "JSON string range query"
},
{
"query": {
"range": "range4",
"value": "foo"
},
"xmlQuery": '<constraint><range>range4</range><value>foo</value></constraint>',
"result": '<cts:element-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element>rangeKey</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">foo</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option></cts:element-range-query>',
"purpose": "XML element string range query"
},
{
"query": {
"range": "range5",
"value": "foo"
},
"xmlQuery": '<constraint><range>range5</range><value>foo</value></constraint>',
"result": '<cts:element-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:testns="http://test.ns/uri">testns:rangeEl</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">foo</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option></cts:element-range-query>',
"purpose": "XML namespaced element string range query"
},
{
"query": {
"range": "range6",
"value": "foo"
},
"xmlQuery": '<constraint><range>range6</range><value>foo</value></constraint>',
"result": '<cts:element-attribute-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:testns="http://test.ns/uri">testns:rangeEl</cts:element> <cts:attribute>rangeAttrib</cts:attribute> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">foo</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option></cts:element-attribute-range-query>',
"purpose": "XML namespaced element attribute string range query"
},
{
"query": {
"range": "range7",
"value": "2011-11-22T17:30:00"
},
"xmlQuery": '<constraint><range>range7</range><value>2011-11-22T17:30:00</value></constraint>',
"result": '<cts:element-range-query operator="=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:testns="http://test.ns/uri">testns:rangeEl</cts:element> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2011-11-22T17:30:00</cts:value></cts:element-range-query>',
"purpose": "XML namespaced element dateTime range query"
},
{
"query": {
"range": "range1",
"value": "November 17th 1980",
"operator": "ne"
},
"result": '<cts:element-attribute-range-query operator="!=" xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:date1_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1980-11-17T00:00:00</cts:value></cts:element-attribute-range-query>',
"purpose": "Range query operator override"
},
{
"query": {
"range": "fromBucket",
"bucketLabel": "G-M",
},
"xmlQuery": '<constraint><range>fromBucket</range><bucketLabel>G-M</bucketLabel></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:element-range-query operator=">="> <cts:element xmlns:json="http://marklogic.com/json">json:fromPersonal</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">G</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option> </cts:element-range-query> <cts:element-range-query operator="<"> <cts:element xmlns:json="http://marklogic.com/json">json:fromPersonal</cts:element> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">N</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option> </cts:element-range-query></cts:and-query>',
"purpose": "JSON bucketed range label query"
},
{
"query": {
"range": "fromBucketXML",
"bucketLabel": "G-M",
},
"xmlQuery": '<constraint><range>fromBucketXML</range><bucketLabel>G-M</bucketLabel></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:element-attribute-range-query operator=">="> <cts:element>from</cts:element> <cts:attribute>personal</cts:attribute> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">G</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option> </cts:element-attribute-range-query> <cts:element-attribute-range-query operator="<"> <cts:element>from</cts:element> <cts:attribute>personal</cts:attribute> <cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">N</cts:value> <cts:option>collation=http://marklogic.com/collation/</cts:option> </cts:element-attribute-range-query></cts:and-query>',
"purpose": "XML bucketed range label query"
},
{
"query": {
"range": "messageDate",
"bucketLabel": "Sep 01 2010 - Oct 01 2010",
},
"xmlQuery": '<constraint><range>messageDate</range><bucketLabel>Sep 01 2010 - Oct 01 2010</bucketLabel></constraint>',
"result": '<cts:and-query xmlns:cts="http://marklogic.com/cts"> <cts:element-attribute-range-query operator=">="> <cts:element xmlns:json="http://marklogic.com/json">json:date_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2010-09-01T00:00:00</cts:value> </cts:element-attribute-range-query> <cts:element-attribute-range-query operator="<"> <cts:element xmlns:json="http://marklogic.com/json">json:date_003A_003Adate</cts:element> <cts:attribute>normalized-date</cts:attribute> <cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2010-10-01T00:00:00</cts:value> </cts:element-attribute-range-query></cts:and-query>',
"purpose": "JSON auto bucketed range label query"
},
{
"query": {
"range": "messageDate",
"bucketLabel": "Sep 01 2010 - Oct 01 2010",
},
"ignoreRange": "messageDate",
"result": '',
"purpose": "Ignore range paramater"
},
/* Geo */
{
"query": {
"geo": "geokey",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geokey</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:latLongKey</cts:element> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Geo query with JSON key"
},
{
"query": {
"geo": "geoelement",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geoelement</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element>latLongElement</cts:element> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Geo query with XML element"
},
{
"query": {
"geo": "geochildkey",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geochildkey</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-child-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:parentKey</cts:element> <cts:child xmlns:json="http://marklogic.com/json">json:latLongKey</cts:child> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-child-geospatial-query>',
"purpose": "Geo query with parent and child JSON keys"
},
{
"query": {
"geo": "geochildelement",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geochildelement</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-child-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element>parentElement</cts:element> <cts:child>latLongElement</cts:child> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-child-geospatial-query>',
"purpose": "Geo query with parent and child XML elements"
},
{
"query": {
"geo": "geochildpairkey",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geochildpairkey</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-pair-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:parentKey</cts:element> <cts:latitude xmlns:json="http://marklogic.com/json">json:latKey</cts:latitude> <cts:longitude xmlns:json="http://marklogic.com/json">json:longKey</cts:longitude> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-pair-geospatial-query>',
"purpose": "Geo query with parent, lat and long JSON keys"
},
{
"query": {
"geo": "geochildpairelement",
"region": {
"point": {
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geochildpairelement</geo><region><point><latitude>10</latitude><longitude>-10</longitude></point></region></constraint>',
"result": '<cts:element-pair-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element>parentElement</cts:element> <cts:latitude>latElement</cts:latitude> <cts:longitude>longElement</cts:longitude> <cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-pair-geospatial-query>',
"purpose": "Geo query with parent, lat and long XML elements"
},
{
"query": {
"geo": "geokey",
"region": {
"circle": {
"radius": 15,
"latitude": 10,
"longitude": -10
}
}
},
"xmlQuery": '<constraint><geo>geokey</geo><region><circle><radius>15</radius><latitude>10</latitude><longitude>-10</longitude></circle></region></constraint>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:latLongKey</cts:element> <cts:region xsi:type="cts:circle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">@15 10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Geo circle construction"
},
{
"query": {
"geo": "geokey",
"region": {
"box": {
"north": 1,
"south": -1,
"east": 2,
"west": -2
}
}
},
"xmlQuery": '<constraint><geo>geokey</geo><region><box><radius>15</radius><north>1</north><south>-1</south><east>2</east><west>-2</west></box></region></constraint>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:latLongKey</cts:element> <cts:region xsi:type="cts:box" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">[-1, -2, 1, 2]</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Geo box construction"
},
{
"query": {
"geo": "geokey",
"region": {
"polygon": [
{
"latitude": 10,
"longitude": -10
},
{
"latitude": 11,
"longitude": -9
},
{
"latitude": 12,
"longitude": -8
}
]
}
},
"xmlQuery": '<constraint><geo>geokey</geo><region><polygon><point><latitude>10</latitude><longitude>-10</longitude></point><point><latitude>11</latitude><longitude>-9</longitude></point><point><latitude>12</latitude><longitude>-8</longitude></point></polygon></region></constraint>',
"result": '<cts:element-geospatial-query xmlns:cts="http://marklogic.com/cts"> <cts:element xmlns:json="http://marklogic.com/json">json:latLongKey</cts:element> <cts:region xsi:type="cts:polygon" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">10,-10 11,-9 12,-8 10,-10</cts:region> <cts:option>coordinate-system=wgs84</cts:option></cts:element-geospatial-query>',
"purpose": "Geo polygon construction"
},
];
$(document).ready(function() {
module("Structured Queries");
corona.fetchInfo(function(info) {
if(info.features.JSONDocs) {
corona.runTest("json");
}
corona.runTest("xml");
});
});
corona.runTest = function(mode) {
$(corona.queries).each(function(index, test) {
if(test.xmlQuery === undefined && mode === "xml") {
return;
}
asyncTest(test.purpose, function() {
var data;
if(mode === "json") {
data = {"q": JSON.stringify(test.query)};
}
else {
data = {"q": test.xmlQuery};
}
if(test.ignoreRange !== undefined) {
data.ignoreRange = test.ignoreRange;
}
$.ajax({
url: '/test/xq/parse-structured-query.xqy',
data: data,
success: function(data, t, j) {
if(test.error !== undefined) {
equals(data, test.error, test.purpose);
}
else if(test.result !== undefined) {
equals(data, test.result, test.purpose);
}
},
error: function(j, t, e) {
ok(false, e);
console.log(e);
},
complete: function() { start(); }
});
});
});
};
| 55.501951 | 873 | 0.587662 |
b77ca4a5b8e8ccc2d097863971f906a58c9c6aca | 3,005 | js | JavaScript | apps/figma-broker/functions/file.js | vnys/design-system | f2d7612aff7f5c1e9d882e54c6886a037959874a | [
"MIT"
] | null | null | null | apps/figma-broker/functions/file.js | vnys/design-system | f2d7612aff7f5c1e9d882e54c6886a037959874a | [
"MIT"
] | null | null | null | apps/figma-broker/functions/file.js | vnys/design-system | f2d7612aff7f5c1e9d882e54c6886a037959874a | [
"MIT"
] | null | null | null | import fs from 'fs'
import del from 'del'
import fetch from 'node-fetch'
import R from 'ramda'
import { createFolder } from './folder'
import prettier from 'prettier'
const prettierConfig = fs.readFileSync('./../../.prettierrc.yaml', 'utf8')
const getFilePath = (path, name, ext) => `${path}/${name}.${ext}`
const write = (file, path, name, ext) => {
const filePath = getFilePath(path, name, ext)
fs.writeFile(filePath, file, 'utf-8', (error) => {
if (error) {
throw new Error('Error in write(): ', { error, filePath })
}
})
}
const stream = (url, path, name, ext) =>
fetch(url).then((res) => {
const filePath = getFilePath(path, name, ext)
var file = fs.createWriteStream(filePath)
res.body.pipe(file)
})
export const writeFileStream = (url, path, name, ext) => {
if (url && path && name) {
createFolder(path)
stream(url, path, name, ext)
} else {
throw new Error(
'Missing required parameters to correctly run writeFileStream()!',
)
}
}
export const writeFile = (path, name, ext, file) => {
if (file && path && name && ext) {
createFolder(path)
let value = file
if (ext === 'js' || ext === 'ts') {
const options = prettier.resolveConfig.sync(prettierConfig)
value = prettier.format(file, options)
}
write(value, path, name, ext)
} else {
throw new Error('Missing required parameters to correctly run writeFile()!')
}
}
export const curriedWriteFile = R.curry(writeFile)
export async function readFile(path, name, ext) {
const data = await fs.promises.readFile(getFilePath(path, name, ext), {
encoding: 'utf8',
})
return Promise.resolve(JSON.parse(data))
}
export const readTokens = (path) =>
fs.readdirSync(path).map((fileName) => ({
name: fileName.replace(/.json/, ''),
extension: 'json',
tokens: JSON.parse(fs.readFileSync(`${path}/${fileName}`)),
}))
export const writeResults = (results, savePath, extension = 'json') =>
results.forEach(({ value, name, path = '' }) => {
const writeFileToDisk = curriedWriteFile(
`${savePath}/${path}`,
name,
extension,
)
switch (extension) {
case 'ts':
case 'js':
writeFileToDisk(
`export const ${name} = ${JSON.stringify(value, null, 2)}\n`,
)
break
case 'json':
writeFileToDisk(`${JSON.stringify(value, null, 2)}\n`)
break
default:
writeFileToDisk(value)
}
})
export const writeResultsIndividually = (
results,
savePath,
extension = 'json',
) => {
results.forEach(({ value, name }) => {
writeResults(value, `${savePath}/${name}`, extension)
})
}
export async function fetchFile(url) {
return fetch(url).then((res) => res.text())
}
export const writeUrlToFile = (results, savePath, extension = 'json') =>
results.forEach(({ url, name, path = '' }) => {
if (url) {
writeFileStream(url, `${savePath}/${path}`, name, extension)
}
})
export const deletePaths = del
| 25.905172 | 80 | 0.612313 |
b77d0cfe73563b999773d7e68441cf904a6e51f7 | 372 | js | JavaScript | src/layout/LoginHint.js | Blodughofi/jianshu_demo-by-react | 23d329e0a4bfedd9483a674853e610db8d6b85fe | [
"MIT"
] | null | null | null | src/layout/LoginHint.js | Blodughofi/jianshu_demo-by-react | 23d329e0a4bfedd9483a674853e610db8d6b85fe | [
"MIT"
] | null | null | null | src/layout/LoginHint.js | Blodughofi/jianshu_demo-by-react | 23d329e0a4bfedd9483a674853e610db8d6b85fe | [
"MIT"
] | null | null | null | export default class extends React.Component{
constructor(props){
super(props);
}
componentDidMount(){
let {history} = this.props;
setTimeout(()=>history.push('/sign_in'),1000);
}
render(){
return (
<div className='ui aligned center header'>
先登录,即将自动跳转
</div>
)
}
} | 19.578947 | 54 | 0.510753 |
b77dc20ea792fd6b2dac75d8fef95ed73671fbb8 | 6,698 | js | JavaScript | behringer/bcf2000/behringer_bcf2000.js | Giampaolo-Gesuale/midiremote-userscripts | 7247f9f5bfb98cb576568dbae3cbb88d224549d7 | [
"MIT"
] | null | null | null | behringer/bcf2000/behringer_bcf2000.js | Giampaolo-Gesuale/midiremote-userscripts | 7247f9f5bfb98cb576568dbae3cbb88d224549d7 | [
"MIT"
] | null | null | null | behringer/bcf2000/behringer_bcf2000.js | Giampaolo-Gesuale/midiremote-userscripts | 7247f9f5bfb98cb576568dbae3cbb88d224549d7 | [
"MIT"
] | null | null | null | // Behringer BCF2000 v 1.0 by Giampaolo Gesuale
//-----------------------------------------------------------------------------
// 1. DRIVER SETUP - create driver object, midi ports and detection information
//-----------------------------------------------------------------------------
var midiremote_api = require('midiremote_api_v1')
var deviceDriver = midiremote_api.makeDeviceDriver('behringer', 'bcf2000', 'Giampaolo Gesuale')
var midiInput = deviceDriver.mPorts.makeMidiInput()
var midiOutput = deviceDriver.mPorts.makeMidiOutput()
deviceDriver.makeDetectionUnit().detectPortPair(midiInput, midiOutput)
.expectInputNameEquals('BCF2000')
.expectOutputNameEquals('BCF2000')
deviceDriver.makeDetectionUnit().detectPortPair(midiInput, midiOutput)
.expectInputNameContains('BCF2000')
.expectOutputNameContains('BCF2000')
//-----------------------------------------------------------------------------
// 2. SURFACE LAYOUT - create control elements and midi bindings
//-----------------------------------------------------------------------------
var surface= deviceDriver.mSurface
var selTrackName = surface.makeLabelField(18,2,4,1)
var pagename = surface.makeLabelField(18,12,4,0.9)
var trackNames = []
for (var i = 0; i < 8; ++i){
var trackName = surface.makeLabelField(i*2,15,2,0.6)
trackNames.push(trackName)
}
//layer zone
var encoderGroups = surface.makeControlLayerZone('Encoder Groups')
var encoderGroup1 = encoderGroups.makeControlLayer('Group 1')
var encoderGroup2 = encoderGroups.makeControlLayer('Group 2')
var encoderGroup3 = encoderGroups.makeControlLayer('Group 3')
var encoderGroup4 = encoderGroups.makeControlLayer('Group 4')
var knobs =[]
var buttons = []
var faders = []
var inarow = 8
var nEncoders = 32
var gruppo = encoderGroup1
//encoders
for(var r = 0; r < nEncoders/inarow; ++r) {
switch (r){
case 0: gruppo = encoderGroup1
break
case 1: gruppo = encoderGroup2
break
case 2: gruppo = encoderGroup3
break
case 3: gruppo = encoderGroup4
}
for (var c=0; c<inarow; ++c){
var knob = surface.makeKnob(c*2, 1, 2, 2)
knob.setControlLayer(gruppo)
knob.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange(0, 1+c+r*inarow).setTypeRelativeTwosComplement()
knobs.push(knob)
var button = surface.makeButton(c*2, 0, 2, 1)
button.setControlLayer(gruppo)
button.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange (0, 33+c+inarow*r)
buttons.push(button)
}
}
//buttons
var nbuttons = 16
for(var rb = 0; rb < nbuttons/inarow; ++rb) {
for (var cb=0; cb<inarow; ++cb){
var button = surface.makeButton(cb*2, rb+4, 2, 1)
button.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange (0, 65+cb+inarow*rb)
buttons.push(button)
}
}
//faders
var nFaders = 8
for(var rk = 0; rk < nFaders/inarow; ++rk) {
for (var ck=0; ck<inarow; ++ck){
var fader = surface.makeFader(ck*2, rk*3+6, 2, 9)
fader.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange(0, 81+ck+rk*inarow).setTypeAbsolute()
faders.push(fader)
}
}
//side buttons
var nbuttonsSide = 4
var inArowSide = 2
for(var rb = 0; rb < nbuttonsSide/inArowSide; ++rb) {
for (var cb=0; cb<inArowSide; ++cb){
var button = surface.makeButton(cb*2+18, rb+13, 2, 1)
button.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange (0, 105+cb+inArowSide*rb)
buttons.push(button)
}
}
//footswitches
var nFootButtons = 2
var inArowFoot = 2
for(var rb = 0; rb < nFootButtons/inArowFoot; ++rb) {
for (var cb=0; cb<inArowFoot; ++cb){
var button = surface.makeButton(cb*2+18, rb, 2, 1)
button.mSurfaceValue.mMidiBinding
.setInputPort(midiInput).setOutputPort(midiOutput)
.bindToControlChange (0, 109+cb+inArowFoot*rb)
buttons.push(button)
}
}
//-----------------------------------------------------------------------------
// 3. HOST MAPPING - create mapping pages and host bindings
//-----------------------------------------------------------------------------
//-----------
//Mixing page
//-----------
var mixPage = deviceDriver.mMapping.makePage('Mixing')
mixPage.setLabelFieldText(pagename, 'Mixing')
mixPage.setLabelFieldHostObject(selTrackName, mixPage.mHostAccess.mTrackSelection.mMixerChannel)
var hostMixerBankZone = mixPage.mHostAccess.mMixConsole.makeMixerBankZone()
.excludeInputChannels()
.excludeOutputChannels()
for (var i = 0; i < 8; ++i) {
var channelBankItem = hostMixerBankZone.makeMixerBankChannel()
mixPage.makeValueBinding(faders[i].mSurfaceValue, channelBankItem.mValue.mVolume)
mixPage.makeValueBinding(knobs[i].mSurfaceValue, channelBankItem.mValue.mPan)
mixPage.makeValueBinding(buttons[i+32].mSurfaceValue, channelBankItem.mValue.mSolo).setTypeToggle()
mixPage.makeValueBinding(buttons[i+40].mSurfaceValue, channelBankItem.mValue.mMute).setTypeToggle()
mixPage.makeValueBinding(buttons[i].mSurfaceValue, channelBankItem.mValue.mSelected)
mixPage.setLabelFieldHostObject(trackNames[i], channelBankItem.mValue)
}
for(var e = 0; e < 8; ++e) {
var button1 = buttons[e]
var knob2 = knobs[e + 8]
var button2 = buttons[e + 8]
var knob3 = knobs[e + 16]
var button3 = buttons[e + 16]
var knob4 = knobs[e + 24]
var button4 = buttons[e + 24]
var sendSlot = mixPage.mHostAccess.mTrackSelection.mMixerChannel.mSends.getByIndex(e)
var focusQuickControl = mixPage.mHostAccess.mFocusedQuickControls.getByIndex(e)
var cueSend = mixPage.mHostAccess.mTrackSelection.mMixerChannel.mCueSends.getByIndex(e)
mixPage.makeValueBinding(knob2.mSurfaceValue, sendSlot.mLevel)
mixPage.makeValueBinding(button2.mSurfaceValue, sendSlot.mOn).setTypeToggle()
mixPage.makeValueBinding(knob3.mSurfaceValue, focusQuickControl)
mixPage.makeValueBinding(button3.mSurfaceValue, focusQuickControl).setTypeToggle()
mixPage.makeValueBinding(knob4.mSurfaceValue, cueSend.mLevel)
mixPage.makeValueBinding(button4.mSurfaceValue, cueSend.mOn).setTypeToggle()
}
mixPage.makeValueBinding(buttons[48].mSurfaceValue, mixPage.mHostAccess.mTrackSelection.mMixerChannel.mValue.mEditorOpen).setTypeToggle()
mixPage.makeActionBinding(buttons[49].mSurfaceValue, hostMixerBankZone.mAction.mPrevBank)
mixPage.makeActionBinding(buttons[51].mSurfaceValue, hostMixerBankZone.mAction.mNextBank)
| 37.841808 | 137 | 0.673634 |
b77e0fb12de96ad42b6fba97880ece5bfe2f76b7 | 3,824 | js | JavaScript | node_modules/@progress/kendo-ui/js/cultures/kendo.culture.om-ET.js | antpost/antpost-client | 0bf4b82dcce19bc2ee70c4e2d2407e7118977991 | [
"MIT"
] | null | null | null | node_modules/@progress/kendo-ui/js/cultures/kendo.culture.om-ET.js | antpost/antpost-client | 0bf4b82dcce19bc2ee70c4e2d2407e7118977991 | [
"MIT"
] | null | null | null | node_modules/@progress/kendo-ui/js/cultures/kendo.culture.om-ET.js | antpost/antpost-client | 0bf4b82dcce19bc2ee70c4e2d2407e7118977991 | [
"MIT"
] | null | null | null | module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(283);
module.exports = __webpack_require__(283);
/***/ }),
/***/ 283:
/***/ (function(module, exports) {
(function( window, undefined ) {
kendo.cultures["om-ET"] = {
name: "om-ET",
numberFormat: {
pattern: ["-n"],
decimals: 0,
",": ",",
".": ".",
groupSize: [3],
percent: {
pattern: ["-n%","%n"],
decimals: 0,
",": ",",
".": ".",
groupSize: [3],
symbol: "%"
},
currency: {
name: "Ethiopian Birr",
abbr: "ETB",
pattern: ["-$n","$n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "Br"
}
},
calendars: {
standard: {
days: {
names: ["Dilbata","Wiixata","Qibxata","Roobii","Kamiisa","Jimaata","Sanbata"],
namesAbbr: ["Dil","Wix","Qib","Rob","Kam","Jim","San"],
namesShort: ["Dil","Wix","Qib","Rob","Kam","Jim","San"]
},
months: {
names: ["Amajjii","Guraandhala","Bitooteessa","Elba","Caamsa","Waxabajjii","Adooleessa","Hagayya","Fuulbana","Onkololeessa","Sadaasa","Muddee"],
namesAbbr: ["Ama","Gur","Bit","Elb","Cam","Wax","Ado","Hag","Ful","Onk","Sad","Mud"]
},
AM: ["WD","wd","WD"],
PM: ["WB","wb","WB"],
patterns: {
d: "dd/MM/yy",
D: "dddd, MMMM d, yyyy",
F: "dddd, MMMM d, yyyy h:mm:ss tt",
g: "dd/MM/yy h:mm tt",
G: "dd/MM/yy h:mm:ss tt",
m: "dd MMMM",
M: "dd MMMM",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "h:mm tt",
T: "h:mm:ss tt",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
},
"/": "/",
":": ":",
firstDay: 0
}
}
}
})(this);
/***/ })
/******/ }); | 30.592 | 165 | 0.393305 |
b77eda5d794a6875bb190fbaebc767c7785eeb74 | 67 | js | JavaScript | vue.config.js | Riant/ofd.js | 0abb8101d82ed73593d1b33ba26cf5d62fa513cc | [
"Apache-2.0"
] | 309 | 2020-09-10T08:09:54.000Z | 2022-03-31T12:42:14.000Z | vue.config.js | Riant/ofd.js | 0abb8101d82ed73593d1b33ba26cf5d62fa513cc | [
"Apache-2.0"
] | 45 | 2020-09-22T02:29:12.000Z | 2022-03-30T03:46:38.000Z | vue.config.js | Riant/ofd.js | 0abb8101d82ed73593d1b33ba26cf5d62fa513cc | [
"Apache-2.0"
] | 114 | 2020-09-11T08:45:01.000Z | 2022-03-31T10:30:58.000Z | module.exports = {
publicPath: '/ofd',
lintOnSave: false
}
| 13.4 | 23 | 0.61194 |
b77f0d014b5a381d50352577508caf7a63805d79 | 163 | js | JavaScript | Documentation/_neon_softmax_base_workload_8hpp.js | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | Documentation/_neon_softmax_base_workload_8hpp.js | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | Documentation/_neon_softmax_base_workload_8hpp.js | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | var _neon_softmax_base_workload_8hpp =
[
[ "NeonSoftmaxWorkloadValidate", "_neon_softmax_base_workload_8hpp.xhtml#a4077a9771ba9c551f4ce61863f65e798", null ]
]; | 40.75 | 119 | 0.834356 |
b77f1e14956ece7588378a001fd5c3a1f907185d | 784 | js | JavaScript | src/settings.js | RedfishGroup/firebase_webrtc_handshake | cd3c9d79341da223e1e6d3e96271b77056b5dd7d | [
"MIT"
] | 3 | 2016-03-11T22:54:31.000Z | 2019-10-22T08:20:37.000Z | src/settings.js | RedfishGroup/firebase_webrtc_handshake | cd3c9d79341da223e1e6d3e96271b77056b5dd7d | [
"MIT"
] | 6 | 2016-05-16T23:03:56.000Z | 2022-02-04T21:35:11.000Z | src/settings.js | RedfishGroup/firebase_webrtc_handshake | cd3c9d79341da223e1e6d3e96271b77056b5dd7d | [
"MIT"
] | 1 | 2017-01-24T22:59:17.000Z | 2017-01-24T22:59:17.000Z | export var settings = {
// Get a reference to the database service
// Was having a bug where the WIFI router would crash if the chunk size was bigger than 2^10
CHUNK_SIZE: Math.pow(2, 14), // size in bytes of the chunks. 2^14 is just under the limit in chrome.
ICE_SERVERS: [
{
url: 'stun:23.21.150.121',
urls: 'stun:23.21.150.121',
},
{
url: 'turn:global.turn.twilio.com:3478?transport=udp',
username:
'508d1e639868dc17f5da97a75b1d3b43bf2fc6d11e4e863678501db568b5665c',
credential: 'W5GTdhQQ6DqOD7k6bS8+xZVNQXm+fgLXSEQpN8bTe70=',
urls: 'turn:global.turn.twilio.com:3478?transport=udp',
},
],
POLLING_FREQUENCY: 15000,
debug: false,
}
| 35.636364 | 104 | 0.610969 |
b77fad6a0dc2c83f6e3d5ecec75cf0b0cf0b120a | 228 | js | JavaScript | web/frontend/node_modules/core-js/modules/es.array.is-array.js | atesbilgin/ENELPI---Soru-Cevap-Sistemi | ac839d0445863ac4735d05d03d4e8bea78f51c5b | [
"MIT"
] | 2,389 | 2015-06-05T05:06:05.000Z | 2022-03-31T07:08:56.000Z | web/frontend/node_modules/core-js/modules/es.array.is-array.js | atesbilgin/ENELPI---Soru-Cevap-Sistemi | ac839d0445863ac4735d05d03d4e8bea78f51c5b | [
"MIT"
] | 349 | 2016-10-19T16:05:24.000Z | 2022-03-17T21:43:58.000Z | web/frontend/node_modules/core-js/modules/es.array.is-array.js | atesbilgin/ENELPI---Soru-Cevap-Sistemi | ac839d0445863ac4735d05d03d4e8bea78f51c5b | [
"MIT"
] | 481 | 2020-09-24T23:59:38.000Z | 2021-10-31T13:24:30.000Z | var $ = require('../internals/export');
var isArray = require('../internals/is-array');
// `Array.isArray` method
// https://tc39.github.io/ecma262/#sec-array.isarray
$({ target: 'Array', stat: true }, {
isArray: isArray
});
| 25.333333 | 52 | 0.649123 |
b77fb2aa874afd3e12b888415c258eb4afb87ac7 | 1,062 | js | JavaScript | sources/views/settings.js | ilya-xbsoftware/jet-start | db07904bc7b13a1dc7af0a2f2c845ec411f75cff | [
"MIT"
] | null | null | null | sources/views/settings.js | ilya-xbsoftware/jet-start | db07904bc7b13a1dc7af0a2f2c845ec411f75cff | [
"MIT"
] | 1 | 2021-04-24T22:34:05.000Z | 2021-04-24T22:34:05.000Z | sources/views/settings.js | ilya-xbsoftware/jet-start | db07904bc7b13a1dc7af0a2f2c845ec411f75cff | [
"MIT"
] | null | null | null | import {JetView} from "webix-jet";
import activityTypes from "../models/activityTypes";
import icons from "../models/icons";
import statuses from "../models/statuses";
import settingsChangeLang from "./settings/settingsChangeLang";
import SettingsTable from "./settings/settingsTable";
export default class Settings extends JetView {
constructor(app, name) {
super(app, name);
this.activityTable = new SettingsTable(this.app, "", activityTypes, icons.activity);
this.contactTable = new SettingsTable(this.app, "", statuses, icons.contact);
}
config() {
const _ = this.app.getService("locale")._;
return {
padding: 30,
rows: [
{
padding: 30,
rows: [
settingsChangeLang
]
},
{
view: "tabview",
localId: "tabView",
cells: [
{
header: _("activityTypes"),
id: "settingsActivityTypes",
body: this.activityTable
},
{
header: _("contactStatuses"),
id: "settingsContactStatuses",
body: this.contactTable
}
]
}
]
};
}
}
| 22.125 | 86 | 0.626177 |
b78030e2098185631cb35f1ed073eb8961639620 | 970 | js | JavaScript | tests/parser_tests/js/src/tests/ecma_3/FunExpr/regress-545980.js | mir597/ml_safe | e0da1d9c564b0e8850e75db1d3d976b959bf61cb | [
"BSD-3-Clause"
] | 2 | 2018-10-07T21:28:29.000Z | 2020-11-11T12:09:30.000Z | tests/parser_tests/js/src/tests/ecma_3/FunExpr/regress-545980.js | mir597/ml_safe | e0da1d9c564b0e8850e75db1d3d976b959bf61cb | [
"BSD-3-Clause"
] | null | null | null | tests/parser_tests/js/src/tests/ecma_3/FunExpr/regress-545980.js | mir597/ml_safe | e0da1d9c564b0e8850e75db1d3d976b959bf61cb | [
"BSD-3-Clause"
] | 3 | 2020-10-21T10:50:23.000Z | 2021-12-27T21:34:50.000Z | /*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
var BUGNUMBER = 518103;
var summary = 'partial flat closures must not reach across funargs';
var actual = "no crash";
var expect = actual;
function Timer(){}
Timer.prototype = { initWithCallback: function (o) {Timer.q.push(o)} };
Timer.q = [];
var later;
var ac = {startSearch: function(q,s,n,o){later=o}};
var bm = {insertBookmark: function(){}, getIdForItemAt: function(){}};
function run_test() {
var tagIds = [];
(function doSearch(query) {
ac.startSearch(query, "", null, {
onSearchResult: function() {
var num = tagIds.length;
var timer = new Timer;
var next = query.slice(1);
timer.initWithCallback({ notify: function() {doSearch(next)} });
}
});
})("title");
}
run_test();
later.onSearchResult();
for (var i in Timer.q)
Timer.q[i].notify();
reportCompare(expect, actual, summary);
| 23.095238 | 72 | 0.645361 |
b78073ed3999dfd0e398a2f630b121189d2d63dc | 210 | js | JavaScript | src/views/ClientAccountDetails/sharedComponents/Table/index.js | abhijeet17890/test-encoding | c7d6ae8e8597c2ae76968014c140b4eeaac49ac8 | [
"MIT"
] | null | null | null | src/views/ClientAccountDetails/sharedComponents/Table/index.js | abhijeet17890/test-encoding | c7d6ae8e8597c2ae76968014c140b4eeaac49ac8 | [
"MIT"
] | null | null | null | src/views/ClientAccountDetails/sharedComponents/Table/index.js | abhijeet17890/test-encoding | c7d6ae8e8597c2ae76968014c140b4eeaac49ac8 | [
"MIT"
] | 1 | 2020-11-20T21:29:48.000Z | 2020-11-20T21:29:48.000Z | import React from 'react';
import * as S from './styles.js';
const Table = (props)=>{
return(
<S.StyledTable columns={props.columns} dataSource={props.dataSource} />
);
}
export default Table; | 23.333333 | 79 | 0.647619 |
b780e908bff3a1994f9b9be8ec41f63d225d384b | 42,049 | js | JavaScript | assets/admin/js/main.js | sardsay/citemplate | 96f4770cf18b54c49e53272e6b2e1f3471344438 | [
"MIT"
] | null | null | null | assets/admin/js/main.js | sardsay/citemplate | 96f4770cf18b54c49e53272e6b2e1f3471344438 | [
"MIT"
] | null | null | null | assets/admin/js/main.js | sardsay/citemplate | 96f4770cf18b54c49e53272e6b2e1f3471344438 | [
"MIT"
] | null | null | null | /*
# =============================================================================
# Sparkline Linechart JS
# =============================================================================
*/
(function() {
var linechartResize;
linechartResize = function() {
$("#linechart-1").sparkline([160, 240, 120, 200, 180, 350, 230, 200, 280, 380, 400, 360, 300, 220, 200, 150, 40, 70, 180, 110, 200, 160, 200, 220], {
type: "line",
width: "100%",
height: "226",
lineColor: "#a5e1ff",
fillColor: "rgba(241, 251, 255, 0.9)",
lineWidth: 2,
spotColor: "#a5e1ff",
minSpotColor: "#bee3f6",
maxSpotColor: "#a5e1ff",
highlightSpotColor: "#80cff4",
highlightLineColor: "#cccccc",
spotRadius: 6,
chartRangeMin: 0
});
$("#linechart-1").sparkline([100, 280, 150, 180, 220, 180, 130, 180, 180, 280, 260, 260, 200, 120, 200, 150, 100, 100, 180, 180, 200, 160, 180, 120], {
type: "line",
width: "100%",
height: "226",
lineColor: "#cfee74",
fillColor: "rgba(244, 252, 225, 0.5)",
lineWidth: 2,
spotColor: "#b9e72a",
minSpotColor: "#bfe646",
maxSpotColor: "#b9e72a",
highlightSpotColor: "#b9e72a",
highlightLineColor: "#cccccc",
spotRadius: 6,
chartRangeMin: 0,
composite: true
});
$("#linechart-2").sparkline([160, 240, 250, 280, 300, 250, 230, 200, 280, 380, 400, 360, 300, 220, 200, 150, 100, 100, 180, 180, 200, 160, 220, 140], {
type: "line",
width: "100%",
height: "226",
lineColor: "#a5e1ff",
fillColor: "rgba(241, 251, 255, 0.9)",
lineWidth: 2,
spotColor: "#a5e1ff",
minSpotColor: "#bee3f6",
maxSpotColor: "#a5e1ff",
highlightSpotColor: "#80cff4",
highlightLineColor: "#cccccc",
spotRadius: 6,
chartRangeMin: 0
});
$("#linechart-3").sparkline([100, 280, 150, 180, 220, 180, 130, 180, 180, 280, 260, 260, 200, 120, 200, 150, 100, 100, 180, 180, 200, 160, 220, 140], {
type: "line",
width: "100%",
height: "226",
lineColor: "#cfee74",
fillColor: "rgba(244, 252, 225, 0.5)",
lineWidth: 2,
spotColor: "#b9e72a",
minSpotColor: "#bfe646",
maxSpotColor: "#b9e72a",
highlightSpotColor: "#b9e72a",
highlightLineColor: "#cccccc",
spotRadius: 6,
chartRangeMin: 0
});
$("#linechart-4").sparkline([100, 220, 150, 140, 200, 180, 130, 180, 180, 210, 240, 200, 170, 120, 200, 150, 100, 100], {
type: "line",
width: "100",
height: "30",
lineColor: "#adadad",
fillColor: "rgba(244, 252, 225, 0.0)",
lineWidth: 2,
spotColor: "#909090",
minSpotColor: "#909090",
maxSpotColor: "#909090",
highlightSpotColor: "#666",
highlightLineColor: "#666",
spotRadius: 0,
chartRangeMin: 0
});
$("#linechart-5").sparkline([100, 220, 150, 140, 200, 180, 130, 180, 180, 210, 240, 200, 170, 120, 200, 150, 100, 100], {
type: "line",
width: "100",
height: "30",
lineColor: "#adadad",
fillColor: "rgba(244, 252, 225, 0.0)",
lineWidth: 2,
spotColor: "#909090",
minSpotColor: "#909090",
maxSpotColor: "#909090",
highlightSpotColor: "#666",
highlightLineColor: "#666",
spotRadius: 0,
chartRangeMin: 0
});
$("#barchart-2").sparkline([160, 220, 260, 120, 320, 260, 300, 160, 240, 100, 240, 120], {
type: "bar",
height: "226",
barSpacing: 8,
barWidth: 18,
barColor: "#8fdbda"
});
$("#composite-chart-1").sparkline([160, 220, 260, 120, 320, 260, 300, 160, 240, 100, 240, 120], {
type: "bar",
height: "226",
barSpacing: 8,
barWidth: 18,
barColor: "#8fdbda"
});
return $("#composite-chart-1").sparkline([100, 280, 150, 180, 220, 180, 130, 180, 180, 280, 260, 260], {
type: "line",
width: "100%",
height: "226",
lineColor: "#cfee74",
fillColor: "rgba(244, 252, 225, 0.5)",
lineWidth: 2,
spotColor: "#b9e72a",
minSpotColor: "#bfe646",
maxSpotColor: "#b9e72a",
highlightSpotColor: "#b9e72a",
highlightLineColor: "#cccccc",
spotRadius: 6,
chartRangeMin: 0,
composite: true
});
};
$(document).ready(function() {
/*
# =============================================================================
# Sparkline Linechart JS
# =============================================================================
*/
var $alpha, $container, $container2, addEvent, buildMorris, checkin, checkout, d, date, handleDropdown, initDrag, m, now, nowTemp, timelineAnimate, y;
$("#barcharts").sparkline([190, 220, 210, 220, 220, 260, 300, 220, 240, 240, 220, 200, 240, 260, 210], {
type: "bar",
height: "100",
barSpacing: 4,
barWidth: 13,
barColor: "#cbcbcb",
highlightColor: "#89D1E6"
});
$("#pie-chart").sparkline([2, 8, 6, 10], {
type: "pie",
height: "220",
width: "220",
offset: "+90",
sliceColors: ["#a0eeed", "#81e970", "#f5af50", "#f46f50"]
});
$(".sparkslim").sparkline('html', {
type: "line",
width: "100",
height: "30",
lineColor: "#adadad",
fillColor: "rgba(244, 252, 225, 0.0)",
lineWidth: 2,
spotColor: "#909090",
minSpotColor: "#909090",
maxSpotColor: "#909090",
highlightSpotColor: "#666",
highlightLineColor: "#666",
spotRadius: 0,
chartRangeMin: 0
});
/*
# =============================================================================
# Easy Pie Chart
# =============================================================================
*/
$(".pie-chart1").easyPieChart({
size: 200,
lineWidth: 12,
lineCap: "square",
barColor: "#81e970",
animate: 800,
scaleColor: false
});
$(".pie-chart2").easyPieChart({
size: 200,
lineWidth: 12,
lineCap: "square",
barColor: "#f46f50",
animate: 800,
scaleColor: false
});
$(".pie-chart3").easyPieChart({
size: 200,
lineWidth: 12,
lineCap: "square",
barColor: "#fab43b",
animate: 800,
scaleColor: false
});
/*
# =============================================================================
# Navbar scroll animation
# =============================================================================
*/
$(".page-header-fixed .navbar.scroll-hide").mouseover(function() {
$(".page-header-fixed .navbar.scroll-hide").removeClass("closed");
return setTimeout((function() {
return $(".page-header-fixed .navbar.scroll-hide").css({
overflow: "visible"
});
}), 150);
});
$(function() {
var delta, lastScrollTop;
lastScrollTop = 0;
delta = 50;
return $(window).scroll(function(event) {
var st;
st = $(this).scrollTop();
if (Math.abs(lastScrollTop - st) <= delta) {
return;
}
if (st > lastScrollTop) {
$('.page-header-fixed .navbar.scroll-hide').addClass("closed");
} else {
$('.page-header-fixed .navbar.scroll-hide').removeClass("closed");
}
return lastScrollTop = st;
});
});
/*
# =============================================================================
# Mobile Nav
# =============================================================================
*/
$('.navbar-toggle').click(function() {
return $('body, html').toggleClass("nav-open");
});
/*
# =============================================================================
# Style Selector
# =============================================================================
*/
$(".style-selector select").each(function() {
return $(this).find("option:first").attr("selected", "selected");
});
$(".style-toggle").bind("click", function() {
if ($(this).hasClass("open")) {
$(this).removeClass("open").addClass("closed");
return $(".style-selector").animate({
"right": "-240px"
}, 250);
} else {
$(this).removeClass("closed").addClass("open");
return $(".style-selector").show().animate({
"right": 0
}, 250);
}
});
$(".style-selector select[name='layout']").change(function() {
if ($(".style-selector select[name='layout'] option:selected").val() === "boxed") {
$("body").addClass("layout-boxed");
return $(window).resize();
} else {
$("body").removeClass("layout-boxed");
return $(window).resize();
}
});
$(".style-selector select[name='nav']").change(function() {
if ($(".style-selector select[name='nav'] option:selected").val() === "top") {
$("body").removeClass("sidebar-nav");
return $(window).resize();
} else {
$("body").addClass("sidebar-nav");
return $(window).resize();
}
});
$(".color-options a").bind("click", function() {
$(".color-options a").removeClass("active");
return $(this).addClass("active");
});
$(".pattern-options a").bind("click", function() {
var classes;
classes = $("body").attr("class").split(" ").filter(function(item) {
if (item.indexOf("bg-") === -1) {
return item;
} else {
return "";
}
});
$("body").attr("class", classes.join(" "));
$(".pattern-options a").removeClass("active");
$(this).addClass("active");
return $("body").addClass($(this).attr("id"));
});
/*
# =============================================================================
# Sparkline Resize Script
# =============================================================================
*/
linechartResize();
$(window).resize(function() {
return linechartResize();
});
/*
# =============================================================================
# Form wizard
# =============================================================================
*/
$("#wizard").bootstrapWizard({
nextSelector: ".btn-next",
previousSelector: ".btn-previous",
onNext: function(tab, navigation, index) {
var $current, $percent, $total;
if (index === 1) {
if (!$("#name").val()) {
$("#name").focus();
$("#name").addClass("has-error");
return false;
}
}
$total = navigation.find("li").length;
$current = index + 1;
$percent = ($current / $total) * 100;
return $("#wizard").find(".progress-bar").css("width", $percent + "%");
},
onPrevious: function(tab, navigation, index) {
var $current, $percent, $total;
$total = navigation.find("li").length;
$current = index + 1;
$percent = ($current / $total) * 100;
return $("#wizard").find(".progress-bar").css("width", $percent + "%");
},
onTabShow: function(tab, navigation, index) {
var $current, $percent, $total;
$total = navigation.find("li").length;
$current = index + 1;
$percent = ($current / $total) * 100;
return $("#wizard").find(".progress-bar").css("width", $percent + "%");
}
});
/*
# =============================================================================
# DataTables
# =============================================================================
*/
$("#dataTable1").dataTable({
"sPaginationType": "full_numbers",
aoColumnDefs: [
{
bSortable: false,
aTargets: [0, -1]
}
]
});
$('.table').each(function() {
return $(".table #checkAll").click(function() {
if ($(".table #checkAll").is(":checked")) {
return $(".table input[type=checkbox]").each(function() {
return $(this).prop("checked", true);
});
} else {
return $(".table input[type=checkbox]").each(function() {
return $(this).prop("checked", false);
});
}
});
});
/*
# =============================================================================
# jQuery UI Sliders
# =============================================================================
*/
// $(".slider-basic").slider({
// range: "min",
// value: 50,
// slide: function(event, ui) {
// return $(".slider-basic-amount").html("$" + ui.value);
// }
// });
// $(".slider-basic-amount").html("$" + $(".slider-basic").slider("value"));
// $(".slider-increments").slider({
// range: "min",
// value: 30,
// step: 10,
// slide: function(event, ui) {
// return $(".slider-increments-amount").html("$" + ui.value);
// }
// });
// $(".slider-increments-amount").html("$" + $(".slider-increments").slider("value"));
// $(".slider-range").slider({
// range: true,
// values: [15, 70],
// slide: function(event, ui) {
// return $(".slider-range-amount").html("$" + ui.values[0] + " - $" + ui.values[1]);
// }
// });
// $(".slider-range-amount").html("$" + $(".slider-range").slider("values", 0) + " - $" + $(".slider-range").slider("values", 1));
/*
# =============================================================================
# Bootstrap Tabs
# =============================================================================
*/
$("#myTab a:last").tab("show");
/*
# =============================================================================
# Bootstrap Popover
# =============================================================================
*/
$(".popover-trigger").popover();
/*
# =============================================================================
# Bootstrap Tooltip
# =============================================================================
*/
$(".tooltip-trigger").tooltip();
/*
# =============================================================================
# jQuery VMap
# =============================================================================
*/
if ($("#vmap").length) {
$("#vmap").vectorMap({
map: "world_en",
backgroundColor: null,
color: "#fff",
hoverOpacity: 0.2,
selectedColor: "#fff",
enableZoom: true,
showTooltip: true,
values: sample_data,
scaleColors: ["#59cdfe", "#0079fe"],
normalizeFunction: "polynomial"
});
}
/*
# =============================================================================
# Full Calendar
# =============================================================================
*/
date = new Date();
d = date.getDate();
m = date.getMonth();
y = date.getFullYear();
initDrag = function(el) {
/*
# create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
# it doesn't need to have a start or end
*/
var eventObject;
eventObject = {
title: $.trim(el.text())
};
/*
# store the Event Object in the DOM element so we can get to it later
*/
el.data("eventObject", eventObject);
/*
# make the event draggable using jQuery UI
*/
return el.draggable({
zIndex: 999,
revert: true,
revertDuration: 0
});
};
addEvent = function(title, priority) {
var html;
title = (title.length === 0 ? "Untitled Event" : title);
priority = (priority.length === 0 ? "default" : priority);
html = $("<div data-class=\"label label-" + priority + "\" class=\"external-event label label-" + priority + "\">" + title + "</div>");
jQuery("#event_box").append(html);
return initDrag(html);
};
$("#external-events div.external-event").each(function() {
return initDrag($(this));
});
$("#event_add").click(function() {
var priority, title;
title = $("#event_title").val();
priority = $("#event_priority").val();
return addEvent(title, priority);
});
/*
# modify chosen options
*/
handleDropdown = function() {
$("#event_priority_chzn .chzn-search").hide();
$("#event_priority_chzn_o_1").html("<span class=\"label label-default\">" + $("#event_priority_chzn_o_1").text() + "</span>");
$("#event_priority_chzn_o_2").html("<span class=\"label label-success\">" + $("#event_priority_chzn_o_2").text() + "</span>");
$("#event_priority_chzn_o_3").html("<span class=\"label label-info\">" + $("#event_priority_chzn_o_3").text() + "</span>");
$("#event_priority_chzn_o_4").html("<span class=\"label label-warning\">" + $("#event_priority_chzn_o_4").text() + "</span>");
return $("#event_priority_chzn_o_5").html("<span class=\"label label-important\">" + $("#event_priority_chzn_o_5").text() + "</span>");
};
$("#event_priority_chzn").click(handleDropdown);
/*
# predefined events
*/
addEvent("My Event 1", "primary");
addEvent("My Event 2", "success");
addEvent("My Event 3", "info");
addEvent("My Event 4", "warning");
addEvent("My Event 5", "danger");
addEvent("My Event 6", "default");
$("#calendar").fullCalendar({
header: {
left: "prev,next today",
center: "title",
right: "month,agendaWeek,agendaDay"
},
editable: true,
droppable: true,
drop: function(date, allDay) {
/*
# retrieve the dropped element's stored Event Object
*/
var copiedEventObject, originalEventObject;
originalEventObject = $(this).data("eventObject");
/*
# we need to copy it, so that multiple events don't have a reference to the same object
*/
copiedEventObject = $.extend({}, originalEventObject);
/*
# assign it the date that was reported
*/
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
copiedEventObject.className = $(this).attr("data-class");
/*
# render the event on the calendar
# the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
*/
$("#calendar").fullCalendar("renderEvent", copiedEventObject, true);
/*
# is the "remove after drop" checkbox checked?
# if so, remove the element from the "Draggable Events" list
*/
if ($("#drop-remove").is(":checked")) {
return $(this).remove();
}
},
events: [
{
title: "All Day Event",
start: new Date(y, m, 1),
className: "label label-default"
}, {
title: "Long Event",
start: new Date(y, m, d - 5),
end: new Date(y, m, d - 2),
className: "label label-success"
}, {
id: 999,
title: "Repeating Event",
start: new Date(y, m, d - 3, 16, 0),
allDay: false,
className: "label label-default"
}, {
id: 999,
title: "Repeating Event",
start: new Date(y, m, d + 4, 16, 0),
allDay: false,
className: "label label-important"
}, {
title: "Meeting",
start: new Date(y, m, d, 10, 30),
allDay: false,
className: "label label-info"
}, {
title: "Lunch",
start: new Date(y, m, d, 12, 0),
end: new Date(y, m, d, 14, 0),
allDay: false,
className: "label label-warning"
}, {
title: "Birthday Party",
start: new Date(y, m, d + 1, 19, 0),
end: new Date(y, m, d + 1, 22, 30),
allDay: false,
className: "label label-success"
}, {
title: "Click for Google",
start: new Date(y, m, 28),
end: new Date(y, m, 29),
url: "http://google.com/",
className: "label label-warning"
}
]
});
/*
# =============================================================================
# Isotope
# =============================================================================
*/
$container = $(".gallery-container");
$container.isotope({});
$(".gallery-filters a").click(function() {
var selector;
selector = $(this).attr("data-filter");
$(".gallery-filters a.selected").removeClass("selected");
$(this).addClass("selected");
$container.isotope({
filter: selector
});
return false;
});
/*
# =============================================================================
# Popover JS
# =============================================================================
*/
$('#popover').popover();
/*
# =============================================================================
# Fancybox Modal
# =============================================================================
*/
$(".fancybox").fancybox({
maxWidth: 700,
height: 'auto',
fitToView: false,
autoSize: true,
padding: 15,
nextEffect: 'fade',
prevEffect: 'fade',
helpers: {
title: {
type: "outside"
}
}
});
/*
# =============================================================================
# Morris Chart JS
# =============================================================================
*/
$(window).resize(function(e) {
var morrisResize;
clearTimeout(morrisResize);
return morrisResize = setTimeout(function() {
return buildMorris(true);
}, 500);
});
$(function() {
return buildMorris();
});
buildMorris = function($re) {
var tax_data;
if ($re) {
$(".graph").html("");
}
tax_data = [
{
period: "2011 Q3",
licensed: 3407,
sorned: 660
}, {
period: "2011 Q2",
licensed: 3351,
sorned: 629
}, {
period: "2011 Q1",
licensed: 3269,
sorned: 618
}, {
period: "2010 Q4",
licensed: 3246,
sorned: 661
}, {
period: "2009 Q4",
licensed: 3171,
sorned: 676
}, {
period: "2008 Q4",
licensed: 3155,
sorned: 681
}, {
period: "2007 Q4",
licensed: 3226,
sorned: 620
}, {
period: "2006 Q4",
licensed: 3245,
sorned: null
}, {
period: "2005 Q4",
licensed: 3289,
sorned: null
}
];
if ($('#hero-graph').length) {
Morris.Line({
element: "hero-graph",
data: tax_data,
xkey: "period",
ykeys: ["licensed", "sorned"],
labels: ["Licensed", "Off the road"],
lineColors: ["#5bc0de", "#60c560"]
});
}
if ($('#hero-donut').length) {
Morris.Donut({
element: "hero-donut",
data: [
{
label: "Development",
value: 25
}, {
label: "Sales & Marketing",
value: 40
}, {
label: "User Experience",
value: 25
}, {
label: "Human Resources",
value: 10
}
],
colors: ["#f0ad4e"],
formatter: function(y) {
return y + "%";
}
});
}
if ($('#hero-area').length) {
Morris.Area({
element: "hero-area",
data: [
{
period: "2010 Q1",
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: "2010 Q2",
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: "2010 Q3",
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: "2010 Q4",
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: "2011 Q1",
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: "2011 Q2",
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: "2011 Q3",
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: "2011 Q4",
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: "2012 Q1",
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: "2012 Q2",
iphone: 8432,
ipad: 5713,
itouch: 1791
}
],
xkey: "period",
ykeys: ["iphone", "ipad", "itouch"],
labels: ["iPhone", "iPad", "iPod Touch"],
hideHover: "auto",
lineWidth: 2,
pointSize: 4,
lineColors: ["#a0dcee", "#f1c88e", "#a0e2a0"],
fillOpacity: 0.5,
smooth: true
});
}
if ($('#hero-bar').length) {
return Morris.Bar({
element: "hero-bar",
data: [
{
device: "iPhone",
geekbench: 136
}, {
device: "iPhone 3G",
geekbench: 137
}, {
device: "iPhone 3GS",
geekbench: 275
}, {
device: "iPhone 4",
geekbench: 380
}, {
device: "iPhone 4S",
geekbench: 655
}, {
device: "iPhone 5",
geekbench: 1571
}
],
xkey: "device",
ykeys: ["geekbench"],
labels: ["Geekbench"],
barRatio: 0.4,
xLabelAngle: 35,
hideHover: "auto",
barColors: ["#5bc0de"]
});
}
};
/*
# =============================================================================
# Select2
# =============================================================================
*/
$('.select2able').select2();
/*
# =============================================================================
# Isotope with Masonry
# =============================================================================
*/
$alpha = $('#hidden-items');
$container2 = $('#social-container');
$(window).load(function() {
/*
# init isotope, then insert all items from hidden alpha
*/
$container2.isotope({
itemSelector: '.item'
}).isotope('insert', $alpha.find('.item'));
return $("#load-more").html("Load more").find("i").hide();
});
$('#load-more').click(function() {
var item1, item2, item3, items, tmp;
items = $container2.find('.social-entry');
item1 = $(items[Math.floor(Math.random() * items.length)]).clone();
item2 = $(items[Math.floor(Math.random() * items.length)]).clone();
item3 = $(items[Math.floor(Math.random() * items.length)]).clone();
tmp = $().add(item1).add(item2).add(item3);
return $container2.isotope('insert', tmp);
});
/*
# =============================================================================
# WYSIWYG Editor
# =============================================================================
*/
if ($('#summernote').length) {
$('#summernote').summernote({
height: 300,
focus: true,
toolbar: [['style', ['style']], ['style', ['bold', 'italic', 'underline', 'clear']], ['fontsize', ['fontsize']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['height', ['height']], ['insert', ['picture', 'link']], ['table', ['table']], ['fullscreen', ['fullscreen']]]
});
}
/*
# =============================================================================
# Typeahead
# =============================================================================
*/
/*if ($('.typeahead').length) {
$(".states.typeahead").typeahead({
name: "states",
local: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Dakota", "North Carolina", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"]
});
$(".countries.typeahead").typeahead({
name: "countries",
local: ["Andorra", "United Arab Emirates", "Afghanistan", "Antigua and Barbuda", "Anguilla", "Albania", "Armenia", "Angola", "Antarctica", "Argentina", "American Samoa", "Austria", "Australia", "Aruba", "Ã…land", "Azerbaijan", "Bosnia and Herzegovina", "Barbados", "Bangladesh", "Belgium", "Burkina Faso", "Bulgaria", "Bahrain", "Burundi", "Benin", "Saint Barthélemy", "Bermuda", "Brunei", "Bolivia", "Bonaire", "Brazil", "Bahamas", "Bhutan", "Bouvet Island", "Botswana", "Belarus", "Belize", "Canada", "Cocos [Keeling] Islands", "Congo", "Central African Republic", "Republic of the Congo", "Switzerland", "Ivory Coast", "Cook Islands", "Chile", "Cameroon", "China", "Colombia", "Costa Rica", "Cuba", "Cape Verde", "Curacao", "Christmas Island", "Cyprus", "Czechia", "Germany", "Djibouti", "Denmark", "Dominica", "Dominican Republic", "Algeria", "Ecuador", "Estonia", "Egypt", "Western Sahara", "Eritrea", "Spain", "Ethiopia", "Finland", "Fiji", "Falkland Islands", "Micronesia", "Faroe Islands", "France", "Gabon", "United Kingdom", "Grenada", "Georgia", "French Guiana", "Guernsey", "Ghana", "Gibraltar", "Greenland", "Gambia", "Guinea", "Guadeloupe", "Equatorial Guinea", "Greece", "South Georgia and the South Sandwich Islands", "Guatemala", "Guam", "Guinea-Bissau", "Guyana", "Hong Kong", "Heard Island and McDonald Islands", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Ireland", "Israel", "Isle of Man", "India", "British Indian Ocean Territory", "Iraq", "Iran", "Iceland", "Italy", "Jersey", "Jamaica", "Jordan", "Japan", "Kenya", "Kyrgyzstan", "Cambodia", "Kiribati", "Comoros", "Saint Kitts and Nevis", "North Korea", "South Korea", "Kuwait", "Cayman Islands", "Kazakhstan", "Laos", "Lebanon", "Saint Lucia", "Liechtenstein", "Sri Lanka", "Liberia", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Libya", "Morocco", "Monaco", "Moldova", "Montenegro", "Saint Martin", "Madagascar", "Marshall Islands", "Macedonia", "Mali", "Myanmar [Burma]", "Mongolia", "Macao", "Northern Mariana Islands", "Martinique", "Mauritania", "Montserrat", "Malta", "Mauritius", "Maldives", "Malawi", "Mexico", "Malaysia", "Mozambique", "Namibia", "New Caledonia", "Niger", "Norfolk Island", "Nigeria", "Nicaragua", "Netherlands", "Norway", "Nepal", "Nauru", "Niue", "New Zealand", "Oman", "Panama", "Peru", "French Polynesia", "Papua New Guinea", "Philippines", "Pakistan", "Poland", "Saint Pierre and Miquelon", "Pitcairn Islands", "Puerto Rico", "Palestine", "Portugal", "Palau", "Paraguay", "Qatar", "Réunion", "Romania", "Serbia", "Russia", "Rwanda", "Saudi Arabia", "Solomon Islands", "Seychelles", "Sudan", "Sweden", "Singapore", "Saint Helena", "Slovenia", "Svalbard and Jan Mayen", "Slovakia", "Sierra Leone", "San Marino", "Senegal", "Somalia", "Suriname", "South Sudan", "São Tomé and PrÃncipe", "El Salvador", "Sint Maarten", "Syria", "Swaziland", "Turks and Caicos Islands", "Chad", "French Southern Territories", "Togo", "Thailand", "Tajikistan", "Tokelau", "East Timor", "Turkmenistan", "Tunisia", "Tonga", "Turkey", "Trinidad and Tobago", "Tuvalu", "Taiwan", "Tanzania", "Ukraine", "Uganda", "U.S. Minor Outlying Islands", "United States", "Uruguay", "Uzbekistan", "Vatican City", "Saint Vincent and the Grenadines", "Venezuela", "British Virgin Islands", "U.S. Virgin Islands", "Vietnam", "Vanuatu", "Wallis and Futuna", "Samoa", "Kosovo", "Yemen", "Mayotte", "South Africa", "Zambia", "Zimbabwe"]
});
}*/
/*
# =============================================================================
# Form Input Masks
# =============================================================================
*/
$(":input").inputmask();
/*
# =============================================================================
# Validation
# =============================================================================
*/
$("#validate-form").validate({
rules: {
firstname: "required",
lastname: "required",
username: {
required: true,
minlength: 2
},
password: {
required: true,
minlength: 5
},
confirm_password: {
required: true,
minlength: 5,
equalTo: "#password"
},
email: {
required: true,
email: true
}
},
messages: {
firstname: "Please enter your first name",
lastname: "Please enter your last name",
username: {
required: "Please enter a username",
minlength: "Your username must consist of at least 2 characters"
},
password: {
required: "Please provide a password",
minlength: "Your password must be at least 5 characters long"
},
confirm_password: {
required: "Please provide a password",
minlength: "Your password must be at least 5 characters long",
equalTo: "Please enter the same password"
},
email: "Please enter a valid email address"
}
});
/*
# =============================================================================
# Drag and drop files
# =============================================================================
*/
$(".single-file-drop").each(function() {
var $dropbox;
$dropbox = $(this);
if (typeof window.FileReader === "undefined") {
$("small", this).html("File API & FileReader API not supported").addClass("text-danger");
return;
}
this.ondragover = function() {
$dropbox.addClass("hover");
return false;
};
this.ondragend = function() {
$dropbox.removeClass("hover");
return false;
};
return this.ondrop = function(e) {
var file, reader;
e.preventDefault();
$dropbox.removeClass("hover").html("");
file = e.dataTransfer.files[0];
reader = new FileReader();
reader.onload = function(event) {
return $dropbox.append($("<img>").attr("src", event.target.result));
};
reader.readAsDataURL(file);
return false;
};
});
/*
# =============================================================================
# Datepicker
# =============================================================================
*/
$('.datepicker').datepicker();
nowTemp = new Date();
now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
checkin = $("#dpd1").datepicker({
onRender: function(date) {
if (date.valueOf() < now.valueOf()) {
return "disabled";
} else {
return "";
}
}
}).on("changeDate", function(ev) {
var newDate;
if (ev.date.valueOf() > checkout.date.valueOf()) {
newDate = new Date(ev.date);
newDate.setDate(newDate.getDate() + 1);
checkout.setValue(newDate);
}
checkin.hide();
return $("#dpd2")[0].focus();
}).data("datepicker");
checkout = $("#dpd2").datepicker({
onRender: function(date) {
if (date.valueOf() <= checkin.date.valueOf()) {
return "disabled";
} else {
return "";
}
}
}).on("changeDate", function(ev) {
return checkout.hide();
}).data("datepicker");
/*
# =============================================================================
# Daterange Picker
# =============================================================================
*/
$(".date-range").daterangepicker({
format: "MM/dd/yyyy",
separator: " to ",
startDate: Date.today().add({
days: -29
}),
endDate: Date.today(),
minDate: "01/01/2012",
maxDate: "12/31/2014"
});
/*
# =============================================================================
# Timepicker
# =============================================================================
*/
$("#timepicker-default").timepicker();
$("#timepicker-24h").timepicker({
minuteStep: 1,
showSeconds: true,
showMeridian: false
});
$("#timepicker-noTemplate").timepicker({
template: false,
showInputs: false,
minuteStep: 5
});
$("#timepicker-modal").timepicker({
minuteStep: 1,
secondStep: 5,
showInputs: false,
modalBackdrop: true,
showSeconds: true,
showMeridian: false
});
$("#cp1").colorpicker({
format: "hex"
});
$("#cp2").colorpicker();
$("#cp3").colorpicker();
/*
# =============================================================================
# Skycons
# =============================================================================
*/
$('.skycons-element').each(function() {
var canvasId, skycons, weatherSetting;
skycons = new Skycons({
color: "white"
});
canvasId = $(this).attr('id');
weatherSetting = $(this).data('skycons');
skycons.add(canvasId, Skycons[weatherSetting]);
return skycons.play();
});
/*
# =============================================================================
# Login/signup animation
# =============================================================================
*/
$(window).load(function() {
return $(".login-container").addClass("active");
});
/*
# =============================================================================
# FitVids
# =============================================================================
*/
$(".timeline-content").fitVids();
/*
# =============================================================================
# Timeline animation
# =============================================================================
*/
timelineAnimate = function(elem) {
return $(".timeline.animated li").each(function(i) {
var bottom_of_object, bottom_of_window;
bottom_of_object = $(this).position().top + $(this).outerHeight();
bottom_of_window = $(window).scrollTop() + $(window).height();
if (bottom_of_window > bottom_of_object) {
return $(this).addClass("active");
}
});
};
timelineAnimate();
$(window).scroll(function() {
return timelineAnimate();
});
/*
# =============================================================================
# Input placeholder fix
# =============================================================================
*/
if (!Modernizr.input.placeholder) {
$("[placeholder]").focus(function() {
var input;
input = $(this);
if (input.val() === input.attr("placeholder")) {
input.val("");
return input.removeClass("placeholder");
}
}).blur(function() {
var input;
input = $(this);
if (input.val() === "" || input.val() === input.attr("placeholder")) {
input.addClass("placeholder");
return input.val(input.attr("placeholder"));
}
}).blur();
$("[placeholder]").parents("form").submit(function() {
return $(this).find("[placeholder]").each(function() {
var input;
input = $(this);
if (input.val() === input.attr("placeholder")) {
return input.val("");
}
});
});
}
/*
# =============================================================================
# Ladda loading buttons
# =============================================================================
*/
Ladda.bind(".ladda-button:not(.progress-demo)", {
timeout: 2000
});
Ladda.bind(".ladda-button.progress-demo", {
callback: function(instance) {
var interval, progress;
progress = 0;
return interval = setInterval(function() {
progress = Math.min(progress + Math.random() * 0.1, 1);
instance.setProgress(progress);
if (progress === 1) {
instance.stop();
return clearInterval(interval);
}
}, 200);
}
});
/*
# =============================================================================
# Dropzone File Upload
# =============================================================================
*/
return Dropzone.options.dropzoneDemo = {
paramName: "upload[file]",
addRemoveLinks: true
};
});
}).call(this);
| 34.75124 | 3,427 | 0.438845 |
b7816d8ee68df2bf469856de60a8ea1d61740218 | 1,046 | js | JavaScript | src/PushNotificationPreview.js | mvalimento/push-preview | c86ce512295ca8341513279cc31e40f41b377d42 | [
"MIT"
] | 3 | 2020-07-31T21:08:19.000Z | 2021-04-13T12:54:40.000Z | src/PushNotificationPreview.js | mvalimento/push-preview | c86ce512295ca8341513279cc31e40f41b377d42 | [
"MIT"
] | 1 | 2022-01-20T20:54:01.000Z | 2022-01-20T20:54:01.000Z | src/PushNotificationPreview.js | mvalimento/push-preview | c86ce512295ca8341513279cc31e40f41b377d42 | [
"MIT"
] | 3 | 2020-10-30T21:34:36.000Z | 2021-05-15T23:43:22.000Z | import React from "react";
import PropTypes from "prop-types";
import AndroidPushNotificationPreview from "./AndroidPushNotificationPreview";
import ApplePushNotificationPreview from "./ApplePushNotificationPreview";
class PushNotificationPreview extends React.Component {
render() {
const { platform } = this.props;
return (
<React.Fragment>
{platform==='android' &&
<AndroidPushNotificationPreview
{...this.props}
/>
}
{platform==='apple' &&
<ApplePushNotificationPreview
{...this.props}
/>
}
</React.Fragment>
);
}
}
PushNotificationPreview.propTypes = {
actionButtons: PropTypes.arrayOf(PropTypes.string),
appName: PropTypes.string.isRequired,
color: PropTypes.string,
image: PropTypes.string,
message: PropTypes.string,
platform: PropTypes.string.isRequired,
time: PropTypes.string,
title: PropTypes.string,
};
export default PushNotificationPreview;
| 26.820513 | 79 | 0.645315 |
b7816dee54e4b86195b5fe6ce99e56cb987560da | 545 | js | JavaScript | framework/PVRUtils/docs/html/search/classes_64.js | senthuran-ukr/Native_SDK | 2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf | [
"MIT"
] | null | null | null | framework/PVRUtils/docs/html/search/classes_64.js | senthuran-ukr/Native_SDK | 2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf | [
"MIT"
] | null | null | null | framework/PVRUtils/docs/html/search/classes_64.js | senthuran-ukr/Native_SDK | 2c7f0713cd1af5cb47e2351f83418fa8c7ff49bf | [
"MIT"
] | null | null | null | var searchData=
[
['defragmentationinfo',['DefragmentationInfo',['../structpvr_1_1utils_1_1vma_1_1_defragmentation_info.html',1,'pvr::utils::vma']]],
['defragmentationstats',['DefragmentationStats',['../structpvr_1_1utils_1_1vma_1_1_defragmentation_stats.html',1,'pvr::utils::vma']]],
['deviceextensions',['DeviceExtensions',['../structpvr_1_1utils_1_1_device_extensions.html',1,'pvr::utils']]],
['devicememorycallbacks',['DeviceMemoryCallbacks',['../structpvr_1_1utils_1_1vma_1_1_device_memory_callbacks.html',1,'pvr::utils::vma']]]
];
| 68.125 | 139 | 0.770642 |
b781738e5c7a69649b786abb221d36d361526290 | 725 | js | JavaScript | vendor/shopware/storefront/Resources/app/storefront/.eslintrc.js | masystech/pompidu | 9929f5cf0d1afd96c9020b95ce1d60aa3f6b1677 | [
"MIT"
] | 1 | 2021-05-19T20:56:52.000Z | 2021-05-19T20:56:52.000Z | vendor/shopware/storefront/Resources/app/storefront/.eslintrc.js | masystech/pompidu | 9929f5cf0d1afd96c9020b95ce1d60aa3f6b1677 | [
"MIT"
] | 243 | 2020-08-05T07:54:54.000Z | 2022-03-25T17:53:20.000Z | vendor/shopware/storefront/Resources/app/storefront/.eslintrc.js | masystech/pompidu | 9929f5cf0d1afd96c9020b95ce1d60aa3f6b1677 | [
"MIT"
] | 1 | 2019-11-29T15:20:34.000Z | 2019-11-29T15:20:34.000Z | const isDevMode = process.env.NODE_ENV !== 'production';
module.exports = {
root: true,
'extends': 'eslint:recommended',
'parser': 'babel-eslint',
'env': {
'browser': true,
'jquery': true,
'node': true,
'es6': true,
},
'globals': {
'gtag': true
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
},
'rules': {
'comma-dangle': ['error', 'never'],
'one-var': ['error', 'never'],
'no-console': 0,
'no-debugger': (isDevMode ? 0 : 2),
'prefer-const': 'warn',
'quotes': ['warn', 'single'],
'indent': ['warn', 4, {
'SwitchCase': 1,
}],
},
};
| 22.65625 | 56 | 0.448276 |
b7819d602312563bb484233de3cfd40eea2dbfa8 | 169 | js | JavaScript | node_modules/eslint-config-algolia/vue.js | AnneTheTechwriter/tech-writing-guidelines | 287d48de01876b1f8bfe7e830e8f8e27c0ca4475 | [
"MIT"
] | 1 | 2020-05-28T00:27:33.000Z | 2020-05-28T00:27:33.000Z | node_modules/eslint-config-algolia/vue.js | AnneTheTechwriter/tech-writing-guidelines | 287d48de01876b1f8bfe7e830e8f8e27c0ca4475 | [
"MIT"
] | 1 | 2018-09-09T12:51:45.000Z | 2018-09-09T12:51:45.000Z | node_modules/eslint-config-algolia/vue.js | AnneTheTechwriter/tech-writing-guidelines | 287d48de01876b1f8bfe7e830e8f8e27c0ca4475 | [
"MIT"
] | 7 | 2018-09-09T08:06:46.000Z | 2022-03-13T20:27:46.000Z | // eslint-disable-next-line import/no-commonjs
module.exports = {
// later we add vue-specific prettier extends here
extends: ['./base.js'],
plugins: ['html'],
};
| 24.142857 | 52 | 0.674556 |
b782fc59f25007eea9e4f3e432348beedd9b77e0 | 205,460 | js | JavaScript | files/clappr/0.0.70/clappr.min.js | ppavlov/jsdelivr | 46792341a2ab74902e2455daa6137f961087d921 | [
"MIT"
] | 5 | 2015-02-20T16:11:30.000Z | 2017-05-15T11:50:44.000Z | files/clappr/0.0.70/clappr.min.js | ppavlov/jsdelivr | 46792341a2ab74902e2455daa6137f961087d921 | [
"MIT"
] | null | null | null | files/clappr/0.0.70/clappr.min.js | ppavlov/jsdelivr | 46792341a2ab74902e2455daa6137f961087d921 | [
"MIT"
] | 4 | 2015-07-14T16:16:05.000Z | 2021-03-10T08:15:54.000Z | require=function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return r(n?n:t)},l,l.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e){(function(n){"use strict";var i=t("./components/player"),r=t("./components/iframe_player"),o=t("mediator"),a=t("../package.json").version;n.DEBUG=!1,window.Clappr={Player:i,Mediator:o,IframePlayer:r},window.Clappr.version=a,e.exports=window.Clappr}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":6,"./components/iframe_player":17,"./components/player":21,mediator:"mediator"}],2:[function(t,e){function n(){}var i=e.exports={};i.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,n="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var i=[];if(e){var r=document.createElement("div"),o=new MutationObserver(function(){var t=i.slice();i.length=0,t.forEach(function(t){t()})});return o.observe(r,{attributes:!0}),function(t){i.length||r.setAttribute("yes","no"),i.push(t)}}return n?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),i.length>0)){var n=i.shift();n()}},!0),function(t){i.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(){throw new Error("process.chdir is not supported")}},{}],3:[function(t){(function(t,e){!function(t){"use strict";function e(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++U+"$__"}function i(){var t=n();return K[t]=!0,t}function r(t){return"object"==typeof t&&t instanceof s}function o(t){return r(t)?"symbol":typeof t}function a(t){var e=new s(t);if(!(this instanceof a))return e;throw new TypeError("Symbol cannot be new'ed")}function s(t){var e=n();I(this,Y,{value:this}),I(this,V,{value:e}),I(this,z,{value:t}),u(this),G[e]=this}function c(t){var e=t[H];return e&&e.self===t?e:B(t)?(W.hash.value=X++,W.self.value=t,q.value=P(null,W),I(t,H,q),q.value):void 0}function u(t){return c(t),x.apply(this,arguments)}function l(t){return c(t),L.apply(this,arguments)}function h(t){return c(t),D.apply(this,arguments)}function d(t){return r(t)?t[V]:t}function f(t){for(var e=[],n=j(t),i=0;i<n.length;i++){var r=n[i];G[r]||K[r]||e.push(r)}return e}function p(t,e){return R(t,d(e))}function m(t){for(var e=[],n=j(t),i=0;i<n.length;i++){var r=G[n[i]];r&&e.push(r)}return e}function g(t){return $.call(this,d(t))}function b(e){return t.traceur&&t.traceur.options[e]}function y(t,e,n){var i,o;return r(e)&&(i=e,e=e[V]),t[e]=n,i&&(o=R(t,e))&&I(t,e,{enumerable:!1}),n}function v(t,e,n){return r(e)&&(n.enumerable&&(n=P(n,{enumerable:{value:!1}})),e=e[V]),I(t,e,n),t}function w(t){I(t,"defineProperty",{value:v}),I(t,"getOwnPropertyNames",{value:f}),I(t,"getOwnPropertyDescriptor",{value:p}),I(t.prototype,"hasOwnProperty",{value:g}),I(t,"freeze",{value:u}),I(t,"preventExtensions",{value:l}),I(t,"seal",{value:h}),t.getOwnPropertySymbols=m}function k(t){for(var e=1;e<arguments.length;e++)for(var n=j(arguments[e]),i=0;i<n.length;i++){var r=n[i];K[r]||!function(e,n){I(t,n,{get:function(){return e[n]},enumerable:!0})}(arguments[e],n[i])}return t}function E(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function T(t){if(null==t)throw S();return A(t)}function C(t){if(null==t)throw new TypeError("Value cannot be converted to an Object");return t}function _(t){t.Symbol=a,t.Reflect=t.Reflect||{},t.Reflect.global=t.Reflect.global||t,w(t.Object)}if(!t.$traceurRuntime){var A=Object,S=TypeError,P=A.create,O=A.defineProperties,I=A.defineProperty,x=A.freeze,R=A.getOwnPropertyDescriptor,j=A.getOwnPropertyNames,N=A.keys,$=A.prototype.hasOwnProperty,L=(A.prototype.toString,Object.preventExtensions),D=Object.seal,B=Object.isExtensible,F={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},M=e,U=0,V=n(),z=n(),Y=n(),G=P(null),K=P(null);I(a.prototype,"constructor",e(a)),I(a.prototype,"toString",M(function(){var t=this[Y];if(!b("symbols"))return t[V];if(!t)throw TypeError("Conversion from symbol to string");var e=t[z];return void 0===e&&(e=""),"Symbol("+e+")"})),I(a.prototype,"valueOf",M(function(){var t=this[Y];if(!t)throw TypeError("Conversion from symbol to string");return b("symbols")?t:t[V]})),I(s.prototype,"constructor",e(a)),I(s.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),I(s.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var H=i(),q={value:void 0},W={hash:{value:void 0},self:{value:void 0}},X=0;a.iterator=a(),u(s.prototype),_(t),t.$traceurRuntime={createPrivateName:i,exportStar:k,getOwnHashObject:c,privateNames:K,setProperty:y,setupGlobals:_,toObject:T,isObject:E,toProperty:d,type:F,"typeof":o,checkObjectCoercible:C,hasOwnProperty:function(t,e){return g.call(t,e)},defineProperties:O,defineProperty:I,getOwnPropertyDescriptor:R,getOwnPropertyNames:j,keys:N}}}("undefined"!=typeof e?e:this),function(){"use strict";function t(){for(var t,e=[],n=0,i=0;i<arguments.length;i++){var r=$traceurRuntime.checkObjectCoercible(arguments[i]);if("function"!=typeof r[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var o=r[$traceurRuntime.toProperty(Symbol.iterator)]();!(t=o.next()).done;)e[n++]=t.value}return e}$traceurRuntime.spread=t}(),function(){"use strict";function t(t,e){var n=m(t);do{var i=f(n,e);if(i)return i;n=m(n)}while(n);return void 0}function e(t,e,i,r){return n(t,e,i).apply(t,r)}function n(e,n,i){var r=t(n,i);return r?r.get?r.get.call(e):r.value:void 0}function i(e,n,i,r){var o=t(n,i);if(o&&o.set)return o.set.call(e,r),r;throw u("super has no setter '"+i+"'.")}function r(t){for(var e,n={},i=p(t),r=0;r<i.length;r++){var e=i[r];n[e]=f(t,e)}return n}function o(t,e,n,i){return d(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof i&&(t.__proto__=i),t.prototype=l(a(i),r(e))):t.prototype=e,d(t,"prototype",{configurable:!1,writable:!1}),h(t,r(n))}function a(t){if("function"==typeof t){var e=t.prototype;if(c(e)===e||null===e)return t.prototype;throw new u("super prototype must be an Object or null")}if(null===t)return null;throw new u("Super expression must either be null or a function, not "+typeof t+".")}function s(t,n,i){null!==m(n)&&e(t,n,"constructor",i)}var c=Object,u=TypeError,l=c.create,h=$traceurRuntime.defineProperties,d=$traceurRuntime.defineProperty,f=$traceurRuntime.getOwnPropertyDescriptor,p=$traceurRuntime.getOwnPropertyNames,m=Object.getPrototypeOf;$traceurRuntime.createClass=o,$traceurRuntime.defaultSuperCall=s,$traceurRuntime.superCall=e,$traceurRuntime.superGet=n,$traceurRuntime.superSet=i}(),function(){"use strict";function t(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function e(t){return new Error("Traceur compiler bug: invalid state in state machine: "+t)}function n(){this.state=0,this.GState=b,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function i(t,e,n,i){switch(t.GState){case y:throw new Error('"'+n+'" on executing generator');case w:if("next"==n)return{value:void 0,done:!0};throw i;case b:if("throw"===n)throw t.GState=w,i;if(void 0!==i)throw g("Sent value to newborn generator");case v:t.GState=y,t.action=n,t.sent=i;var r=e(t),o=r===t;return o&&(r=t.returnValue),t.GState=o?w:v,{value:r,done:o}}}function r(){}function o(){}function a(t,e,i){var r=l(t,i),o=new n,a=m(e.prototype);return a[T]=o,a[C]=r,a}function s(t){return t.prototype=m(o.prototype),t.__proto__=o,t}function c(){n.call(this),this.err=void 0;var t=this;t.result=new Promise(function(e,n){t.resolve=e,t.reject=n})}function u(t,e){var n=l(t,e),i=new c;return i.createCallback=function(t){return function(e){i.state=t,i.value=e,n(i)}},i.errback=function(t){h(i,t),n(i)},n(i),i.result}function l(t,e){return function(n){for(;;)try{return t.call(e,n)}catch(i){h(n,i)}}}function h(t,e){t.storedException=e;var n=t.tryStack_[t.tryStack_.length-1];return n?(t.state=void 0!==n.catch?n.catch:n.finally,void(void 0!==n.finallyFallThrough&&(t.finallyFallThrough=n.finallyFallThrough))):void t.handleException(e)}var d=$traceurRuntime.createPrivateName,f=$traceurRuntime.defineProperties,p=$traceurRuntime.defineProperty,m=Object.create,g=TypeError,b=0,y=1,v=2,w=3,k=-2,E=-3;n.prototype={pushTry:function(t,e){if(null!==e){for(var n=null,i=this.tryStack_.length-1;i>=0;i--)if(void 0!==this.tryStack_[i].catch){n=this.tryStack_[i].catch;break}null===n&&(n=E),this.tryStack_.push({"finally":e,finallyFallThrough:n})}null!==t&&this.tryStack_.push({"catch":t})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(t){this.sent_=t},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case k:return this;case E:throw this.storedException;default:throw e(this.state)}},handleException:function(t){throw this.GState=w,this.state=k,t}};var T=d(),C=d();r.prototype=o,p(o,"constructor",t(r)),o.prototype={constructor:o,next:function(t){return i(this[T],this[C],"next",t)},"throw":function(t){return i(this[T],this[C],"throw",t)}},f(o.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(o.prototype,Symbol.iterator,t(function(){return this})),c.prototype=m(n.prototype),c.prototype.end=function(){switch(this.state){case k:this.resolve(this.returnValue);break;case E:this.reject(this.storedException);break;default:this.reject(e(this.state))}},c.prototype.handleException=function(){this.state=E},$traceurRuntime.asyncWrap=u,$traceurRuntime.initGeneratorFunction=s,$traceurRuntime.createGeneratorInstance=a}(),function(){function t(t,e,n,i,r,o,a){var s=[];return t&&s.push(t,":"),n&&(s.push("//"),e&&s.push(e,"@"),s.push(n),i&&s.push(":",i)),r&&s.push(r),o&&s.push("?",o),a&&s.push("#",a),s.join("")}function e(t){return t.match(s)}function n(t){if("/"===t)return"/";for(var e="/"===t[0]?"/":"",n="/"===t.slice(-1)?"/":"",i=t.split("/"),r=[],o=0,a=0;a<i.length;a++){var s=i[a];switch(s){case"":case".":break;case"..":r.length?r.pop():o++;break;default:r.push(s)}}if(!e){for(;o-->0;)r.unshift("..");0===r.length&&r.push(".")}return e+r.join("/")+n}function i(e){var i=e[c.PATH]||"";return i=n(i),e[c.PATH]=i,t(e[c.SCHEME],e[c.USER_INFO],e[c.DOMAIN],e[c.PORT],e[c.PATH],e[c.QUERY_DATA],e[c.FRAGMENT])}function r(t){var n=e(t);return i(n)}function o(t,n){var r=e(n),o=e(t);if(r[c.SCHEME])return i(r);r[c.SCHEME]=o[c.SCHEME];for(var a=c.SCHEME;a<=c.PORT;a++)r[a]||(r[a]=o[a]);if("/"==r[c.PATH][0])return i(r);var s=o[c.PATH],u=s.lastIndexOf("/");return s=s.slice(0,u+1)+r[c.PATH],r[c.PATH]=s,i(r)}function a(t){if(!t)return!1;if("/"===t[0])return!0;var n=e(t);return n[c.SCHEME]?!0:!1}var s=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),c={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=r,$traceurRuntime.isAbsolute=a,$traceurRuntime.removeDotSegments=n,$traceurRuntime.resolveUrl=o}(),function(t){"use strict";function e(t){if(t){var e=g.normalize(t);return c[e]}}function n(t){var e=arguments[1],n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(i){var r,o;if(e===m){var a=Object.getOwnPropertyDescriptor(t,i);a.get&&(r=a.get)}r||(o=t[i],r=function(){return o}),Object.defineProperty(n,i,{get:r,enumerable:!0})}),Object.preventExtensions(n),n}var i,r=$traceurRuntime,o=r.canonicalizeUrl,a=r.resolveUrl,s=r.isAbsolute,c=Object.create(null);i=t.location&&t.location.href?a(t.location.href,"./"):"";var u=function(t,e){this.url=t,this.value_=e};$traceurRuntime.createClass(u,{},{});var l=function(t,e){this.message=this.constructor.name+": "+this.stripCause(e)+" in "+t,this.stack=e instanceof h||!e.stack?"":this.stripStack(e.stack)},h=l;$traceurRuntime.createClass(l,{stripError:function(t){return t.replace(/.*Error:/,this.constructor.name+":")},stripCause:function(t){return t?t.message?this.stripError(t.message):t+"":""},loadedBy:function(t){this.stack+="\n loaded by "+t},stripStack:function(t){var e=[];return t.split("\n").some(function(t){return/UncoatedModuleInstantiator/.test(t)?!0:void e.push(t)}),e[0]=this.stripError(e[0]),e.join("\n")}},{},Error);var d=function(t,e){$traceurRuntime.superCall(this,f.prototype,"constructor",[t,null]),this.func=e},f=d;$traceurRuntime.createClass(d,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(t)}catch(e){if(e instanceof l)throw e.loadedBy(this.url),e;throw new l(this.url,e)}}},{},u);var p=Object.create(null),m={},g={normalize:function(t,e){if("string"!=typeof t)throw new TypeError("module name must be a string, not "+typeof t);if(s(t))return o(t);if(/[^\.]\/\.\.\//.test(t))throw new Error("module name embeds /../: "+t);return"."===t[0]&&e?a(e,t):o(t)},get:function(t){var i=e(t);if(!i)return void 0;var r=p[i.url];return r?r:(r=n(i.getUncoatedModule(),m),p[i.url]=r)},set:function(t,e){t=String(t),c[t]=new d(t,function(){return e}),p[t]=e},get baseURL(){return i},set baseURL(t){i=String(t)},registerModule:function(t,e){var n=g.normalize(t);if(c[n])throw new Error("duplicate module named "+n);c[n]=new d(n,e)},bundleStore:Object.create(null),register:function(t,e,n){e&&(e.length||n.length)?this.bundleStore[t]={deps:e,execute:function(){var t=arguments,i={};e.forEach(function(e,n){return i[e]=t[n]});var r=n.call(this,i);return r.execute.call(this),r.exports}}:this.registerModule(t,n)},getAnonymousModule:function(e){return new n(e.call(t),m)},getForTesting:function(t){var e=this;return this.testingPrefix_||Object.keys(p).some(function(t){var n=/(traceur@[^\/]*\/)/.exec(t);return n?(e.testingPrefix_=n[1],!0):void 0}),this.get(this.testingPrefix_+t)}};g.set("@traceur/src/runtime/ModuleStore",new n({ModuleStore:g}));var b=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(t){b(t)},$traceurRuntime.ModuleStore=g,t.System={register:g.register.bind(g),get:g.get,set:g.set,normalize:g.normalize},$traceurRuntime.getModuleImpl=function(t){var n=e(t);return n&&n.getUncoatedModule()}}("undefined"!=typeof e?e:this),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/utils",[],function(){"use strict";function t(t){return t>>>0}function e(t){return t&&("object"==typeof t||"function"==typeof t)}function n(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return t=+t,w(t)?0:0!==t&&v(t)?t>0?y(t):b(t):t}function o(t){var e=r(t);return 0>e?0:E(e,C)}function a(t){return e(t)?t[Symbol.iterator]:void 0}function s(t){return n(t)}function c(t,e){return{value:t,done:e}}function u(t,e,n){e in t||Object.defineProperty(t,e,n)}function l(t,e,n){u(t,e,{value:n,configurable:!0,enumerable:!1,writable:!0})}function h(t,e,n){u(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function d(t,e){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1];l(t,i,r)}}function f(t,e){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1];h(t,i,r)}}function p(t,e,n){n&&n.iterator&&!t[n.iterator]&&(t["@@iterator"]&&(e=t["@@iterator"]),Object.defineProperty(t,n.iterator,{value:e,configurable:!0,enumerable:!1,writable:!0}))}function m(t){_.push(t)}function g(t){_.forEach(function(e){return e(t)})}var b=Math.ceil,y=Math.floor,v=isFinite,w=isNaN,k=Math.pow,E=Math.min,T=$traceurRuntime.toObject,C=k(2,53)-1,_=[];return{get toObject(){return T},get toUint32(){return t},get isObject(){return e},get isCallable(){return n},get isNumber(){return i},get toInteger(){return r},get toLength(){return o},get checkIterable(){return a},get isConstructor(){return s},get createIteratorResultObject(){return c},get maybeDefine(){return u},get maybeDefineMethod(){return l},get maybeDefineConst(){return h},get maybeAddFunctions(){return d},get maybeAddConsts(){return f},get maybeAddIterator(){return p},get registerPolyfill(){return m},get polyfillAll(){return g}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Map",[],function(){"use strict";function t(t,e){if(r(e)){var n=s(e);return n&&t.objectIndex_[n.hash]}return"string"==typeof e?t.stringIndex_[e]:t.primitiveIndex_[e]}function e(t){t.entries_=[],t.objectIndex_=Object.create(null),t.stringIndex_=Object.create(null),t.primitiveIndex_=Object.create(null),t.deletedCount_=0}function n(t){var e=t,n=e.Object,i=e.Symbol;t.Map||(t.Map=l);var r=t.Map.prototype;r.entries&&(o(r,r.entries,i),o(n.getPrototypeOf((new t.Map).entries()),function(){return this},i))}var i=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),r=i.isObject,o=i.maybeAddIterator,a=i.registerPolyfill,s=$traceurRuntime.getOwnHashObject,c=Object.prototype.hasOwnProperty,u={},l=function(){var t=arguments[0];if(!r(this))throw new TypeError("Map called on incompatible type");if(c.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(e(this),null!==t&&void 0!==t)for(var n,i=t[Symbol.iterator]();!(n=i.next()).done;){var o=n.value,a=o[0],s=o[1];this.set(a,s)}};return $traceurRuntime.createClass(l,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(e){var n=t(this,e);return void 0!==n?this.entries_[n+1]:void 0},set:function(e,n){var i=r(e),o="string"==typeof e,a=t(this,e);if(void 0!==a)this.entries_[a+1]=n;else if(a=this.entries_.length,this.entries_[a]=e,this.entries_[a+1]=n,i){var c=s(e),u=c.hash;this.objectIndex_[u]=a}else o?this.stringIndex_[e]=a:this.primitiveIndex_[e]=a;return this},has:function(e){return void 0!==t(this,e)},"delete":function(t){var e,n,i=r(t),o="string"==typeof t;if(i){var a=s(t);a&&(e=this.objectIndex_[n=a.hash],delete this.objectIndex_[n])}else o?(e=this.stringIndex_[t],delete this.stringIndex_[t]):(e=this.primitiveIndex_[t],delete this.primitiveIndex_[t]);return void 0!==e?(this.entries_[e]=u,this.entries_[e+1]=void 0,this.deletedCount_++,!0):!1},clear:function(){e(this)},forEach:function(t){for(var e=arguments[1],n=0;n<this.entries_.length;n+=2){var i=this.entries_[n],r=this.entries_[n+1];i!==u&&t.call(e,r,i,this)}},entries:$traceurRuntime.initGeneratorFunction(function h(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===u?4:6;break;case 6:return i.state=2,[e,n];case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},h,this)}),keys:$traceurRuntime.initGeneratorFunction(function d(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===u?4:6;break;case 6:return i.state=2,e;case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},d,this)}),values:$traceurRuntime.initGeneratorFunction(function f(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(i){for(;;)switch(i.state){case 0:t=0,i.state=12;break;case 12:i.state=t<this.entries_.length?8:-2;break;case 4:t+=2,i.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],i.state=9;break;case 9:i.state=e===u?4:6;break;case 6:return i.state=2,n;case 2:i.maybeThrow(),i.state=4;break;default:return i.end()}},f,this)})},{}),Object.defineProperty(l.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:l.prototype.entries}),a(n),{get Map(){return l},get polyfillMap(){return n}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Set",[],function(){"use strict";function t(t){t.map_=new a}function e(t){var e=t,n=e.Object,i=e.Symbol;t.Set||(t.Set=c);var o=t.Set.prototype;o.values&&(r(o,o.values,i),r(n.getPrototypeOf((new t.Set).values()),function(){return this},i))}var n=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),i=n.isObject,r=n.maybeAddIterator,o=n.registerPolyfill,a=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Map").Map,s=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),c=function(){var e=arguments[0];if(!i(this))throw new TypeError("Set called on incompatible type");if(s.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(t(this),null!==e&&void 0!==e)for(var n,r=e[Symbol.iterator]();!(n=r.next()).done;){var o=n.value;this.add(o)}};return $traceurRuntime.createClass(c,{get size(){return this.map_.size},has:function(t){return this.map_.has(t)},add:function(t){return this.map_.set(t,t),this},"delete":function(t){return this.map_.delete(t)},clear:function(){return this.map_.clear()},forEach:function(t){var e=arguments[1],n=this;return this.map_.forEach(function(i,r){t.call(e,r,r,n)})},values:$traceurRuntime.initGeneratorFunction(function u(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.keys()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},u,this)}),entries:$traceurRuntime.initGeneratorFunction(function l(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.entries()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},l,this)})},{}),Object.defineProperty(c.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:c.prototype.values}),Object.defineProperty(c.prototype,"keys",{configurable:!0,writable:!0,value:c.prototype.values}),o(e),{get Set(){return c},get polyfillSet(){return e}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.62/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function e(t,e){f[c]=t,f[c+1]=e,c+=2,2===c&&s()}function n(){return function(){t.nextTick(a)}}function i(){var t=0,e=new h(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function r(){var t=new MessageChannel;return t.port1.onmessage=a,function(){t.port2.postMessage(0)}}function o(){return function(){setTimeout(a,1)}}function a(){for(var t=0;c>t;t+=2){var e=f[t],n=f[t+1];e(n),f[t]=void 0,f[t+1]=void 0}c=0}var s,c=0,u=e,l="undefined"!=typeof window?window:{},h=l.MutationObserver||l.WebKitMutationObserver,d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,f=new Array(1e3);return s="undefined"!=typeof t&&"[object process]"==={}.toString.call(t)?n():h?i():d?r():o(),{get default(){return u}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Promise",[],function(){"use strict";function t(t){return t&&"object"==typeof t&&void 0!==t.status_}function e(t){return t}function n(t){throw t}function i(t){var i=void 0!==arguments[1]?arguments[1]:e,o=void 0!==arguments[2]?arguments[2]:n,a=r(t.constructor);switch(t.status_){case void 0:throw TypeError;case 0:t.onResolve_.push(i,a),t.onReject_.push(o,a);break;case 1:l(t.value_,[i,a]);break;case-1:l(t.value_,[o,a])}return a.promise}function r(t){if(this===v){var e=a(new v(b));return{promise:e,resolve:function(t){s(e,t)},reject:function(t){c(e,t)}}}var n={};return n.promise=new t(function(t,e){n.resolve=t,n.reject=e}),n}function o(t,e,n,i,r){return t.status_=e,t.value_=n,t.onResolve_=i,t.onReject_=r,t}function a(t){return o(t,0,void 0,[],[])}function s(t,e){u(t,1,e,t.onResolve_)}function c(t,e){u(t,-1,e,t.onReject_)}function u(t,e,n,i){0===t.status_&&(l(n,i),o(t,e,n))}function l(t,e){m(function(){for(var n=0;n<e.length;n+=2)h(t,e[n],e[n+1])})}function h(e,n,r){try{var o=n(e);if(o===r.promise)throw new TypeError;t(o)?i(o,r.resolve,r.reject):r.resolve(o)}catch(a){try{r.reject(a)}catch(a){}}}function d(t){return t&&("object"==typeof t||"function"==typeof t)}function f(e,n){if(!t(n)&&d(n)){var i;try{i=n.then}catch(o){var a=w.call(e,o);return n[k]=a,a}if("function"==typeof i){var s=n[k];if(s)return s;var c=r(e);n[k]=c.promise;try{i.call(n,c.resolve,c.reject)}catch(o){c.reject(o)}return c.promise}}return n}function p(t){t.Promise||(t.Promise=y)}var m=System.get("traceur-runtime@0.0.62/node_modules/rsvp/lib/rsvp/asap").default,g=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils").registerPolyfill,b={},y=function(t){if(t!==b){if("function"!=typeof t)throw new TypeError;var e=a(this);try{t(function(t){s(e,t)},function(t){c(e,t)})}catch(n){c(e,n)}}};$traceurRuntime.createClass(y,{"catch":function(t){return this.then(void 0,t)},then:function(r,o){"function"!=typeof r&&(r=e),"function"!=typeof o&&(o=n);var a=this,s=this.constructor;return i(this,function(e){return e=f(s,e),e===a?o(new TypeError):t(e)?e.then(r,o):r(e)},o)}},{resolve:function(e){return this===v?t(e)?e:o(new v(b),1,e):new this(function(t){t(e)})},reject:function(t){return this===v?o(new v(b),-1,t):new this(function(e,n){n(t)})},all:function(t){var e=r(this),n=[];try{var i=t.length;if(0===i)e.resolve(n);else for(var o=0;o<t.length;o++)this.resolve(t[o]).then(function(t,r){n[t]=r,0===--i&&e.resolve(n)}.bind(void 0,o),function(t){e.reject(t)})}catch(a){e.reject(a)}return e.promise},race:function(t){var e=r(this);try{for(var n=0;n<t.length;n++)this.resolve(t[n]).then(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(i){e.reject(i)}return e.promise}});var v=y,w=v.reject,k="@@thenable";return g(p),{get Promise(){return y},get polyfillPromise(){return p}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/StringIterator",[],function(){"use strict";function t(t){var e=String(t),n=Object.create(l.prototype);return n[s(c)]=e,n[s(u)]=0,n}var e,n=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),i=n.createIteratorResultObject,r=n.isObject,o=$traceurRuntime,a=o.hasOwnProperty,s=o.toProperty,c=Symbol("iteratedString"),u=Symbol("stringIteratorNextIndex"),l=function(){};return $traceurRuntime.createClass(l,(e={},Object.defineProperty(e,"next",{value:function(){var t=this;if(!r(t)||!a(t,c))throw new TypeError("this must be a StringIterator object");var e=t[s(c)];if(void 0===e)return i(void 0,!0);var n=t[s(u)],o=e.length;if(n>=o)return t[s(c)]=void 0,i(void 0,!0);var l,h=e.charCodeAt(n);if(55296>h||h>56319||n+1===o)l=String.fromCharCode(h);else{var d=e.charCodeAt(n+1);l=56320>d||d>57343?String.fromCharCode(h):String.fromCharCode(h)+String.fromCharCode(d)}return t[s(u)]=n+l.length,i(l,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(e,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),e),{}),{get createStringIterator(){return t}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/String",[],function(){"use strict";function t(t){var e=String(this);if(null==this||"[object RegExp]"==p.call(t))throw TypeError();var n=e.length,i=String(t),r=(i.length,arguments.length>1?arguments[1]:void 0),o=r?Number(r):0;isNaN(o)&&(o=0);var a=Math.min(Math.max(o,0),n);return m.call(e,i,o)==a}function e(t){var e=String(this);if(null==this||"[object RegExp]"==p.call(t))throw TypeError();var n=e.length,i=String(t),r=i.length,o=n;if(arguments.length>1){var a=arguments[1];void 0!==a&&(o=a?Number(a):0,isNaN(o)&&(o=0))}var s=Math.min(Math.max(o,0),n),c=s-r;return 0>c?!1:g.call(e,i,c)==c}function n(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=String(t),r=(i.length,arguments.length>1?arguments[1]:void 0),o=r?Number(r):0;isNaN(o)&&(o=0);Math.min(Math.max(o,0),n);return-1!=m.call(e,i,o)}function i(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(isNaN(n)&&(n=0),0>n||1/0==n)throw RangeError();if(0==n)return"";for(var i="";n--;)i+=e;return i}function r(t){if(null==this)throw TypeError();var e=String(this),n=e.length,i=t?Number(t):0;if(isNaN(i)&&(i=0),0>i||i>=n)return void 0;var r,o=e.charCodeAt(i);return o>=55296&&56319>=o&&n>i+1&&(r=e.charCodeAt(i+1),r>=56320&&57343>=r)?1024*(o-55296)+r-56320+65536:o}function o(t){var e=t.raw,n=e.length>>>0;if(0===n)return"";for(var i="",r=0;;){if(i+=e[r],r+1===n)return i;i+=arguments[++r]}}function a(){var t,e,n=[],i=Math.floor,r=-1,o=arguments.length;if(!o)return"";for(;++r<o;){var a=Number(arguments[r]);if(!isFinite(a)||0>a||a>1114111||i(a)!=a)throw RangeError("Invalid code point: "+a);65535>=a?n.push(a):(a-=65536,t=(a>>10)+55296,e=a%1024+56320,n.push(t,e))}return String.fromCharCode.apply(null,n)}function s(){var t=$traceurRuntime.checkObjectCoercible(this),e=String(t);return u(e)}function c(c){var u=c.String;h(u.prototype,["codePointAt",r,"contains",n,"endsWith",e,"startsWith",t,"repeat",i]),h(u,["fromCodePoint",a,"raw",o]),d(u.prototype,s,Symbol)}var u=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/StringIterator").createStringIterator,l=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),h=l.maybeAddFunctions,d=l.maybeAddIterator,f=l.registerPolyfill,p=Object.prototype.toString,m=String.prototype.indexOf,g=String.prototype.lastIndexOf;return f(c),{get startsWith(){return t},get endsWith(){return e},get contains(){return n},get repeat(){return i},get codePointAt(){return r},get raw(){return o},get fromCodePoint(){return a},get stringPrototypeIterator(){return s},get polyfillString(){return c}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/String"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function t(t,e){var n=a(t),i=new d;return i.iteratorObject_=n,i.arrayIteratorNextIndex_=0,i.arrayIterationKind_=e,i}function e(){return t(this,h)}function n(){return t(this,u)}function i(){return t(this,l)}var r,o=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),a=o.toObject,s=o.toUint32,c=o.createIteratorResultObject,u=1,l=2,h=3,d=function(){};return $traceurRuntime.createClass(d,(r={},Object.defineProperty(r,"next",{value:function(){var t=a(this),e=t.iteratorObject_;if(!e)throw new TypeError("Object is not an ArrayIterator");var n=t.arrayIteratorNextIndex_,i=t.arrayIterationKind_,r=s(e.length);return n>=r?(t.arrayIteratorNextIndex_=1/0,c(void 0,!0)):(t.arrayIteratorNextIndex_=n+1,i==l?c(e[n],!1):i==h?c([n,e[n]],!1):c(n,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),r),{}),{get entries(){return e},get keys(){return n},get values(){return i}}}),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Array",[],function(){"use strict";function t(t){var e,n,i=arguments[1],r=arguments[2],o=this,a=w(t),s=void 0!==i,c=0;if(s&&!f(i))throw TypeError();if(d(a)){e=p(o)?new o:[];for(var u,l=a[Symbol.iterator]();!(u=l.next()).done;){var h=u.value;e[c]=s?i.call(r,h,c):h,c++}return e.length=c,e}for(n=v(a.length),e=p(o)?new o(n):new Array(n);n>c;c++)e[c]=s?"undefined"==typeof r?i(a[c],c):i.call(r,a[c],c):a[c];
return e.length=n,e}function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this,i=t.length,r=p(n)?new n(i):new Array(i),o=0;i>o;o++)r[o]=t[o];return r.length=i,r}function n(t){var e=void 0!==arguments[1]?arguments[1]:0,n=arguments[2],i=w(this),r=v(i.length),o=y(e),a=void 0!==n?y(n):r;for(o=0>o?Math.max(r+o,0):Math.min(o,r),a=0>a?Math.max(r+a,0):Math.min(a,r);a>o;)i[o]=t,o++;return i}function i(t){var e=arguments[1];return o(this,t,e)}function r(t){var e=arguments[1];return o(this,t,e,!0)}function o(t,e){var n=arguments[2],i=void 0!==arguments[3]?arguments[3]:!1,r=w(t),o=v(r.length);if(!f(e))throw TypeError();for(var a=0;o>a;a++)if(a in r){var s=r[a];if(e.call(n,s,a,r))return i?a:s}return i?-1:void 0}function a(o){var a=o,s=a.Array,h=a.Object,d=a.Symbol;m(s.prototype,["entries",c,"keys",u,"values",l,"fill",n,"find",i,"findIndex",r]),m(s,["from",t,"of",e]),g(s.prototype,l,d),g(h.getPrototypeOf([].values()),function(){return this},d)}var s=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/ArrayIterator"),c=s.entries,u=s.keys,l=s.values,h=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),d=h.checkIterable,f=h.isCallable,p=h.isConstructor,m=h.maybeAddFunctions,g=h.maybeAddIterator,b=h.registerPolyfill,y=h.toInteger,v=h.toLength,w=h.toObject;return b(a),{get from(){return t},get of(){return e},get fill(){return n},get find(){return i},get findIndex(){return r},get polyfillArray(){return a}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Array"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Object",[],function(){"use strict";function t(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function e(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e],r=h(i),o=r.length;for(n=0;o>n;n++){var a=r[n];d[a]||(t[a]=i[a])}}return t}function n(t,e){var n,i,r=l(e),o=r.length;for(n=0;o>n;n++){var a=r[n];d[a]||(i=u(e,r[n]),c(t,r[n],i))}return t}function i(i){var r=i.Object;o(r,["assign",e,"is",t,"mixin",n])}var r=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),o=r.maybeAddFunctions,a=r.registerPolyfill,s=$traceurRuntime,c=s.defineProperty,u=s.getOwnPropertyDescriptor,l=s.getOwnPropertyNames,h=s.keys,d=s.privateNames;return a(i),{get is(){return t},get assign(){return e},get mixin(){return n},get polyfillObject(){return i}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Object"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/Number",[],function(){"use strict";function t(t){return a(t)&&d(t)}function e(e){return t(e)&&l(e)===e}function n(t){return a(t)&&f(t)}function i(e){if(t(e)){var n=l(e);if(n===e)return h(n)<=p}return!1}function r(r){var o=r.Number;s(o,["MAX_SAFE_INTEGER",p,"MIN_SAFE_INTEGER",m,"EPSILON",g]),c(o,["isFinite",t,"isInteger",e,"isNaN",n,"isSafeInteger",i])}var o=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils"),a=o.isNumber,s=o.maybeAddConsts,c=o.maybeAddFunctions,u=o.registerPolyfill,l=o.toInteger,h=Math.abs,d=isFinite,f=isNaN,p=Math.pow(2,53)-1,m=-Math.pow(2,53)+1,g=Math.pow(2,-52);return u(r),{get MAX_SAFE_INTEGER(){return p},get MIN_SAFE_INTEGER(){return m},get EPSILON(){return g},get isFinite(){return t},get isInteger(){return e},get isNaN(){return n},get isSafeInteger(){return i},get polyfillNumber(){return r}}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/Number"),System.register("traceur-runtime@0.0.62/src/runtime/polyfills/polyfills",[],function(){"use strict";var t=System.get("traceur-runtime@0.0.62/src/runtime/polyfills/utils").polyfillAll;t(this);var e=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(n){e(n),t(n)},{}}),System.get("traceur-runtime@0.0.62/src/runtime/polyfills/polyfills")}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],4:[function(t,e){function n(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):void t.attachEvent("on"+e,n)}function i(t){return"keypress"==t.type?String.fromCharCode(t.which):k[t.which]?k[t.which]:E[t.which]?E[t.which]:String.fromCharCode(t.which).toLowerCase()}function r(t){var e=t.target||t.srcElement,n=e.tagName;return(" "+e.className+" ").indexOf(" mousetrap ")>-1?!1:"INPUT"==n||"SELECT"==n||"TEXTAREA"==n||e.contentEditable&&"true"==e.contentEditable}function o(t,e){return t.sort().join(",")===e.sort().join(",")}function a(t){t=t||{};var e,n=!1;for(e in S)t[e]?n=!0:S[e]=0;n||(O=!1)}function s(t,e,n,i,r){var a,s,c=[];if(!_[t])return[];for("keyup"==n&&d(t)&&(e=[t]),a=0;a<_[t].length;++a)s=_[t][a],s.seq&&S[s.seq]!=s.level||n==s.action&&("keypress"==n||o(e,s.modifiers))&&(i&&s.combo==r&&_[t].splice(a,1),c.push(s));return c}function c(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function u(t,e){t(e)===!1&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.returnValue=!1,e.cancelBubble=!0)}function l(t,e){if(!r(e)){var n,i=s(t,c(e),e.type),o={},l=!1;for(n=0;n<i.length;++n)i[n].seq?(l=!0,o[i[n].seq]=1,u(i[n].callback,e)):l||O||u(i[n].callback,e);e.type!=O||d(t)||a(o)}}function h(t){t.which="number"==typeof t.which?t.which:t.keyCode;var e=i(t);if(e)return"keyup"==t.type&&P==e?void(P=!1):void l(e,t)}function d(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function f(){clearTimeout(w),w=setTimeout(a,1e3)}function p(){if(!v){v={};for(var t in k)t>95&&112>t||k.hasOwnProperty(t)&&(v[k[t]]=t)}return v}function m(t,e,n){return n||(n=p()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function g(t,e,n,r){S[t]=0,r||(r=m(e[0],[]));var o,s=function(){O=r,++S[t],f()},c=function(t){u(n,t),"keyup"!==r&&(P=i(t)),setTimeout(a,10)};for(o=0;o<e.length;++o)b(e[o],o<e.length-1?s:c,r,t,o)}function b(t,e,n,i,r){t=t.replace(/\s+/g," ");var o,a,c,u=t.split(" "),l=[];if(u.length>1)return g(t,u,e,n);for(c="+"===t?["+"]:t.split("+"),o=0;o<c.length;++o)a=c[o],C[a]&&(a=C[a]),n&&"keypress"!=n&&T[a]&&(a=T[a],l.push("shift")),d(a)&&l.push(a);n=m(a,l,n),_[a]||(_[a]=[]),s(a,l,n,!i,t),_[a][i?"unshift":"push"]({callback:e,modifiers:l,action:n,seq:i,level:r,combo:t})}function y(t,e,n){for(var i=0;i<t.length;++i)b(t[i],e,n)}for(var v,w,k={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},E={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},C={option:"alt",command:"meta","return":"enter",escape:"esc"},_={},A={},S={},P=!1,O=!1,I=1;20>I;++I)k[111+I]="f"+I;for(I=0;9>=I;++I)k[I+96]=I;n(document,"keypress",h),n(document,"keydown",h),n(document,"keyup",h);var x={bind:function(t,e,n){return y(t instanceof Array?t:[t],e,n),A[t+":"+n]=e,this},unbind:function(t,e){return A[t+":"+e]&&(delete A[t+":"+e],this.bind(t,function(){},e)),this},trigger:function(t,e){return A[t+":"+e](),this},reset:function(){return _={},A={},this}};e.exports=x},{}],5:[function(t,e){!function(t){"undefined"!=typeof define&&define.amd?define([],t):"undefined"!=typeof e&&e.exports?e.exports=t():window.scrollMonitor=t()}(function(){function t(){if(s.viewportTop=a(),s.viewportBottom=s.viewportTop+s.viewportHeight,s.documentHeight=v(),s.documentHeight!==w){for(E=c.length;E--;)c[E].recalculateLocation();w=s.documentHeight}}function e(){s.viewportHeight=y(),t(),i()}function n(){clearTimeout(T),T=setTimeout(e,100)}function i(){for(C=c.length;C--;)c[C].update();for(C=c.length;C--;)c[C].triggerCallbacks()}function r(t,e){function n(t){if(0!==t.length)for(w=t.length;w--;)E=t[w],E.callback.call(i,k),E.isOne&&t.splice(w,1)}var i=this;this.watchItem=t,this.offsets=e?e===+e?{top:e,bottom:e}:{top:e.top||b.top,bottom:e.bottom||b.bottom}:b,this.callbacks={};for(var r=0,o=g.length;o>r;r++)i.callbacks[g[r]]=[];this.locked=!1;var a,c,y,v,w,E;this.triggerCallbacks=function(){switch(this.isInViewport&&!a&&n(this.callbacks[l]),this.isFullyInViewport&&!c&&n(this.callbacks[h]),this.isAboveViewport!==y&&this.isBelowViewport!==v&&(n(this.callbacks[u]),c||this.isFullyInViewport||(n(this.callbacks[h]),n(this.callbacks[f])),a||this.isInViewport||(n(this.callbacks[l]),n(this.callbacks[d]))),!this.isFullyInViewport&&c&&n(this.callbacks[f]),!this.isInViewport&&a&&n(this.callbacks[d]),this.isInViewport!==a&&n(this.callbacks[u]),!0){case a!==this.isInViewport:case c!==this.isFullyInViewport:case y!==this.isAboveViewport:case v!==this.isBelowViewport:n(this.callbacks[m])}a=this.isInViewport,c=this.isFullyInViewport,y=this.isAboveViewport,v=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var t=this.top,e=this.bottom;if(this.watchItem.nodeName){var i=this.watchItem.style.display;"none"===i&&(this.watchItem.style.display="");var r=this.watchItem.getBoundingClientRect();this.top=r.top+s.viewportTop,this.bottom=r.bottom+s.viewportTop,"none"===i&&(this.watchItem.style.display=i)}else this.watchItem===+this.watchItem?this.top=this.bottom=this.watchItem>0?this.watchItem:s.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===t&&void 0===e||this.top===t&&this.bottom===e||n(this.callbacks[p])}},this.recalculateLocation(),this.update(),a=this.isInViewport,c=this.isFullyInViewport,y=this.isAboveViewport,v=this.isBelowViewport}function o(e){k=e,t(),i()}var a=function(){return window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop},s={},c=[],u="visibilityChange",l="enterViewport",h="fullyEnterViewport",d="exitViewport",f="partiallyExitViewport",p="locationChange",m="stateChange",g=[u,l,h,d,f,p,m],b={top:0,bottom:0},y=function(){return window.innerHeight||document.documentElement.clientHeight},v=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)};s.viewportTop=null,s.viewportBottom=null,s.documentHeight=null,s.viewportHeight=y();var w,k,E,T,C;r.prototype={on:function(t,e,n){switch(!0){case t===u&&!this.isInViewport&&this.isAboveViewport:case t===l&&this.isInViewport:case t===h&&this.isFullyInViewport:case t===d&&this.isAboveViewport&&!this.isInViewport:case t===f&&this.isAboveViewport:if(e.call(this,k),n)return}if(!this.callbacks[t])throw new Error("Tried to add a scroll monitor listener of type "+t+". Your options are: "+g.join(", "));this.callbacks[t].push({callback:e,isOne:n||!1})},off:function(t,e){if(!this.callbacks[t])throw new Error("Tried to remove a scroll monitor listener of type "+t+". Your options are: "+g.join(", "));for(var n,i=0;n=this.callbacks[t][i];i++)if(n.callback===e){this.callbacks[t].splice(i,1);break}},one:function(t,e){this.on(t,e,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<s.viewportTop,this.isBelowViewport=this.bottom>s.viewportBottom,this.isInViewport=this.top<=s.viewportBottom&&this.bottom>=s.viewportTop,this.isFullyInViewport=this.top>=s.viewportTop&&this.bottom<=s.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=c.indexOf(this),e=this;c.splice(t,1);for(var n=0,i=g.length;i>n;n++)e.callbacks[g[n]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var _=function(t){return function(e,n){this.on.call(this,t,e,n)}},A=0,S=g.length;S>A;A++){var P=g[A];r.prototype[P]=_(P)}try{t()}catch(O){try{window.$(t)}catch(O){throw new Error("If you must put scrollMonitor in the <head>, you must use jQuery.")}}return window.addEventListener?(window.addEventListener("scroll",o),window.addEventListener("resize",n)):(window.attachEvent("onscroll",o),window.attachEvent("onresize",n)),s.beget=s.create=function(t,e){"string"==typeof t?t=document.querySelector(t):t&&t.length>0&&(t=t[0]);var n=new r(t,e);return c.push(n),n.update(),n},s.update=function(){k=null,t(),i()},s.recalculateLocations=function(){s.documentHeight=0,s.update()},s})},{}],6:[function(t,e){e.exports={name:"clappr",version:"0.0.70",description:"An extensible media player for the web",main:"dist/clappr.min.js",scripts:{test:"./node_modules/.bin/gulp release && ./node_modules/.bin/karma start --single-run --browsers Firefox"},repository:{type:"git",url:"git@github.com:globocom/clappr.git"},author:"Globo.com",license:"ISC",bugs:{url:"https://github.com/globocom/clappr/issues"},browser:{zepto:"clappr-zepto"},homepage:"https://github.com/globocom/clappr",devDependencies:{browserify:"^7.0.1",chai:"1.10.0","compass-mixins":"0.12.3",dotenv:"^0.4.0",es6ify:"~1.4.0",exorcist:"^0.1.6",express:"^4.6.1","express-alias":"0.4.0",glob:"^4.0.2",gulp:"^3.8.1","clappr-zepto":"0.0.2","gulp-compressor":"^0.1.0","gulp-jshint":"1.9.0","gulp-livereload":"^2.1.0","gulp-minify-css":"~0.3.5","gulp-rename":"^1.2.0","gulp-sass":"1.0.0","gulp-streamify":"0.0.5","gulp-uglify":"^1.0.1","gulp-util":"3.0.1",karma:"^0.12.17","karma-browserify":"^1.0.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^0.1.4","karma-cli":"0.0.4","karma-firefox-launcher":"^0.1.3","karma-jasmine":"^0.2.2","karma-jquery":"^0.1.0","karma-mocha":"^0.1.4","karma-safari-launcher":"^0.1.1","karma-sinon":"^1.0.3","karma-sinon-chai":"^0.2.0",mkdirp:"^0.5.0",s3:"^4.1.1",scp:"0.0.3",sinon:"^1.10.2",traceur:"0.0.72","vinyl-source-stream":"^1.0.0","vinyl-transform":"0.0.1",watchify:"^2.0.0",yargs:"1.3.3"},dependencies:{underscore:"1.7.0",mousetrap:"0.0.1",scrollmonitor:"^1.0.8"}}},{}],7:[function(t,e){"use strict";var n=t("underscore");e.exports={media_control:n.template('<div class="media-control-background" data-background></div><div class="media-control-layer" data-controls><% var renderBar=function(name) { %><div class="bar-container" data-<%= name %>><div class="bar-background" data-<%= name %>><div class="bar-fill-1" data-<%= name %>></div><div class="bar-fill-2" data-<%= name %>></div><div class="bar-hover" data-<%= name %>></div></div><div class="bar-scrubber" data-<%= name %>><div class="bar-scrubber-icon" data-<%= name %>></div></div></div><% }; %><% var renderSegmentedBar=function(name, segments) { segments=segments || 10; %><div class="bar-container" data-<%= name %>><% for (var i = 0; i < segments; i++) { %><div class="segmented-bar-element" data-<%= name %>></div><% } %></div><% }; %><% var renderDrawer=function(name, renderContent) { %><div class="drawer-container" data-<%= name %>><div class="drawer-icon-container" data-<%= name %>><div class="drawer-icon media-control-icon" data-<%= name %>></div><span class="drawer-text" data-<%= name %>></span></div><% renderContent(name); %></div><% }; %><% var renderIndicator=function(name) { %><div class="media-control-indicator" data-<%= name %>></div><% }; %><% var renderButton=function(name) { %><button class="media-control-button media-control-icon" data-<%= name %>></button><% }; %><% var templates={ bar: renderBar, segmentedBar: renderSegmentedBar, }; var render=function(settingsList) { _.each(settingsList, function(setting) { if(setting === "seekbar") { renderBar(setting); } else if (setting === "volume") { renderDrawer(setting, settings.volumeBarTemplate ? templates[settings.volumeBarTemplate] : function(name) { return renderSegmentedBar(name); }); } else if (setting === "duration" || setting=== "position") { renderIndicator(setting); } else { renderButton(setting); } }); }; %><% if (settings.default && settings.default.length) { %><div class="media-control-center-panel" data-media-control><% render(settings.default); %></div><% } %><% if (settings.left && settings.left.length) { %><div class="media-control-left-panel" data-media-control><% render(settings.left); %></div><% } %><% if (settings.right && settings.right.length) { %><div class="media-control-right-panel" data-media-control><% render(settings.right); %></div><% } %></div>'),seek_time:n.template("<span data-seek-time></span>"),flash:n.template('<param name="movie" value="<%= swfPath %>"><param name="quality" value="autohigh"><param name="swliveconnect" value="true"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#001122"><param name="allowFullScreen" value="false"><param name="wmode" value="transparent"><param name="tabindex" value="1"><param name=FlashVars value="playbackId=<%= playbackId %>" /><embed type="application/x-shockwave-flash" disabled tabindex="-1" enablecontextmenu="false" allowScriptAccess="always" quality="autohight" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" swliveconnect="true" type="application/x-shockwave-flash" allowfullscreen="false" bgcolor="#000000" FlashVars="playbackId=<%= playbackId %>" src="<%= swfPath %>"></embed>'),hls:n.template('<param name="movie" value="<%= swfPath %>?inline=1"><param name="quality" value="autohigh"><param name="swliveconnect" value="true"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#001122"><param name="allowFullScreen" value="false"><param name="wmode" value="transparent"><param name="tabindex" value="1"><param name=FlashVars value="playbackId=<%= playbackId %>" /><embed type="application/x-shockwave-flash" tabindex="1" enablecontextmenu="false" allowScriptAccess="always" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" swliveconnect="true" type="application/x-shockwave-flash" allowfullscreen="false" bgcolor="#000000" FlashVars="playbackId=<%= playbackId %>" src="<%= swfPath %>"></embed>'),html5_video:n.template('<source src="<%=src%>" type="<%=type%>">'),no_op:n.template("<p data-no-op-msg>Something went wrong :(</p>"),background_button:n.template('<div class="background-button-wrapper" data-background-button><button class="background-button-icon" data-background-button></button></div>'),dvr_controls:n.template('<div class="live-info">LIVE</div><button class="live-button">BACK TO LIVE</button>'),poster:n.template('<div class="play-wrapper" data-poster><span class="poster-icon play" data-poster/></div>'),spinner_three_bounce:n.template("<div data-bounce1></div><div data-bounce2></div><div data-bounce3></div>"),watermark:n.template('<div data-watermark data-watermark-<%=position %>><img src="<%= imageUrl %>"></div>'),CSS:{container:".container[data-container]{position:absolute;background-color:#000;height:100%;width:100%}.container[data-container].pointer-enabled{cursor:pointer}",core:'[data-player]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);position:relative;margin:0;padding:0;border:0;height:594px;width:1055px;font-style:normal;font-weight:400;text-align:center;overflow:hidden;font-size:100%;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;text-shadow:0 0 0;box-sizing:border-box}[data-player] a,[data-player] abbr,[data-player] acronym,[data-player] address,[data-player] applet,[data-player] article,[data-player] aside,[data-player] audio,[data-player] b,[data-player] big,[data-player] blockquote,[data-player] canvas,[data-player] caption,[data-player] center,[data-player] cite,[data-player] code,[data-player] dd,[data-player] del,[data-player] details,[data-player] dfn,[data-player] div,[data-player] dl,[data-player] dt,[data-player] em,[data-player] embed,[data-player] fieldset,[data-player] figcaption,[data-player] figure,[data-player] footer,[data-player] form,[data-player] h1,[data-player] h2,[data-player] h3,[data-player] h4,[data-player] h5,[data-player] h6,[data-player] header,[data-player] hgroup,[data-player] i,[data-player] iframe,[data-player] img,[data-player] ins,[data-player] kbd,[data-player] label,[data-player] legend,[data-player] li,[data-player] mark,[data-player] menu,[data-player] nav,[data-player] object,[data-player] ol,[data-player] output,[data-player] p,[data-player] pre,[data-player] q,[data-player] ruby,[data-player] s,[data-player] samp,[data-player] section,[data-player] small,[data-player] span,[data-player] strike,[data-player] strong,[data-player] sub,[data-player] summary,[data-player] sup,[data-player] table,[data-player] tbody,[data-player] td,[data-player] tfoot,[data-player] th,[data-player] thead,[data-player] time,[data-player] tr,[data-player] tt,[data-player] u,[data-player] ul,[data-player] var,[data-player] video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}[data-player] table{border-collapse:collapse;border-spacing:0}[data-player] caption,[data-player] td,[data-player] th{text-align:left;font-weight:400;vertical-align:middle}[data-player] blockquote,[data-player] q{quotes:none}[data-player] blockquote:after,[data-player] blockquote:before,[data-player] q:after,[data-player] q:before{content:"";content:none}[data-player] a img{border:none}[data-player] *{max-width:initial;box-sizing:inherit;float:initial}[data-player].fullscreen{width:100%;height:100%}[data-player].nocursor{cursor:none}[data-player] .clappr-style{display:none!important}@media screen{[data-player]{opacity:.99}}',media_control:'@font-face{font-family:Player;src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot);src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot?#iefix) format("embedded-opentype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.ttf) format("truetype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.svg#player) format("svg")}.media-control-notransition{-webkit-transition:none!important;-webkit-transition-delay:0s;-moz-transition:none!important;-o-transition:none!important;transition:none!important}.media-control[data-media-control]{position:absolute;width:100%;height:100%;z-index:9999;pointer-events:none}.media-control[data-media-control].dragging{pointer-events:auto;cursor:-webkit-grabbing!important;cursor:grabbing!important}.media-control[data-media-control].dragging *{cursor:-webkit-grabbing!important;cursor:grabbing!important}.media-control[data-media-control] .media-control-background[data-background]{position:absolute;height:40%;width:100%;bottom:0;background-image:-owg(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-webkit(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-moz(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:-o(linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9)));background-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.9));-webkit-transition:opacity .6s;-webkit-transition-delay:ease-out;-moz-transition:opacity .6s ease-out;-o-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.media-control[data-media-control] .media-control-icon{font-family:Player;font-weight:400;font-style:normal;font-size:26px;line-height:32px;letter-spacing:0;speak:none;color:#fff;opacity:.5;vertical-align:middle;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.media-control[data-media-control] .media-control-icon:hover{color:#fff;opacity:.75;text-shadow:rgba(255,255,255,.8) 0 0 5px}.media-control[data-media-control].media-control-hide .media-control-background[data-background]{opacity:0}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls]{bottom:-50px}.media-control[data-media-control].media-control-hide .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-layer[data-controls]{position:absolute;bottom:7px;width:100%;height:32px;vertical-align:middle;pointer-events:auto;-webkit-transition:bottom .4s;-webkit-transition-delay:ease-out;-moz-transition:bottom .4s ease-out;-o-transition:bottom .4s ease-out;transition:bottom .4s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-left-panel[data-media-control]{position:absolute;top:0;left:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-center-panel[data-media-control]{height:100%;text-align:center;line-height:32px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-right-panel[data-media-control]{position:absolute;top:0;right:4px;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button{background-color:transparent;border:0;margin:0 6px;padding:0;cursor:pointer;display:inline-block}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button:focus{outline:0}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-play]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-pause]:before{content:"\\e002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-stop]:before{content:"\\e003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]{float:right;background-color:transparent;border:0;height:100%}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen]:before{content:"\\e006"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-fullscreen].shrink:before{content:"\\e007"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]{cursor:default;float:right;background-color:transparent;border:0;height:100%;opacity:0}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator]:before{content:"\\e008"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-hd-indicator].enabled:hover{opacity:1;text-shadow:none}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].playing:before{content:"\\e002"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playpause].paused:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]{float:left;height:100%;font-size:20px}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop]:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].playing:before{content:"\\e003"}.media-control[data-media-control] .media-control-layer[data-controls] button.media-control-button[data-playstop].stopped:before{content:"\\e001"}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration],.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{display:inline-block;font-size:10px;color:#fff;cursor:default;line-height:32px;position:relative}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-position]{margin-left:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]{color:rgba(255,255,255,.5);margin-right:6px}.media-control[data-media-control] .media-control-layer[data-controls] .media-control-indicator[data-duration]:before{content:"|";margin:0 3px}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]{position:absolute;top:-20px;left:0;display:inline-block;vertical-align:middle;width:100%;height:25px;cursor:pointer}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar]{width:100%;height:1px;position:relative;top:12px;background-color:#666}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-1[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#c2c2c2;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{position:absolute;top:0;left:0;width:0;height:100%;background-color:#005aff;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:0;position:absolute;top:-3px;width:5px;height:7px;background-color:rgba(255,255,255,.5);-webkit-transition:opacity .1s;-webkit-transition-delay:ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;transition:opacity .1s ease}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar]:hover .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled{cursor:default}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar].seek-disabled:hover .bar-background[data-seekbar] .bar-hover[data-seekbar]{opacity:0}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar]{position:absolute;top:2px;left:0;width:20px;height:20px;opacity:1;-webkit-transition:all .1s;-webkit-transition-delay:ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-scrubber[data-seekbar] .bar-scrubber-icon[data-seekbar]{position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:10px;box-shadow:0 0 0 6px rgba(255,255,255,.2);background-color:#fff}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume]{float:right;display:inline-block;height:32px;cursor:pointer;margin:0 6px;box-sizing:border-box}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume]{float:left;bottom:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]{background-color:transparent;border:0;box-sizing:content-box;width:16px;height:32px;margin-right:6px;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:hover{opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume]:before{content:"\\e004"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted{opacity:.5}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:hover{opacity:.7}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .drawer-icon-container[data-volume] .drawer-icon[data-volume].muted:before{content:"\\e005"}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume]{float:left;position:relative;top:6px;width:42px;height:18px;padding:3px 0;overflow:hidden;-webkit-transition:width .2s;-webkit-transition-delay:ease-out;-moz-transition:width .2s ease-out;-o-transition:width .2s ease-out;transition:width .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]{float:left;width:4px;padding-left:2px;height:12px;opacity:.5;-webkit-box-shadow:inset 2px 0 0 #fff;-moz-box-shadow:inset 2px 0 0 #fff;-ms-box-shadow:inset 2px 0 0 #fff;-o-box-shadow:inset 2px 0 0 #fff;box-shadow:inset 2px 0 0 #fff;-webkit-transition:-webkit-transform .2s;-webkit-transition-delay:ease-out;-moz-transition:-moz-transform .2s ease-out;-o-transition:-o-transform .2s ease-out;transition:transform .2s ease-out}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume].fill{-webkit-box-shadow:inset 2px 0 0 #fff;-moz-box-shadow:inset 2px 0 0 #fff;-ms-box-shadow:inset 2px 0 0 #fff;-o-box-shadow:inset 2px 0 0 #fff;box-shadow:inset 2px 0 0 #fff;opacity:1}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:nth-of-type(1){padding-left:0}.media-control[data-media-control] .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume] .segmented-bar-element[data-volume]:hover{-webkit-transform:scaleY(1.5);-moz-transform:scaleY(1.5);-ms-transform:scaleY(1.5);-o-transform:scaleY(1.5);transform:scaleY(1.5)}.media-control[data-media-control].w320 .media-control-layer[data-controls] .drawer-container[data-volume] .bar-container[data-volume].volume-bar-hide{height:12px;top:9px;padding:0;width:0}',seek_time:".seek-time[data-seek-time]{position:absolute;width:auto;height:20px;line-height:20px;bottom:55px;background-color:rgba(2,2,2,.5);z-index:9999;-webkit-transition:opacity .1s;-webkit-transition-delay:ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;transition:opacity .1s ease}.seek-time[data-seek-time].hidden[data-seek-time]{opacity:0}.seek-time[data-seek-time] span[data-seek-time]{position:relative;color:#fff;font-size:10px;padding-left:7px;padding-right:7px}",flash:"[data-flash]{position:absolute;height:100%;width:100%;background-color:#000;display:block;pointer-events:none}",hls:"[data-hls]{position:absolute;height:100%;width:100%;background-color:#000;display:block;pointer-events:none;top:0}",html5_video:"[data-html5-video]{position:absolute;height:100%;width:100%;display:block}",no_op:"[data-no-op]{z-index:1000;position:absolute;background-color:#222;height:100%;width:100%}[data-no-op] p[data-no-op-msg]{position:relative;font-size:25px;top:50%;color:#fff}",background_button:'.background-button[data-background-button]{font-family:Player;position:absolute;height:100%;width:100%;background-color:rgba(0,0,0,.2);pointer-events:none;-webkit-transition:all .4s;-webkit-transition-delay:ease-out;-moz-transition:all .4s ease-out;-o-transition:all .4s ease-out;transition:all .4s ease-out}.background-button[data-background-button].hide{background-color:transparent}.background-button[data-background-button].hide .background-button-wrapper[data-background-button]{opacity:0}.background-button[data-background-button] .background-button-wrapper[data-background-button]{position:absolute;overflow:hidden;width:100%;height:25%;line-height:100%;font-size:25%;top:50%;text-align:center}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button]{cursor:pointer;pointer-events:auto;font-family:Player;font-weight:400;font-style:normal;line-height:1;letter-spacing:0;speak:none;color:#fff;opacity:.75;border:0;outline:0;background-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button]:hover{opacity:1;text-shadow:rgba(255,255,255,.8) 0 0 15px}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playing:before{content:"\\e002"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].notplaying:before{content:"\\e001"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playstop.playing:before{content:"\\e003"}.background-button[data-background-button] .background-button-wrapper[data-background-button] .background-button-icon[data-background-button].playstop.notplaying:before{content:"\\e001"}.media-control.media-control-hide[data-media-control] .background-button[data-background-button]{opacity:0}',dvr_controls:'@import url(http://fonts.googleapis.com/css?family=Roboto);.dvr-controls[data-dvr-controls]{display:inline-block;float:left;color:#fff;line-height:32px;font-size:10px;font-weight:700;margin-left:6px}.dvr-controls[data-dvr-controls] .live-info{cursor:default;font-family:Roboto,"Open Sans",Arial,sans-serif}.dvr-controls[data-dvr-controls] .live-info:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#ff0101}.dvr-controls[data-dvr-controls] .live-info.disabled{opacity:.3}.dvr-controls[data-dvr-controls] .live-info.disabled:before{background-color:#fff}.dvr-controls[data-dvr-controls] .live-button{cursor:pointer;outline:0;display:none;border:0;color:#fff;background-color:transparent;height:32px;padding:0;opacity:.7;font-family:Roboto,"Open Sans",Arial,sans-serif;-webkit-transition:all .1s;-webkit-transition-delay:ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease}.dvr-controls[data-dvr-controls] .live-button:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:3.5px;background-color:#fff}.dvr-controls[data-dvr-controls] .live-button:hover{opacity:1;text-shadow:rgba(255,255,255,.75) 0 0 5px}.dvr .dvr-controls[data-dvr-controls] .live-info{display:none}.dvr .dvr-controls[data-dvr-controls] .live-button{display:block}.dvr.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#005aff}.media-control.live[data-media-control] .media-control-layer[data-controls] .bar-container[data-seekbar] .bar-background[data-seekbar] .bar-fill-2[data-seekbar]{background-color:#ff0101}.seek-time[data-seek-time] span[data-duration]{position:relative;color:rgba(255,255,255,.5);font-size:10px;padding-right:7px}.seek-time[data-seek-time] span[data-duration]:before{content:"|";margin-right:7px}',poster:'@font-face{font-family:Player;src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot);src:url(http://cdn.clappr.io/latest/assets/Player-Regular.eot?#iefix) format("embedded-opentype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.ttf) format("truetype"),url(http://cdn.clappr.io/latest/assets/Player-Regular.svg#player) format("svg")}.player-poster[data-poster]{cursor:pointer;position:absolute;height:100%;width:100%;z-index:998;top:0}.player-poster[data-poster] .poster-background[data-poster]{width:100%;height:100%}.player-poster[data-poster] .play-wrapper[data-poster]{position:absolute;width:100%;height:25%;line-height:100%;font-size:25%;top:50%;text-align:center}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]{font-family:Player;font-weight:400;font-style:normal;line-height:1;letter-spacing:0;speak:none;color:#fff;opacity:.75;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transition:opacity text-shadow;-webkit-transition-delay:.1s;-moz-transition:opacity text-shadow .1s;-o-transition:opacity text-shadow .1s;transition:opacity text-shadow .1s ease}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster].play[data-poster]:before{content:"\\e001"}.player-poster[data-poster] .play-wrapper[data-poster] .poster-icon[data-poster]:hover{opacity:1;text-shadow:rgba(255,255,255,.8) 0 0 15px}',spinner_three_bounce:".spinner-three-bounce[data-spinner]{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:999;top:47%;left:0;right:0}.spinner-three-bounce[data-spinner]>div{width:18px;height:18px;background-color:#FFF;border-radius:100%;display:inline-block;-webkit-animation:bouncedelay 1.4s infinite ease-in-out;-moz-animation:bouncedelay 1.4s infinite ease-in-out;-ms-animation:bouncedelay 1.4s infinite ease-in-out;-o-animation:bouncedelay 1.4s infinite ease-in-out;animation:bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both}.spinner-three-bounce[data-spinner] [data-bounce1],.spinner-three-bounce[data-spinner] [data-bounce2]{-webkit-animation-delay:-.32s;-moz-animation-delay:-.32s;-ms-animation-delay:-.32s;-o-animation-delay:-.32s;animation-delay:-.32s}@-moz-keyframes bouncedelay{0%,100%,80%{-moz-transform:scale(0);transform:scale(0)}40%{-moz-transform:scale(1);transform:scale(1)}}@-webkit-keyframes bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@-o-keyframes bouncedelay{0%,100%,80%{-o-transform:scale(0);transform:scale(0)}40%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes bouncedelay{0%,100%,80%{-ms-transform:scale(0);transform:scale(0)}40%{-ms-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}",watermark:"[data-watermark]{position:absolute;margin:100px auto 0;width:70px;text-align:center;z-index:10}[data-watermark-bottom-left]{bottom:10px;left:10px}[data-watermark-bottom-right]{bottom:10px;right:42px}[data-watermark-top-left]{top:-95px;left:10px}[data-watermark-top-right]{top:-95px;right:37px}"}}
},{underscore:"underscore"}],8:[function(t,e){"use strict";var n=t("zepto"),i=t("underscore"),r=t("./jst"),o={getStyleFor:function(t,e){return e=e||{},n('<style class="clappr-style"></style>').html(i.template(r.CSS[t])(e))[0]}};e.exports=o},{"./jst":7,underscore:"underscore",zepto:"zepto"}],9:[function(t,e){"use strict";var n=t("underscore"),i=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i.super=function(t){return r.prototype[t]},i.prototype.getClass=function(){return i},i},r=function(t){t=1e3*t,t=parseInt(t/1e3);var e=t%60;t=parseInt(t/60);var n=t%60;t=parseInt(t/60);var i=t%24,r="";return i&&i>0&&(r+=("0"+i).slice(-2)+":"),r+=("0"+n).slice(-2)+":",r+=("0"+e).slice(-2),r.trim()},o={isFullscreen:function(){return document.webkitIsFullScreen||document.mozFullScreen||!!document.msFullscreenElement||window.iframeFullScreen},requestFullscreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},cancelFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}},a=function(t){var e=n.rest(n.compact(t.match(/t=([0-9]*)h?([0-9]*)m?([0-9]*)s/))).reverse(),i=0,r=1;return n.each(e,function(t){i+=parseInt(t)*r,r=60*r},this),i};e.exports={extend:i,formatTime:r,Fullscreen:o,seekStringToSeconds:a}},{underscore:"underscore"}],10:[function(t,e){"use strict";var n=t("ui_object"),i=t("../../base/styler"),r=t("underscore"),o=t("events"),a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[t]),this.playback=t.playback,this.settings=this.playback.settings,this.isReady=!1,this.mediaControlDisabled=!1,this.plugins=[this.playback],this.bindEvents()},s=a;$traceurRuntime.createClass(a,{get name(){return"Container"},get attributes(){return{"class":"container","data-container":""}},get events(){return{click:"clicked"}},bindEvents:function(){this.listenTo(this.playback,o.PLAYBACK_PROGRESS,this.progress),this.listenTo(this.playback,o.PLAYBACK_TIMEUPDATE,this.timeUpdated),this.listenTo(this.playback,o.PLAYBACK_READY,this.ready),this.listenTo(this.playback,o.PLAYBACK_BUFFERING,this.buffering),this.listenTo(this.playback,o.PLAYBACK_BUFFERFULL,this.bufferfull),this.listenTo(this.playback,o.PLAYBACK_SETTINGSUPDATE,this.settingsUpdate),this.listenTo(this.playback,o.PLAYBACK_LOADEDMETADATA,this.loadedMetadata),this.listenTo(this.playback,o.PLAYBACK_HIGHDEFINITIONUPDATE,this.highDefinitionUpdate),this.listenTo(this.playback,o.PLAYBACK_BITRATE,this.updateBitrate),this.listenTo(this.playback,o.PLAYBACK_PLAYBACKSTATE,this.playbackStateChanged),this.listenTo(this.playback,o.PLAYBACK_DVR,this.playbackDvrStateChanged),this.listenTo(this.playback,o.PLAYBACK_MEDIACONTROL_DISABLE,this.disableMediaControl),this.listenTo(this.playback,o.PLAYBACK_MEDIACONTROL_ENABLE,this.enableMediaControl),this.listenTo(this.playback,o.PLAYBACK_ENDED,this.ended),this.listenTo(this.playback,o.PLAYBACK_PLAY,this.playing),this.listenTo(this.playback,o.PLAYBACK_ERROR,this.error)},"with":function(t){return r.extend(this,t),this},playbackStateChanged:function(){this.trigger(o.CONTAINER_PLAYBACKSTATE)},playbackDvrStateChanged:function(t){this.settings=this.playback.settings,this.dvrInUse=t,this.trigger(o.CONTAINER_PLAYBACKDVRSTATECHANGED,t)},updateBitrate:function(t){this.trigger(o.CONTAINER_BITRATE,t)},statsReport:function(t){this.trigger(o.CONTAINER_STATS_REPORT,t)},getPlaybackType:function(){return this.playback.getPlaybackType()},isDvrEnabled:function(){return!!this.playback.dvrEnabled},isDvrInUse:function(){return!!this.dvrInUse},destroy:function(){this.trigger(o.CONTAINER_DESTROYED,this,this.name),this.playback.destroy(),r(this.plugins).each(function(t){return t.destroy()}),this.$el.remove()},setStyle:function(t){this.$el.css(t)},animate:function(t,e){return this.$el.animate(t,e).promise()},ready:function(){this.isReady=!0,this.trigger(o.CONTAINER_READY,this.name)},isPlaying:function(){return this.playback.isPlaying()},getDuration:function(){return this.playback.getDuration()},error:function(t){this.$el.append(t.render().el),this.trigger(o.CONTAINER_ERROR,{error:t,container:this},this.name)},loadedMetadata:function(t){this.trigger(o.CONTAINER_LOADEDMETADATA,t)},timeUpdated:function(t,e){this.trigger(o.CONTAINER_TIMEUPDATE,t,e,this.name)},progress:function(t,e,n){this.trigger(o.CONTAINER_PROGRESS,t,e,n,this.name)},playing:function(){this.trigger(o.CONTAINER_PLAY,this.name)},play:function(){this.playback.play()},stop:function(){this.trigger(o.CONTAINER_STOP,this.name),this.playback.stop()},pause:function(){this.trigger(o.CONTAINER_PAUSE,this.name),this.playback.pause()},ended:function(){this.trigger(o.CONTAINER_ENDED,this,this.name)},clicked:function(){this.trigger(o.CONTAINER_CLICK,this,this.name)},setCurrentTime:function(t){this.trigger(o.CONTAINER_SEEK,t,this.name),this.playback.seek(t)},setVolume:function(t){this.trigger(o.CONTAINER_VOLUME,t,this.name),this.playback.volume(t)},fullscreen:function(){this.trigger(o.CONTAINER_FULLSCREEN,this.name)},buffering:function(){this.trigger(o.CONTAINER_STATE_BUFFERING,this.name)},bufferfull:function(){this.trigger(o.CONTAINER_STATE_BUFFERFULL,this.name)},addPlugin:function(t){this.plugins.push(t)},hasPlugin:function(t){return!!this.getPlugin(t)},getPlugin:function(t){return r(this.plugins).find(function(e){return e.name===t})},settingsUpdate:function(){this.settings=this.playback.settings,this.trigger(o.CONTAINER_SETTINGSUPDATE)},highDefinitionUpdate:function(){this.trigger(o.CONTAINER_HIGHDEFINITIONUPDATE)},isHighDefinitionInUse:function(){return this.playback.isHighDefinitionInUse()},disableMediaControl:function(){this.mediaControlDisabled=!0,this.trigger(o.CONTAINER_MEDIACONTROL_DISABLE)},enableMediaControl:function(){this.mediaControlDisabled=!1,this.trigger(o.CONTAINER_MEDIACONTROL_ENABLE)},render:function(){var t=i.getStyleFor("container");return this.$el.append(t),this.$el.append(this.playback.render().el),this}},{},n),e.exports=a},{"../../base/styler":8,events:"events",ui_object:"ui_object",underscore:"underscore"}],11:[function(t,e){"use strict";var n=t("underscore"),i=t("base_object"),r=t("container"),o=t("zepto"),a=t("events"),s=function(t,e){$traceurRuntime.superCall(this,c.prototype,"constructor",[t]),this.options=t,this.loader=e},c=s;$traceurRuntime.createClass(s,{createContainers:function(){var t=this;return o.Deferred(function(e){e.resolve(n.map(t.options.sources,function(e){return t.createContainer(e)},t))})},findPlaybackPlugin:function(t){return n.find(this.loader.playbackPlugins,function(e){return e.canPlay(t.toString())},this)},createContainer:function(t){var e=this.findPlaybackPlugin(t),i=n.extend({},this.options,{src:t,autoPlay:!!this.options.autoPlay}),s=new e(i),c=new r({playback:s}),u=o.Deferred();return u.promise(c),this.addContainerPlugins(c,t),this.listenToOnce(c,a.CONTAINER_READY,function(){return u.resolve(c)}),c},addContainerPlugins:function(t,e){n.each(this.loader.containerPlugins,function(i){var r=n.extend(this.options,{container:t,src:e});t.addPlugin(new i(r))},this)}},{},i),e.exports=s},{base_object:"base_object",container:"container",events:"events",underscore:"underscore",zepto:"zepto"}],12:[function(t,e){"use strict";e.exports=t("./container_factory")},{"./container_factory":11}],13:[function(t,e){"use strict";var n=t("underscore"),i=t("zepto"),r=t("ui_object"),o=t("../container_factory"),a=t("../../base/utils").Fullscreen,s=t("../../base/styler"),c=t("media_control"),u=t("player_info"),l=t("mediator"),h=t("events"),d=function(t){var e=this;$traceurRuntime.superCall(this,f.prototype,"constructor",[t]),u.options=t,this.options=t,this.plugins=[],this.containers=[],this.createContainers(t),i(document).bind("fullscreenchange",function(){return e.exit()}),i(document).bind("MSFullscreenChange",function(){return e.exit()}),i(document).bind("mozfullscreenchange",function(){return e.exit()})},f=d;$traceurRuntime.createClass(d,{get events(){return{webkitfullscreenchange:"exit",mousemove:"showMediaControl",mouseleave:"hideMediaControl"}},get attributes(){return{"data-player":""}},createContainers:function(t){var e=this;this.defer=i.Deferred(),this.defer.promise(this),this.containerFactory=new o(t,t.loader),this.containerFactory.createContainers().then(function(t){return e.setupContainers(t)}).then(function(t){return e.resolveOnContainersReady(t)})},updateSize:function(){a.isFullscreen()?this.setFullscreen():this.setPlayerSize(),l.trigger(h.PLAYER_RESIZE)},setFullscreen:function(){this.$el.addClass("fullscreen"),this.$el.removeAttr("style"),u.previousSize=u.currentSize,u.currentSize={width:i(window).width(),height:i(window).height()}},setPlayerSize:function(){this.$el.removeClass("fullscreen"),u.currentSize=u.previousSize,u.previousSize={width:i(window).width(),height:i(window).height()},this.resize(u.currentSize)},resize:function(t){var e=n.pick(t,"width","height");this.$el.css(e),u.previousSize=u.currentSize,u.currentSize=e,l.trigger(h.PLAYER_RESIZE)},resolveOnContainersReady:function(t){var e=this;i.when.apply(i,t).done(function(){return e.defer.resolve(e)})},addPlugin:function(t){this.plugins.push(t)},hasPlugin:function(t){return!!this.getPlugin(t)},getPlugin:function(t){return n(this.plugins).find(function(e){return e.name===t})},load:function(t){var e=this;t=n.isArray(t)?t:[t.toString()],n(this.containers).each(function(t){return t.destroy()}),this.containerFactory.options=n(this.options).extend({sources:t}),this.containerFactory.createContainers().then(function(t){e.setupContainers(t)})},destroy:function(){n(this.containers).each(function(t){return t.destroy()}),n(this.plugins).each(function(t){return t.destroy()}),this.$el.remove(),this.mediaControl.destroy(),i(document).unbind("fullscreenchange"),i(document).unbind("MSFullscreenChange"),i(document).unbind("mozfullscreenchange")},exit:function(){this.updateSize(),this.mediaControl.show()},setMediaControlContainer:function(t){this.mediaControl.setContainer(t),this.mediaControl.render()},disableMediaControl:function(){this.mediaControl.disable(),this.$el.removeClass("nocursor")},enableMediaControl:function(){this.mediaControl.enable()},removeContainer:function(t){this.stopListening(t),this.containers=n.without(this.containers,t)},appendContainer:function(t){this.listenTo(t,h.CONTAINER_DESTROYED,this.removeContainer),this.el.appendChild(t.render().el),this.containers.push(t)},setupContainers:function(t){return n.map(t,this.appendContainer,this),this.setupMediaControl(this.getCurrentContainer()),this.render(),this.$el.appendTo(this.options.parentElement),t},createContainer:function(t){var e=this.containerFactory.createContainer(t);return this.appendContainer(e),e},setupMediaControl:function(t){this.mediaControl?this.mediaControl.setContainer(t):(this.mediaControl=this.createMediaControl(n.extend({container:t},this.options)),this.listenTo(this.mediaControl,h.MEDIACONTROL_FULLSCREEN,this.toggleFullscreen),this.listenTo(this.mediaControl,h.MEDIACONTROL_SHOW,this.onMediaControlShow.bind(this,!0)),this.listenTo(this.mediaControl,h.MEDIACONTROL_HIDE,this.onMediaControlShow.bind(this,!1)))},createMediaControl:function(t){return t.mediacontrol&&t.mediacontrol.external?new t.mediacontrol.external(t):new c(t)},getCurrentContainer:function(){return this.containers[0]},toggleFullscreen:function(){a.isFullscreen()?(a.cancelFullscreen(),this.$el.removeClass("fullscreen nocursor")):(a.requestFullscreen(this.el),this.$el.addClass("fullscreen")),this.mediaControl.show()},showMediaControl:function(t){this.mediaControl.show(t)},hideMediaControl:function(t){this.mediaControl.hide(t)},onMediaControlShow:function(t){t?this.$el.removeClass("nocursor"):a.isFullscreen()&&this.$el.addClass("nocursor")},render:function(){var t=s.getStyleFor("core");return this.$el.append(t),this.$el.append(this.mediaControl.render().el),this.options.width=this.options.width||this.$el.width(),this.options.height=this.options.height||this.$el.height(),u.previousSize=u.currentSize=n.pick(this.options,"width","height"),this.updateSize(),this}},{},r),e.exports=d},{"../../base/styler":8,"../../base/utils":9,"../container_factory":12,events:"events",media_control:"media_control",mediator:"mediator",player_info:"player_info",ui_object:"ui_object",underscore:"underscore",zepto:"zepto"}],14:[function(t,e){"use strict";var n=t("underscore"),i=t("base_object"),r=t("core"),o=function(t,e){this.player=t,this.options=t.options,this.loader=e,this.options.loader=this.loader};$traceurRuntime.createClass(o,{create:function(){return this.core=new r(this.options),this.core.then(this.addCorePlugins.bind(this)),this.core},addCorePlugins:function(){return n.each(this.loader.corePlugins,function(t){var e=new t(this.core);this.core.addPlugin(e),this.setupExternalInterface(e)},this),this.core},setupExternalInterface:function(t){n.each(t.getExternalInterface(),function(e,n){this.player[n]=e.bind(t)},this)}},{},i),e.exports=o},{base_object:"base_object",core:"core",underscore:"underscore"}],15:[function(t,e){"use strict";e.exports=t("./core_factory")},{"./core_factory":14}],16:[function(t,e){"use strict";var n=t("base_object"),i=(t("zepto"),t("../player"),function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.options=t,this.createIframe()}),r=i;$traceurRuntime.createClass(i,{createIframe:function(){this.iframe=document.createElement("iframe"),this.iframe.setAttribute("frameborder",0),this.iframe.setAttribute("id",this.uniqueId),this.iframe.setAttribute("allowfullscreen",!0),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("src","http://cdn.clappr.io/latest/assets/iframe.htm"+this.buildQueryString()),this.iframe.setAttribute("width",this.options.width),this.iframe.setAttribute("height",this.options.height)},attachTo:function(t){t.appendChild(this.iframe)},addEventListeners:function(){var t=this;this.iframe.contentWindow.addEventListener("fullscreenchange",function(){return t.updateSize()}),this.iframe.contentWindow.addEventListener("webkitfullscreenchange",function(){return t.updateSize()}),this.iframe.contentWindow.addEventListener("mozfullscreenchange",function(){return t.updateSize()})},buildQueryString:function(){var t="";for(var e in this.options)t+=t?"&":"?",t+=encodeURIComponent(e)+"="+encodeURIComponent(this.options[e]);return t}},{},n),e.exports=i},{"../player":21,base_object:"base_object",zepto:"zepto"}],17:[function(t,e){"use strict";e.exports=t("./iframe_player")},{"./iframe_player":16}],18:[function(t,e){"use strict";e.exports=t("./loader")},{"./loader":19}],19:[function(t,e){"use strict";var n=t("base_object"),i=t("underscore"),r=t("player_info"),o=t("html5_video"),a=t("flash"),s=t("html5_audio"),c=t("hls"),u=t("../../playbacks/no_op"),l=t("../../plugins/spinner_three_bounce"),h=t("../../plugins/stats"),d=t("../../plugins/watermark"),f=t("poster"),p=t("../../plugins/google_analytics"),m=t("../../plugins/click_to_pause"),g=t("../../plugins/background_button"),b=t("../../plugins/dvr_controls"),y=function(t){$traceurRuntime.superCall(this,v.prototype,"constructor",[]),this.playbackPlugins=[a,o,s,c,u],this.containerPlugins=[l,d,f,h,p,m],this.corePlugins=[g,b],t&&this.addExternalPlugins(t)},v=y;$traceurRuntime.createClass(y,{addExternalPlugins:function(t){var e=function(t){return t.prototype.name};t.playback&&(this.playbackPlugins=i.uniq(t.playback.concat(this.playbackPlugins),e)),t.container&&(this.containerPlugins=i.uniq(t.container.concat(this.containerPlugins),e)),t.core&&(this.corePlugins=i.uniq(t.core.concat(this.corePlugins),e)),r.playbackPlugins=this.playbackPlugins},getPlugin:function(t){var e=i.union(this.containerPlugins,this.playbackPlugins,this.corePlugins);return i.find(e,function(e){return e.prototype.name===t})}},{},n),e.exports=y},{"../../playbacks/no_op":28,"../../plugins/background_button":31,"../../plugins/click_to_pause":33,"../../plugins/dvr_controls":35,"../../plugins/google_analytics":37,"../../plugins/spinner_three_bounce":41,"../../plugins/stats":43,"../../plugins/watermark":45,base_object:"base_object",flash:"flash",hls:"hls",html5_audio:"html5_audio",html5_video:"html5_video",player_info:"player_info",poster:"poster",underscore:"underscore"}],20:[function(t,e){"use strict";var n=t("underscore"),i=t("zepto"),r=t("../../base/jst"),o=t("../../base/styler"),a=t("ui_object"),s=t("../../base/utils"),c=t("mousetrap"),u=t("../seek_time"),l=t("mediator"),h=t("player_info"),d=t("events"),f=function(t){var e=this;$traceurRuntime.superCall(this,p.prototype,"constructor",[t]),this.seekTime=new u(this),this.options=t,this.mute=this.options.mute,this.currentVolume=this.options.mute?0:100,this.container=t.container,this.container.setVolume(this.currentVolume),this.keepVisible=!1,this.addEventListeners(),this.settings={left:["play","stop","pause"],right:["volume"],"default":["position","seekbar","duration"]},this.settings=n.isEmpty(this.container.settings)?this.settings:this.container.settings,this.disabled=!1,(this.container.mediaControlDisabled||this.options.chromeless)&&this.disable(),i(document).bind("mouseup",function(t){return e.stopDrag(t)}),i(document).bind("mousemove",function(t){return e.updateDrag(t)}),l.on(d.PLAYER_RESIZE,function(){return e.playerResize()})},p=f;$traceurRuntime.createClass(f,{get name(){return"MediaControl"},get attributes(){return{"class":"media-control","data-media-control":""}},get events(){return{"click [data-play]":"play","click [data-pause]":"pause","click [data-playpause]":"togglePlayPause","click [data-stop]":"stop","click [data-playstop]":"togglePlayStop","click [data-fullscreen]":"toggleFullscreen","click .bar-container[data-seekbar]":"seek","click .bar-container[data-volume]":"volume","click .drawer-icon[data-volume]":"toggleMute","mouseenter .drawer-container[data-volume]":"showVolumeBar","mouseleave .drawer-container[data-volume]":"hideVolumeBar","mousedown .bar-scrubber[data-volume]":"startVolumeDrag","mousedown .bar-scrubber[data-seekbar]":"startSeekDrag","mousemove .bar-container[data-seekbar]":"mousemoveOnSeekBar","mouseleave .bar-container[data-seekbar]":"mouseleaveOnSeekBar","mouseenter .media-control-layer[data-controls]":"setKeepVisible","mouseleave .media-control-layer[data-controls]":"resetKeepVisible"}},get template(){return r.media_control},addEventListeners:function(){this.listenTo(this.container,d.CONTAINER_PLAY,this.changeTogglePlay),this.listenTo(this.container,d.CONTAINER_TIMEUPDATE,this.updateSeekBar),this.listenTo(this.container,d.CONTAINER_PROGRESS,this.updateProgressBar),this.listenTo(this.container,d.CONTAINER_SETTINGSUPDATE,this.settingsUpdate),this.listenTo(this.container,d.CONTAINER_PLAYBACKDVRSTATECHANGED,this.settingsUpdate),this.listenTo(this.container,d.CONTAINER_HIGHDEFINITIONUPDATE,this.highDefinitionUpdate),this.listenTo(this.container,d.CONTAINER_MEDIACONTROL_DISABLE,this.disable),this.listenTo(this.container,d.CONTAINER_MEDIACONTROL_ENABLE,this.enable),this.listenTo(this.container,d.CONTAINER_ENDED,this.ended)},disable:function(){this.disabled=!0,this.hide(),this.$el.hide()},enable:function(){this.options.chromeless||(this.disabled=!1,this.show())},play:function(){this.container.play()},pause:function(){this.container.pause()},stop:function(){this.container.stop()},changeTogglePlay:function(){this.container.isPlaying()?(this.$playPauseToggle.removeClass("paused").addClass("playing"),this.$playStopToggle.removeClass("stopped").addClass("playing"),this.trigger(d.MEDIACONTROL_PLAYING)):(this.$playPauseToggle.removeClass("playing").addClass("paused"),this.$playStopToggle.removeClass("playing").addClass("stopped"),this.trigger(d.MEDIACONTROL_NOTPLAYING))},mousemoveOnSeekBar:function(t){if(this.container.settings.seekEnabled){var e=t.pageX-this.$seekBarContainer.offset().left-this.$seekBarHover.width()/2;this.$seekBarHover.css({left:e})}this.trigger(d.MEDIACONTROL_MOUSEMOVE_SEEKBAR,t)},mouseleaveOnSeekBar:function(t){this.trigger(d.MEDIACONTROL_MOUSELEAVE_SEEKBAR,t)},playerResize:function(){s.Fullscreen.isFullscreen()?this.$fullscreenToggle.addClass("shrink"):this.$fullscreenToggle.removeClass("shrink"),this.$el.removeClass("w320"),h.currentSize.width<=320&&this.$el.addClass("w320")},togglePlayPause:function(){this.container.isPlaying()?this.container.pause():this.container.play(),this.changeTogglePlay()},togglePlayStop:function(){this.container.isPlaying()?this.container.stop():this.container.play(),this.changeTogglePlay()},startSeekDrag:function(t){this.container.settings.seekEnabled&&(this.draggingSeekBar=!0,this.$el.addClass("dragging"),this.$seekBarLoaded.addClass("media-control-notransition"),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition"),t&&t.preventDefault())},startVolumeDrag:function(t){this.draggingVolumeBar=!0,this.$el.addClass("dragging"),t&&t.preventDefault()},stopDrag:function(t){this.draggingSeekBar&&this.seek(t),this.$el.removeClass("dragging"),this.$seekBarLoaded.removeClass("media-control-notransition"),this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition dragging"),this.draggingSeekBar=!1,this.draggingVolumeBar=!1},updateDrag:function(t){if(t&&t.preventDefault(),this.draggingSeekBar){var e=t.pageX-this.$seekBarContainer.offset().left,n=e/this.$seekBarContainer.width()*100;n=Math.min(100,Math.max(n,0)),this.setSeekPercentage(n)}else this.draggingVolumeBar&&this.volume(t)},volume:function(t){var e=t.pageX-this.$volumeBarContainer.offset().left;this.currentVolume=e/this.$volumeBarContainer.width()*100,this.currentVolume=Math.min(100,Math.max(this.currentVolume,0)),this.container.setVolume(this.currentVolume),this.setVolumeLevel(this.currentVolume)},toggleMute:function(){this.mute?(this.currentVolume<=0&&(this.currentVolume=100),this.setVolume(this.currentVolume)):this.setVolume(0)},setVolume:function(t){this.container.setVolume(t),this.setVolumeLevel(t),this.mute=0===t?!0:!1},toggleFullscreen:function(){this.trigger(d.MEDIACONTROL_FULLSCREEN,this.name),this.container.fullscreen(),this.resetKeepVisible()},setContainer:function(t){this.stopListening(this.container),this.container=t,this.changeTogglePlay(),this.addEventListeners(),this.settingsUpdate(),this.container.trigger(d.CONTAINER_PLAYBACKDVRSTATECHANGED,this.container.isDvrInUse()),this.container.setVolume(this.currentVolume),this.container.mediaControlDisabled&&this.disable(),this.trigger(d.MEDIACONTROL_CONTAINERCHANGED)},showVolumeBar:function(){this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.$volumeBarContainer.removeClass("volume-bar-hide")},hideVolumeBar:function(){var t=this,e=400;this.$volumeBarContainer&&(this.draggingVolumeBar?this.hideVolumeId=setTimeout(function(){return t.hideVolumeBar()},e):(this.hideVolumeId&&clearTimeout(this.hideVolumeId),this.hideVolumeId=setTimeout(function(){return t.$volumeBarContainer.addClass("volume-bar-hide")},e)))},ended:function(){this.changeTogglePlay()},updateProgressBar:function(t,e,n){var i=t/n*100,r=e/n*100;this.$seekBarLoaded.css({left:i+"%",width:r-i+"%"})},updateSeekBar:function(t,e){if(!this.draggingSeekBar){0>t&&(t=e),this.$seekBarPosition.removeClass("media-control-notransition"),this.$seekBarScrubber.removeClass("media-control-notransition");var n=100/e*t;this.setSeekPercentage(n),this.$("[data-position]").html(s.formatTime(t)),this.$("[data-duration]").html(s.formatTime(e))}},seek:function(t){if(this.container.settings.seekEnabled){var e=t.pageX-this.$seekBarContainer.offset().left,n=e/this.$seekBarContainer.width()*100;return n=Math.min(100,Math.max(n,0)),this.container.setCurrentTime(n),this.setSeekPercentage(n),!1}},setKeepVisible:function(){this.keepVisible=!0},resetKeepVisible:function(){this.keepVisible=!1},isVisible:function(){return!this.$el.hasClass("media-control-hide")},show:function(t){var e=this;if(!this.disabled&&null!==this.container.getPlaybackType()){var n=2e3;(!t||t.clientX!==this.lastMouseX&&t.clientY!==this.lastMouseY||navigator.userAgent.match(/firefox/i))&&(clearTimeout(this.hideId),this.$el.show(),this.trigger(d.MEDIACONTROL_SHOW,this.name),this.$el.removeClass("media-control-hide"),this.hideId=setTimeout(function(){return e.hide()},n),t&&(this.lastMouseX=t.clientX,this.lastMouseY=t.clientY))}},hide:function(){var t=this,e=2e3;clearTimeout(this.hideId),this.isVisible()&&this.options.hideMediaControl!==!1&&(this.keepVisible||this.draggingSeekBar||this.draggingVolumeBar?this.hideId=setTimeout(function(){return t.hide()},e):(this.trigger(d.MEDIACONTROL_HIDE,this.name),this.$el.addClass("media-control-hide"),this.hideVolumeBar()))},settingsUpdate:function(){null===this.container.getPlaybackType()||n.isEmpty(this.container.settings)?this.disable():(this.settings=this.container.settings,this.render(),this.enable())},highDefinitionUpdate:function(){this.container.isHighDefinitionInUse()?this.$el.find("button[data-hd-indicator]").addClass("enabled"):this.$el.find("button[data-hd-indicator]").removeClass("enabled")},createCachedElements:function(){this.$playPauseToggle=this.$el.find("button.media-control-button[data-playpause]"),this.$playStopToggle=this.$el.find("button.media-control-button[data-playstop]"),this.$fullscreenToggle=this.$el.find("button.media-control-button[data-fullscreen]"),this.$seekBarContainer=this.$el.find(".bar-container[data-seekbar]"),this.$seekBarLoaded=this.$el.find(".bar-fill-1[data-seekbar]"),this.$seekBarPosition=this.$el.find(".bar-fill-2[data-seekbar]"),this.$seekBarScrubber=this.$el.find(".bar-scrubber[data-seekbar]"),this.$seekBarHover=this.$el.find(".bar-hover[data-seekbar]"),this.$volumeBarContainer=this.$el.find(".bar-container[data-volume]"),this.$volumeIcon=this.$el.find(".drawer-icon[data-volume]")},setVolumeLevel:function(t){var e=this;if(this.container.isReady){this.$volumeBarContainer.find(".segmented-bar-element").removeClass("fill");var n=Math.ceil(t/10);this.$volumeBarContainer.find(".segmented-bar-element").slice(0,n).addClass("fill"),t>0?this.$volumeIcon.removeClass("muted"):this.$volumeIcon.addClass("muted")}else this.listenToOnce(this.container,d.CONTAINER_READY,function(){return e.setVolumeLevel(t)})},setSeekPercentage:function(t){if(!(t>100)){var e=this.$seekBarContainer.width()*t/100-this.$seekBarScrubber.width()/2;this.currentSeekPercentage=t,this.$seekBarPosition.css({width:t+"%"}),this.$seekBarScrubber.css({left:e})}},bindKeyEvents:function(){var t=this;c.bind(["space"],function(){return t.togglePlayPause()})},unbindKeyEvents:function(){c.unbind("space")},parseColors:function(){if(this.options.mediacontrol){var t=this.options.mediacontrol.buttons,e=this.options.mediacontrol.seekbar;this.$el.find(".bar-fill-2[data-seekbar]").css("background-color",e),this.$el.find("[data-media-control] > .media-control-icon, .drawer-icon").css("color",t),this.$el.find(".segmented-bar-element[data-volume]").css("boxShadow","inset 2px 0 0 "+t)}},render:function(){var t=this,e=1e3,n=o.getStyleFor("media_control");return this.$el.html(this.template({settings:this.settings})),this.$el.append(n),this.createCachedElements(),this.$playPauseToggle.addClass("paused"),this.$playStopToggle.addClass("stopped"),this.changeTogglePlay(),this.hideId=setTimeout(function(){return t.hide()},e),this.disabled&&this.hide(),this.$seekBarPosition.addClass("media-control-notransition"),this.$seekBarScrubber.addClass("media-control-notransition"),this.currentSeekPercentage||(this.currentSeekPercentage=0),this.setSeekPercentage(this.currentSeekPercentage),this.$el.ready(function(){t.container.settings.seekEnabled||t.$seekBarContainer.addClass("seek-disabled"),t.setVolumeLevel(t.currentVolume),t.bindKeyEvents(),t.hideVolumeBar()}),this.parseColors(),this.seekTime.render(),this.trigger(d.MEDIACONTROL_RENDERED),this},destroy:function(){i(document).unbind("mouseup"),i(document).unbind("mousemove"),this.unbindKeyEvents()}},{},a),e.exports=f},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,"../seek_time":22,events:"events",mediator:"mediator",mousetrap:4,player_info:"player_info",ui_object:"ui_object",underscore:"underscore",zepto:"zepto"}],21:[function(t,e){"use strict";var n=t("base_object"),i=t("./core_factory"),r=t("./loader"),o=t("underscore"),a=t("scrollmonitor"),s=t("player_info"),c=function(t){if($traceurRuntime.superCall(this,u.prototype,"constructor",[t]),window.p=this,this.options=t,this.options.sources=this.normalizeSources(t),this.loader=new r(this.options.plugins||[]),this.coreFactory=new i(this,this.loader),t.height||(t.height=360),t.width||(t.width=640),s.currentSize={width:t.width,height:t.height},this.options.parentId){var e=document.querySelector(this.options.parentId);e&&this.attachTo(e)}},u=c;$traceurRuntime.createClass(c,{attachTo:function(t){this.options.parentElement=t,this.core=this.coreFactory.create(),this.options.autoPlayVisible&&this.bindAutoPlayVisible(this.options.autoPlayVisible)},bindAutoPlayVisible:function(t){var e=this;this.elementWatcher=a.create(this.core.$el),"full"===t?this.elementWatcher.fullyEnterViewport(function(){return e.enterViewport()}):"partial"===t&&this.elementWatcher.enterViewport(function(){return e.enterViewport()})},enterViewport:function(){0===this.elementWatcher.top||this.isPlaying()||this.play()},normalizeSources:function(t){return o.compact(o.flatten([t.source,t.sources]))},resize:function(t){this.core.resize(t)},load:function(t){this.core.load(t)},destroy:function(){this.core.destroy()},play:function(){this.core.mediaControl.container.play()},pause:function(){this.core.mediaControl.container.pause()},stop:function(){this.core.mediaControl.container.stop()},seek:function(t){this.core.mediaControl.container.setCurrentTime(t)},setVolume:function(t){this.core.mediaControl.container.setVolume(t)},mute:function(){this.core.mediaControl.container.setVolume(0)},unmute:function(){this.core.mediaControl.container.setVolume(100)},isPlaying:function(){return this.core.mediaControl.container.isPlaying()}},{},n),e.exports=c},{"./core_factory":15,"./loader":18,base_object:"base_object",player_info:"player_info",scrollmonitor:5,underscore:"underscore"}],22:[function(t,e){"use strict";e.exports=t("./seek_time")},{"./seek_time":23}],23:[function(t,e){"use strict";var n=t("ui_object"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("../../base/utils").formatTime,a=t("events"),s=function(t){$traceurRuntime.superCall(this,c.prototype,"constructor",[]),this.mediaControl=t,this.addEventListeners()},c=s;$traceurRuntime.createClass(s,{get name(){return"seek_time"},get template(){return r.seek_time},get attributes(){return{"class":"seek-time hidden","data-seek-time":""}},addEventListeners:function(){this.listenTo(this.mediaControl,a.MEDIACONTROL_MOUSEMOVE_SEEKBAR,this.showTime),this.listenTo(this.mediaControl,a.MEDIACONTROL_MOUSELEAVE_SEEKBAR,this.hideTime)},showTime:function(t){var e=t.pageX-this.mediaControl.$seekBarContainer.offset().left,n=Math.min(100,Math.max(e/this.mediaControl.$seekBarContainer.width()*100,0)),i=t.pageX-this.mediaControl.$el.offset().left-this.$el.width()/2;i=Math.min(Math.max(0,i),this.mediaControl.$el.width()-this.$el.width());var r=n*this.mediaControl.container.getDuration()/100,a={timestamp:r,formattedTime:o(r),pointerPosition:i};this.update(a)},hideTime:function(){this.$el.addClass("hidden"),this.$el.css("left","-100%")},update:function(t){("vod"===this.mediaControl.container.getPlaybackType()||this.mediaControl.container.isDvrInUse())&&(this.$el.find("[data-seek-time]").text(t.formattedTime),this.$el.css("left",t.pointerPosition),this.$el.removeClass("hidden"))},render:function(){var t=i.getStyleFor(this.name);this.$el.html(this.template()),this.$el.append(t),this.mediaControl.$el.append(this.el)
}},{},n),e.exports=s},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,events:"events",ui_object:"ui_object"}],24:[function(t,e){"use strict";var n=t("playback"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("mediator"),a=t("underscore"),s=t("zepto"),c=t("browser"),u=t("mousetrap"),l=t("../../base/utils").seekStringToSeconds,h=t("events"),d='<object type="application/x-shockwave-flash" id="<%= cid %>" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-flash-vod=""><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="gpu"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>',f=function(t){$traceurRuntime.superCall(this,p.prototype,"constructor",[t]),this.src=t.src,this.isRTMP=this.src.indexOf("rtmp")>-1,this.defaultBaseSwfPath="http://cdn.clappr.io/"+Clappr.version+"/assets/",this.swfPath=(t.swfBasePath||this.defaultBaseSwfPath)+"Player.swf",this.autoPlay=t.autoPlay,this.settings={"default":["seekbar"]},this.isRTMP?(this.settings.left=["playstop"],this.settings.right=["fullscreen","volume"]):(this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume"],this.settings.seekEnabled=!0),this.isReady=!1,this.addListeners()},p=f;$traceurRuntime.createClass(f,{get name(){return"flash"},get tagName(){return"object"},get template(){return r.flash},bootstrap:function(){this.el.width="100%",this.el.height="100%",this.isReady=!0,"PLAYING"===this.currentState?this.firstPlay():(this.currentState="IDLE",this.autoPlay&&this.play()),s('<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" />').insertAfter(this.$el),this.trigger(h.PLAYBACK_READY,this.name)},getPlaybackType:function(){return this.isRTMP?"live":"vod"},setupFirefox:function(){var t=this.$("embed");t.attr("data-flash",""),this.setElement(t[0])},isHighDefinitionInUse:function(){return!1},updateTime:function(){this.trigger(h.PLAYBACK_TIMEUPDATE,this.el.getPosition(),this.el.getDuration(),this.name)},addListeners:function(){o.on(this.uniqueId+":progress",this.progress,this),o.on(this.uniqueId+":timeupdate",this.updateTime,this),o.on(this.uniqueId+":statechanged",this.checkState,this),o.on(this.uniqueId+":flashready",this.bootstrap,this),a.each(a.range(1,10),function(t){var e=this;u.bind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},stopListening:function(){$traceurRuntime.superCall(this,p.prototype,"stopListening",[]),o.off(this.uniqueId+":progress"),o.off(this.uniqueId+":timeupdate"),o.off(this.uniqueId+":statechanged"),o.off(this.uniqueId+":flashready"),a.each(a.range(1,10),function(t){var e=this;u.unbind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},checkState:function(){"PAUSED"!==this.currentState&&("PLAYING_BUFFERING"!==this.currentState&&"PLAYING_BUFFERING"===this.el.getState()?(this.trigger(h.PLAYBACK_BUFFERING,this.name),this.currentState="PLAYING_BUFFERING"):"PLAYING_BUFFERING"===this.currentState&&"PLAYING"===this.el.getState()?(this.trigger(h.PLAYBACK_BUFFERFULL,this.name),this.currentState="PLAYING"):"IDLE"===this.el.getState()?this.currentState="IDLE":"ENDED"===this.el.getState()&&(this.trigger(h.PLAYBACK_ENDED,this.name),this.trigger(h.PLAYBACK_TIMEUPDATE,0,this.el.getDuration(),this.name),this.currentState="ENDED"))},progress:function(){"IDLE"!==this.currentState&&"ENDED"!==this.currentState&&this.trigger(h.PLAYBACK_PROGRESS,0,this.el.getBytesLoaded(),this.el.getBytesTotal(),this.name)},firstPlay:function(){var t=this;this.currentState="PLAYING",a.isFunction(this.el.playerPlay)&&(this.el.playerPlay(this.src),this.listenToOnce(this,h.PLAYBACK_BUFFERFULL,function(){return t.checkInitialSeek()}))},checkInitialSeek:function(){var t=l(window.location.href);this.seekSeconds(t)},play:function(){"PAUSED"===this.el.getState()||"PLAYING_BUFFERING"===this.el.getState()?(this.currentState="PLAYING",this.el.playerResume()):"PLAYING"!==this.el.getState()&&this.firstPlay(),this.trigger(h.PLAYBACK_PLAY,this.name)},volume:function(t){var e=this;this.isReady?this.el.playerVolume(t):this.listenToOnce(this,h.PLAYBACK_BUFFERFULL,function(){return e.volume(t)})},pause:function(){this.currentState="PAUSED",this.el.playerPause()},stop:function(){this.el.playerStop(),this.trigger(h.PLAYBACK_TIMEUPDATE,0,this.name)},isPlaying:function(){return!(!this.isReady||"PLAYING"!==this.currentState)},getDuration:function(){return this.el.getDuration()},seek:function(t){var e=this.el.getDuration()*(t/100);this.seekSeconds(e)},seekSeconds:function(t){this.el.playerSeek(t),this.trigger(h.PLAYBACK_TIMEUPDATE,t,this.el.getDuration(),this.name),"PAUSED"===this.currentState&&this.el.playerPause()},destroy:function(){clearInterval(this.bootstrapId),this.stopListening(),this.$el.remove()},setupIE:function(){this.setElement(s(a.template(d)({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})))},render:function(){var t=i.getStyleFor(this.name);return this.$el.html(this.template({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})),c.isFirefox?this.setupFirefox():c.isLegacyIE&&this.setupIE(),this.$el.append(t),this}},{},n),f.canPlay=function(t){return t.indexOf("rtmp")>-1?!0:!c.isMobile&&c.isFirefox||c.isLegacyIE?a.isString(t)&&!!t.match(/(.*)\.(mp4|mov|f4v|3gpp|3gp)/):a.isString(t)&&!!t.match(/(.*)\.(mov|f4v|3gpp|3gp)/)},e.exports=f},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,browser:"browser",events:"events",mediator:"mediator",mousetrap:4,playback:"playback",underscore:"underscore",zepto:"zepto"}],25:[function(t,e){"use strict";var n=t("playback"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("underscore"),a=t("mediator"),s=t("browser"),c=t("events"),u='<object type="application/x-shockwave-flash" id="<%= cid %>" class="hls-playback" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-hls="" width="100%" height="100%"><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="transparent"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>',l=function(t){$traceurRuntime.superCall(this,h.prototype,"constructor",[t]),this.src=t.src,this.defaultBaseSwfPath="http://cdn.clappr.io/"+Clappr.version+"/assets/",this.swfPath=(t.swfBasePath||this.defaultBaseSwfPath)+"HLSPlayer.swf",this.flushLiveURLCache=void 0===t.flushLiveURLCache?!0:t.flushLiveURLCache,this.capLevelToStage=void 0===t.capLevelToStage?!1:t.capLevelToStage,this.highDefinition=!1,this.autoPlay=t.autoPlay,this.defaultSettings={left:["playstop"],"default":["seekbar"],right:["fullscreen","volume","hd-indicator"],seekEnabled:!1},this.settings=o.extend({},this.defaultSettings),this.playbackType="live",this.addListeners()},h=l;$traceurRuntime.createClass(l,{get name(){return"hls"},get tagName(){return"object"},get template(){return r.hls},get attributes(){return{"class":"hls-playback","data-hls":"",type:"application/x-shockwave-flash"}},addListeners:function(){var t=this;a.on(this.uniqueId+":flashready",function(){return t.bootstrap()}),a.on(this.uniqueId+":timeupdate",function(){return t.updateTime()}),a.on(this.uniqueId+":playbackstate",function(e){return t.setPlaybackState(e)}),a.on(this.uniqueId+":highdefinition",function(e){return t.updateHighDefinition(e)}),a.on(this.uniqueId+":playbackerror",function(){return t.flashPlaybackError()})},stopListening:function(){$traceurRuntime.superCall(this,h.prototype,"stopListening",[]),a.off(this.uniqueId+":flashready"),a.off(this.uniqueId+":timeupdate"),a.off(this.uniqueId+":playbackstate"),a.off(this.uniqueId+":highdefinition"),a.off(this.uniqueId+":playbackerror")},bootstrap:function(){this.el.width="100%",this.el.height="100%",this.isReady=!0,this.trigger(c.PLAYBACK_READY,this.name),this.currentState="IDLE",this.setFlashSettings(),this.autoPlay&&this.play()},setFlashSettings:function(){this.el.globoPlayerSetflushLiveURLCache(this.flushLiveURLCache),this.el.globoPlayerCapLeveltoStage(this.capLevelToStage),this.el.globoPlayerSetmaxBufferLength(0)},updateHighDefinition:function(t){this.highDefinition="true"===t,this.trigger(c.PLAYBACK_HIGHDEFINITIONUPDATE),this.trigger(c.PLAYBACK_BITRATE,{bitrate:this.getCurrentBitrate()})},updateTime:function(){var t=this.getDuration(),e=Math.min(Math.max(this.el.globoGetPosition(),0),t),n=this.dvrEnabled,i="live"===this.playbackType;this.dvrEnabled=i&&t>240,100!==t&&void 0!==i&&(this.dvrEnabled!==n&&(this.updateSettings(),this.trigger(c.PLAYBACK_SETTINGSUPDATE,this.name)),!i||this.dvrEnabled&&this.dvrInUse||(e=t),this.trigger(c.PLAYBACK_TIMEUPDATE,e,t,this.name))},play:function(){"PAUSED"===this.currentState?this.el.globoPlayerResume():"PLAYING"!==this.currentState&&this.firstPlay(),this.trigger(c.PLAYBACK_PLAY,this.name)},getPlaybackType:function(){return this.playbackType?this.playbackType:null},getCurrentBitrate:function(){var t=this.getLevels()[this.el.globoGetLevel()];return t.bitrate},getLastProgramDate:function(){var t=this.el.globoGetLastProgramDate();return t-108e5},isHighDefinitionInUse:function(){return this.highDefinition},getLevels:function(){return this.levels&&0!==this.levels.length||(this.levels=this.el.globoGetLevels()),this.levels},setPlaybackState:function(t){var e=this.el.globoGetbufferLength();"PLAYING_BUFFERING"===t&&1>e?(this.trigger(c.PLAYBACK_BUFFERING,this.name),this.updateCurrentState(t)):"PLAYING"===t?o.contains(["PLAYING_BUFFERING","PAUSED","IDLE"],this.currentState)&&(this.trigger(c.PLAYBACK_BUFFERFULL,this.name),this.updateCurrentState(t)):"PAUSED"===t?this.updateCurrentState(t):"IDLE"===t&&(this.trigger(c.PLAYBACK_ENDED,this.name),this.trigger(c.PLAYBACK_TIMEUPDATE,0,this.el.globoGetDuration(),this.name),this.updateCurrentState(t)),this.lastBufferLength=e},updateCurrentState:function(t){this.currentState=t,this.updatePlaybackType()},updatePlaybackType:function(){this.playbackType=this.el.globoGetType(),this.playbackType&&(this.playbackType=this.playbackType.toLowerCase(),"vod"===this.playbackType?this.startReportingProgress():this.stopReportingProgress()),this.trigger(c.PLAYBACK_PLAYBACKSTATE)},startReportingProgress:function(){this.reportingProgress||(this.reportingProgress=!0,a.on(this.uniqueId+":fragmentloaded",this.onFragmentLoaded))},stopReportingProgress:function(){a.off(this.uniqueId+":fragmentloaded",this.onFragmentLoaded,this)},onFragmentLoaded:function(){var t=this.el.globoGetPosition()+this.el.globoGetbufferLength();this.trigger(c.PLAYBACK_PROGRESS,this.el.globoGetPosition(),t,this.getDuration(),this.name)},firstPlay:function(){this.el.globoPlayerLoad(this.src),this.el.globoPlayerPlay()},volume:function(t){var e=this;this.isReady?this.el.globoPlayerVolume(t):this.listenToOnce(this,c.PLAYBACK_BUFFERFULL,function(){return e.volume(t)})},pause:function(){("live"!==this.playbackType||this.dvrEnabled)&&(this.el.globoPlayerPause(),"live"===this.playbackType&&this.dvrEnabled&&this.updateDvr(!0))},stop:function(){this.el.globoPlayerStop(),this.trigger(c.PLAYBACK_TIMEUPDATE,0,this.name)},isPlaying:function(){return this.currentState?!!this.currentState.match(/playing/i):!1},getDuration:function(){var t=this.el.globoGetDuration();return"live"===this.playbackType&&(t-=10),t},seek:function(t){var e=this.getDuration();if(t>0&&(t=e*t/100),"live"===this.playbackType){var n=t>=0&&e-t>5;n||(t=-1),this.updateDvr(n)}this.el.globoPlayerSeek(t),this.trigger(c.PLAYBACK_TIMEUPDATE,t,e,this.name)},updateDvr:function(t){var e=!!this.dvrInUse;this.dvrInUse=t,this.dvrInUse!==e&&(this.updateSettings(),this.trigger(c.PLAYBACK_DVR,this.dvrInUse),this.trigger(c.PLAYBACK_STATS_ADD,{dvr:this.dvrInUse}))},flashPlaybackError:function(){this.trigger(c.PLAYBACK_STOP)},timeUpdate:function(t,e){this.trigger(c.PLAYBACK_TIMEUPDATE,t,e,this.name)},destroy:function(){this.stopListening(),this.$el.remove()},setupFirefox:function(){var t=this.$("embed");t.attr("data-hls",""),this.setElement(t)},setupIE:function(){this.setElement($(o.template(u)({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})))},updateSettings:function(){this.settings=o.extend({},this.defaultSettings),"vod"===this.playbackType||this.dvrInUse?(this.settings.left=["playpause","position","duration"],this.settings.seekEnabled=!0):this.dvrEnabled?(this.settings.left=["playpause"],this.settings.seekEnabled=!0):this.settings.seekEnabled=!1},setElement:function(t){this.$el=t,this.el=t[0]},render:function(){var t=i.getStyleFor(this.name);return s.isLegacyIE?this.setupIE():(this.$el.html(this.template({cid:this.cid,swfPath:this.swfPath,playbackId:this.uniqueId})),s.isFirefox?this.setupFirefox():s.isIE&&this.$("embed").remove()),this.el.id=this.cid,this.$el.append(t),this}},{},n),l.canPlay=function(t){return!!t.match(/^http(.*).m3u8?/)},e.exports=l},{"../../base/jst":7,"../../base/styler":8,browser:"browser",events:"events",mediator:"mediator",playback:"playback",underscore:"underscore"}],26:[function(t,e){"use strict";var n=t("playback"),i=t("events"),r=function(t){$traceurRuntime.superCall(this,o.prototype,"constructor",[t]),this.el.src=t.src,this.settings={left:["playpause","position","duration"],right:["fullscreen","volume"],"default":["seekbar"]},this.render(),t.autoPlay&&this.play()},o=r;$traceurRuntime.createClass(r,{get name(){return"html5_audio"},get tagName(){return"audio"},get events(){return{timeupdate:"timeUpdated",ended:"ended"}},bindEvents:function(){this.listenTo(this.container,i.CONTAINER_PLAY,this.play),this.listenTo(this.container,i.CONTAINER_PAUSE,this.pause),this.listenTo(this.container,i.CONTAINER_SEEK,this.seek),this.listenTo(this.container,i.CONTAINER_VOLUME,this.volume),this.listenTo(this.container,i.CONTAINER_STOP,this.stop)},getPlaybackType:function(){return"aod"},play:function(){this.el.play(),this.trigger(i.PLAYBACK_PLAY)},pause:function(){this.el.pause()},stop:function(){this.pause(),this.el.currentTime=0},volume:function(t){this.el.volume=t/100},mute:function(){this.el.volume=0},unmute:function(){this.el.volume=1},isMuted:function(){return!!this.el.volume},ended:function(){this.trigger(i.CONTAINER_TIMEUPDATE,0)},seek:function(t){var e=this.el.duration*(t/100);this.el.currentTime=e},getCurrentTime:function(){return this.el.currentTime},getDuration:function(){return this.el.duration},isPlaying:function(){return!this.el.paused&&!this.el.ended},timeUpdated:function(){this.trigger(i.PLAYBACK_TIMEUPDATE,this.el.currentTime,this.el.duration,this.name)},render:function(){return this}},{},n),r.canPlay=function(t){return!!t.match(/(.*).mp3/)},e.exports=r},{events:"events",playback:"playback"}],27:[function(t,e){(function(n){"use strict";var i=t("playback"),r=t("../../base/jst"),o=t("../../base/styler"),a=(t("browser"),t("mousetrap")),s=t("../../base/utils").seekStringToSeconds,c=t("events"),u=t("underscore"),l=function(t){$traceurRuntime.superCall(this,h.prototype,"constructor",[t]),this.options=t,this.src=t.src,this.el.src=t.src,this.el.loop=t.loop,this.firstBuffer=!0,this.isHLS=this.src.indexOf("m3u8")>-1,this.settings={"default":["seekbar"]},this.isHLS?(this.el.preload=t.preload?t.preload:"none",this.settings.left=["playstop"],this.settings.right=["fullscreen","volume"]):(this.el.preload=t.preload?t.preload:"metadata",this.settings.left=["playpause","position","duration"],this.settings.right=["fullscreen","volume"],this.settings.seekEnabled=!0),this.bindEvents()},h=l;$traceurRuntime.createClass(l,{get name(){return"html5_video"},get tagName(){return"video"},get template(){return r.html5_video},get attributes(){return{"data-html5-video":""}},get events(){return{timeupdate:"timeUpdated",progress:"progress",ended:"ended",stalled:"stalled",waiting:"waiting",canplaythrough:"bufferFull",loadedmetadata:"loadedMetadata"}},bindEvents:function(){u.each(u.range(1,10),function(t){var e=this;a.bind([t.toString()],function(){return e.seek(10*t)})}.bind(this))},loadedMetadata:function(t){this.trigger(c.PLAYBACK_LOADEDMETADATA,t.target.duration),this.trigger(c.PLAYBACK_SETTINGSUPDATE),this.checkInitialSeek()},getPlaybackType:function(){return this.isHLS&&u.contains([0,void 0,1/0],this.el.duration)?"live":"vod"},isHighDefinitionInUse:function(){return!1},play:function(){this.el.play(),this.trigger(c.PLAYBACK_PLAY),this.isHLS&&this.trigger(c.PLAYBACK_TIMEUPDATE,1,1,this.name)},pause:function(){this.el.pause()},stop:function(){this.pause(),0!==this.el.readyState&&(this.el.currentTime=0)},volume:function(t){this.el.volume=t/100},mute:function(){this.el.volume=0},unmute:function(){this.el.volume=1},isMuted:function(){return!!this.el.volume},isPlaying:function(){return!this.el.paused&&!this.el.ended},ended:function(){this.trigger(c.PLAYBACK_ENDED,this.name),this.trigger(c.PLAYBACK_TIMEUPDATE,0,this.el.duration,this.name)},stalled:function(){"vod"===this.getPlaybackType()&&this.el.readyState<this.el.HAVE_FUTURE_DATA&&this.trigger(c.PLAYBACK_BUFFERING,this.name)},waiting:function(){this.el.readyState<this.el.HAVE_FUTURE_DATA&&this.trigger(c.PLAYBACK_BUFFERING,this.name)},bufferFull:function(){this.options.poster&&this.firstBuffer?(this.firstBuffer=!1,this.el.poster=this.options.poster):this.el.poster="",this.trigger(c.PLAYBACK_BUFFERFULL,this.name)},destroy:function(){this.stop(),this.el.src="",this.$el.remove()},seek:function(t){var e=this.el.duration*(t/100);this.seekSeconds(e)},seekSeconds:function(t){this.el.currentTime=t},checkInitialSeek:function(){var t=s(window.location.href);this.seekSeconds(t)},getCurrentTime:function(){return this.el.currentTime},getDuration:function(){return this.el.duration},timeUpdated:function(){"live"!==this.getPlaybackType()&&this.trigger(c.PLAYBACK_TIMEUPDATE,this.el.currentTime,this.el.duration,this.name)},progress:function(){if(this.el.buffered.length){for(var t=0,e=0;e<this.el.buffered.length;e++)if(this.el.currentTime>=this.el.buffered.start(e)&&this.el.currentTime<=this.el.buffered.end(e)){t=e;break}this.trigger(c.PLAYBACK_PROGRESS,this.el.buffered.start(t),this.el.buffered.end(t),this.el.duration,this.name)}},typeFor:function(t){return t.indexOf(".m3u8")>0?"application/vnd.apple.mpegurl":"video/mp4"},render:function(){var t=this,e=o.getStyleFor(this.name);return this.$el.html(this.template({src:this.src,type:this.typeFor(this.src)})),this.$el.append(e),this.trigger(c.PLAYBACK_READY,this.name),n.nextTick(function(){return t.options.autoPlay&&t.play()}),this}},{},i),l.canPlay=function(t){var e={mp4:u.map(["avc1.42E01E","avc1.58A01E","avc1.4D401E","avc1.64001E","mp4v.20.8","mp4v.20.240"],function(t){return"video/mp4; codecs="+t+", mp4a.40.2"}),ogg:['video/ogg; codecs="theora, vorbis"','video/ogg; codecs="dirac"','video/ogg; codecs="theora, speex"'],"3gpp":['video/3gpp; codecs="mp4v.20.8, samr"'],webm:['video/webm; codecs="vp8, vorbis"'],mkv:['video/x-matroska; codecs="theora, vorbis"'],m3u8:["application/x-mpegURL"]};e.ogv=e.ogg,e["3gp"]=e["3gpp"];var n=t.split("?")[0].match(/.*\.(.*)$/)[1];if(u.has(e,n)){var i=document.createElement("video");return!!u.find(e[n],function(t){return!!i.canPlayType(t).replace(/no/,"")})}return!1},e.exports=l}).call(this,t("_process"))},{"../../base/jst":7,"../../base/styler":8,"../../base/utils":9,_process:2,browser:"browser",events:"events",mousetrap:4,playback:"playback",underscore:"underscore"}],28:[function(t,e){"use strict";e.exports=t("./no_op")},{"./no_op":29}],29:[function(t,e){"use strict";var n=t("playback"),i=t("../../base/jst"),r=t("../../base/styler"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t])},a=o;$traceurRuntime.createClass(o,{get name(){return"no_op"},get template(){return i.no_op},get attributes(){return{"data-no-op":""}},render:function(){var t=r.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(t),this}},{},n),o.canPlay=function(){return!0},e.exports=o},{"../../base/jst":7,"../../base/styler":8,playback:"playback"}],30:[function(t,e){(function(n){"use strict";var i=t("ui_core_plugin"),r=t("../../base/jst"),o=t("../../base/styler"),a=t("events"),s=t("browser"),c=t("mediator"),u=t("player_info"),l=function(t){$traceurRuntime.superCall(this,h.prototype,"constructor",[t]),this.core=t,this.settingsUpdate()},h=l;$traceurRuntime.createClass(l,{get template(){return r.background_button},get name(){return"background_button"},get attributes(){return{"class":"background-button","data-background-button":""}},get events(){return{"click .background-button-icon":"click"}},bindEvents:function(){this.listenTo(this.core.mediaControl.container,a.CONTAINER_STATE_BUFFERING,this.hide),this.listenTo(this.core.mediaControl.container,a.CONTAINER_STATE_BUFFERFULL,this.show),this.listenTo(this.core.mediaControl,a.MEDIACONTROL_RENDERED,this.settingsUpdate),this.listenTo(this.core.mediaControl,a.MEDIACONTROL_SHOW,this.updateSize),this.listenTo(this.core.mediaControl,a.MEDIACONTROL_PLAYING,this.playing),this.listenTo(this.core.mediaControl,a.MEDIACONTROL_NOTPLAYING,this.notplaying),c.on(a.PLAYER_RESIZE,this.updateSize,this)},stopListening:function(){$traceurRuntime.superCall(this,h.prototype,"stopListening",[]),c.off(a.PLAYER_RESIZE,this.updateSize,this)},settingsUpdate:function(){this.stopListening(),this.shouldRender()?(this.render(),this.bindEvents(),this.core.mediaControl.container.isPlaying()?this.playing():this.notplaying()):(this.$el.remove(),this.$playPauseButton.show(),this.$playStopButton.show(),this.listenTo(this.core.mediaControl.container,a.CONTAINER_SETTINGSUPDATE,this.settingsUpdate),this.listenTo(this.core.mediaControl.container,a.CONTAINER_PLAYBACKDVRSTATECHANGED,this.settingsUpdate),this.listenTo(this.core.mediaControl,a.MEDIACONTROL_CONTAINERCHANGED,this.settingsUpdate))},shouldRender:function(){var t=void 0===this.core.options.useBackgroundButton&&s.isMobile||!!this.core.options.useBackgroundButton;return t&&(this.core.mediaControl.$el.find("[data-playstop]").length>0||this.core.mediaControl.$el.find("[data-playpause]").length>0)},click:function(){this.core.mediaControl.show(),this.shouldStop?this.core.mediaControl.togglePlayStop():this.core.mediaControl.togglePlayPause()},show:function(){this.$el.removeClass("hide")},hide:function(){this.$el.addClass("hide")},enable:function(){this.stopListening(),$traceurRuntime.superCall(this,h.prototype,"enable",[]),this.settingsUpdate()},disable:function(){$traceurRuntime.superCall(this,h.prototype,"disable",[]),this.$playPauseButton.show(),this.$playStopButton.show()},playing:function(){this.$buttonIcon.removeClass("notplaying").addClass("playing")},notplaying:function(){this.$buttonIcon.removeClass("playing").addClass("notplaying")},getExternalInterface:function(){},updateSize:function(){if(this.$el){var t=u.currentSize?u.currentSize.height:this.$el.height();this.$el.css({fontSize:t}),this.$buttonWrapper.css({marginTop:-(this.$buttonWrapper.height()/2)})}},render:function(){var t=this,e=o.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(e),this.$playPauseButton=this.core.mediaControl.$el.find("[data-playpause]"),this.$playStopButton=this.core.mediaControl.$el.find("[data-playstop]"),this.$buttonWrapper=this.$el.find(".background-button-wrapper[data-background-button]"),this.$buttonIcon=this.$el.find(".background-button-icon[data-background-button]"),this.shouldStop=this.$playStopButton.length>0,this.$el.insertBefore(this.core.mediaControl.$el.find(".media-control-layer[data-controls]")),this.$el.click(function(){return t.click(t.$el)}),n.nextTick(function(){return t.updateSize()}),this.core.options.useBackgroundButton&&(this.$playPauseButton.hide(),this.$playStopButton.hide()),this.shouldStop&&this.$buttonIcon.addClass("playstop"),this.core.mediaControl.isVisible()&&this.show(),this}},{},i),e.exports=l}).call(this,t("_process"))},{"../../base/jst":7,"../../base/styler":8,_process:2,browser:"browser",events:"events",mediator:"mediator",player_info:"player_info",ui_core_plugin:"ui_core_plugin"}],31:[function(t,e){"use strict";e.exports=t("./background_button")},{"./background_button":30}],32:[function(t,e){"use strict";var n=t("container_plugin"),i=t("events"),r=function(){$traceurRuntime.defaultSuperCall(this,o.prototype,arguments)},o=r;$traceurRuntime.createClass(r,{get name(){return"click_to_pause"},bindEvents:function(){this.listenTo(this.container,i.CONTAINER_CLICK,this.click),this.listenTo(this.container,i.CONTAINER_SETTINGSUPDATE,this.settingsUpdate)},click:function(){("live"!==this.container.getPlaybackType()||this.container.isDvrEnabled())&&(this.container.isPlaying()?this.container.pause():this.container.play())},settingsUpdate:function(){this.container.$el.removeClass("pointer-enabled"),("live"!==this.container.getPlaybackType()||this.container.isDvrEnabled())&&this.container.$el.addClass("pointer-enabled")}},{},n),e.exports=r},{container_plugin:"container_plugin",events:"events"}],33:[function(t,e){"use strict";e.exports=t("./click_to_pause")},{"./click_to_pause":32}],34:[function(t,e){"use strict";var n=t("ui_core_plugin"),i=t("../../base/jst"),r=t("../../base/styler"),o=t("events"),a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[t]),this.core=t,this.settingsUpdate()},s=a;$traceurRuntime.createClass(a,{get template(){return i.dvr_controls},get name(){return"dvr_controls"},get events(){return{"click .live-button":"click"}},get attributes(){return{"class":"dvr-controls","data-dvr-controls":""}},bindEvents:function(){this.listenTo(this.core.mediaControl,o.MEDIACONTROL_RENDERED,this.settingsUpdate),this.listenTo(this.core.mediaControl.container,o.CONTAINER_PLAYBACKDVRSTATECHANGED,this.dvrChanged)},dvrChanged:function(t){this.settingsUpdate(),this.core.mediaControl.$el.addClass("live"),t?(this.core.mediaControl.$el.addClass("dvr"),this.core.mediaControl.$el.find(".media-control-indicator[data-position], .media-control-indicator[data-duration]").hide()):this.core.mediaControl.$el.removeClass("dvr")},click:function(){this.core.mediaControl.container.isPlaying()||this.core.mediaControl.container.play(),this.core.mediaControl.$el.hasClass("dvr")&&this.core.mediaControl.container.setCurrentTime(-1)},settingsUpdate:function(){var t=this;this.stopListening(),this.shouldRender()&&(this.render(),this.$el.click(function(){return t.click()})),this.bindEvents()},shouldRender:function(){var t=void 0===this.core.options.useDvrControls||!!this.core.options.useDvrControls;return t&&"live"===this.core.mediaControl.container.getPlaybackType()},render:function(){var t=r.getStyleFor(this.name);return this.$el.html(this.template()),this.$el.append(t),this.shouldRender()&&(this.core.mediaControl.$el.addClass("live"),this.core.mediaControl.$(".media-control-left-panel[data-media-control]").append(this.$el),this.$duration&&this.$duration.remove(),this.$duration=$("<span data-duration></span>"),this.core.mediaControl.seekTime.$el.append(this.$duration)),this}},{},n),e.exports=a},{"../../base/jst":7,"../../base/styler":8,events:"events",ui_core_plugin:"ui_core_plugin"}],35:[function(t,e){"use strict";e.exports=t("./dvr_controls")},{"./dvr_controls":34}],36:[function(t,e){"use strict";var n=t("container_plugin"),i=t("events"),r=function(t){$traceurRuntime.superCall(this,o.prototype,"constructor",[t]),t.gaAccount&&(this.embedScript(),this.account=t.gaAccount,this.trackerName=t.gaTrackerName+"."||"Clappr.",this.currentHDState=void 0)},o=r;$traceurRuntime.createClass(r,{get name(){return"google_analytics"},embedScript:function(){var t=this;if(window._gat)this.addEventListeners();else{var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("async","async"),e.setAttribute("src","http://www.google-analytics.com/ga.js"),e.onload=function(){return t.addEventListeners()},document.body.appendChild(e)}},addEventListeners:function(){var t=this;this.listenTo(this.container,i.CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,i.CONTAINER_STOP,this.onStop),this.listenTo(this.container,i.CONTAINER_PAUSE,this.onPause),this.listenTo(this.container,i.CONTAINER_ENDED,this.onEnded),this.listenTo(this.container,i.CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,i.CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,i.CONTAINER_ENDED,this.onEnded),this.listenTo(this.container,i.CONTAINER_ERROR,this.onError),this.listenTo(this.container,i.CONTAINER_PLAYBACKSTATE,this.onPlaybackChanged),this.listenTo(this.container,i.CONTAINER_VOLUME,function(e){return t.onVolumeChanged(e)}),this.listenTo(this.container,i.CONTAINER_SEEK,function(e){return t.onSeek(e)}),this.listenTo(this.container,i.CONTAINER_FULL_SCREEN,this.onFullscreen),this.listenTo(this.container,i.CONTAINER_HIGHDEFINITIONUPDATE,this.onHD),this.listenTo(this.container.playback,i.PLAYBACK_DVR,this.onDVR),_gaq.push([this.trackerName+"_setAccount",this.account])},onPlay:function(){this.push(["Video","Play",this.container.playback.src])},onStop:function(){this.push(["Video","Stop",this.container.playback.src])},onEnded:function(){this.push(["Video","Ended",this.container.playback.src])},onBuffering:function(){this.push(["Video","Buffering",this.container.playback.src])},onBufferFull:function(){this.push(["Video","Bufferfull",this.container.playback.src])},onError:function(){this.push(["Video","Error",this.container.playback.src])},onHD:function(){var t=this.container.isHighDefinitionInUse()?"ON":"OFF";t!==this.currentHDState&&(this.currentHDState=t,this.push(["Video","HD - "+t,this.container.playback.src]))},onPlaybackChanged:function(){var t=this.container.getPlaybackType();null!==t&&this.push(["Video","Playback Type - "+t,this.container.playback.src])},onDVR:function(){var t=this.container.isHighDefinitionInUse();this.push(["Interaction","DVR - "+t,this.container.playback.src])},onPause:function(){this.push(["Video","Pause",this.container.playback.src])},onSeek:function(){this.push(["Video","Seek",this.container.playback.src])},onVolumeChanged:function(){this.push(["Interaction","Volume",this.container.playback.src])},onFullscreen:function(){this.push(["Interaction","Fullscreen",this.container.playback.src])},push:function(t){var e=[this.trackerName+"_trackEvent"].concat(t);_gaq.push(e)}},{},n),e.exports=r},{container_plugin:"container_plugin",events:"events"}],37:[function(t,e){"use strict";e.exports=t("./google_analytics")},{"./google_analytics":36}],38:[function(t,e){"use strict";e.exports=t("./log")},{"./log":39}],39:[function(t,e){"use strict";var n=t("mousetrap"),i=t("underscore"),r=function(){var t=this;n.bind(["ctrl+shift+d"],function(){return t.onOff()}),this.BLACKLIST=["playback:timeupdate","playback:progress","container:hover","container:timeupdate","container:progress"]};$traceurRuntime.createClass(r,{info:function(t,e){this.log(t,"info",e)},warn:function(t,e){this.log(t,"warn",e)},debug:function(t,e){this.log(t,"debug",e)},onOff:function(){window.DEBUG=!window.DEBUG,console.log(window.DEBUG?"log enabled":"log disabled")},log:function(t,e,n){if(window.DEBUG&&!i.contains(this.BLACKLIST,n)){var r;"warn"===e?r="#FF8000":"info"===e?r="#006600":"error"===e&&(r="#FF0000"),console.log("%c ["+t+"] ["+e+"] "+n,"color: "+r)}}},{}),r.getInstance=function(){return void 0===this._instance&&(this._instance=new this),this._instance},e.exports=r},{mousetrap:4,underscore:"underscore"}],40:[function(t,e){(function(n){"use strict";var i=t("ui_container_plugin"),r=t("../../base/styler"),o=t("../../base/jst"),a=t("events"),s=t("mediator"),c=t("player_info"),u=t("zepto"),l=t("underscore"),h=function(t){$traceurRuntime.superCall(this,d.prototype,"constructor",[t]),this.options=t,l.defaults(this.options,{disableControlsOnPoster:!0}),this.options.disableControlsOnPoster&&this.container.disableMediaControl(),this.render()},d=h;$traceurRuntime.createClass(h,{get name(){return"poster"
},get template(){return o.poster},get attributes(){return{"class":"player-poster","data-poster":""}},get events(){return{click:"clicked"}},bindEvents:function(){this.listenTo(this.container,a.CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,a.CONTAINER_STATE_BUFFERFULL,this.onBufferfull),this.listenTo(this.container,a.CONTAINER_STOP,this.onStop),this.listenTo(this.container,a.CONTAINER_ENDED,this.onStop),s.on(a.PLAYER_RESIZE,this.updateSize,this)},stopListening:function(){$traceurRuntime.superCall(this,d.prototype,"stopListening",[]),s.off(a.PLAYER_RESIZE,this.updateSize,this)},onBuffering:function(){this.hidePlayButton()},onBufferfull:function(){this.$el.hide(),this.options.disableControlsOnPoster&&this.container.enableMediaControl()},onStop:function(){this.$el.show(),this.options.disableControlsOnPoster&&this.container.disableMediaControl(),this.options.hidePlayButton||this.showPlayButton()},hidePlayButton:function(){this.$playButton.hide()},showPlayButton:function(){this.$playButton.show(),this.updateSize()},clicked:function(){return this.container.play(),!1},updateSize:function(){if(this.$el){var t=c.currentSize?c.currentSize.height:this.$el.height();this.$el.css({fontSize:t}),this.$playWrapper.is(":visible")?(this.$playWrapper.css({marginTop:-(this.$playWrapper.height()/2)}),this.options.hidePlayButton||this.$playButton.show()):this.$playButton.hide()}},render:function(){var t=this,e=r.getStyleFor(this.name);if(this.$el.html(this.template()),this.$el.append(e),this.$playButton=this.$el.find(".poster-icon"),this.$playWrapper=this.$el.find(".play-wrapper"),void 0!==this.options.poster){var i=u('<img data-poster class="poster-background"></img>');i.attr("src",this.options.poster),this.$el.prepend(i)}return this.container.$el.append(this.el),this.options.hidePlayButton&&this.hidePlayButton(),n.nextTick(function(){return t.updateSize()}),this}},{},i),e.exports=h}).call(this,t("_process"))},{"../../base/jst":7,"../../base/styler":8,_process:2,events:"events",mediator:"mediator",player_info:"player_info",ui_container_plugin:"ui_container_plugin",underscore:"underscore",zepto:"zepto"}],41:[function(t,e){"use strict";e.exports=t("./spinner_three_bounce")},{"./spinner_three_bounce":42}],42:[function(t,e){"use strict";var n=t("ui_container_plugin"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("events"),a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[t]),this.template=r.spinner_three_bounce,this.listenTo(this.container,o.CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,o.CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,o.CONTAINER_STOP,this.onStop),this.render()},s=a;$traceurRuntime.createClass(a,{get name(){return"spinner"},get attributes(){return{"data-spinner":"","class":"spinner-three-bounce"}},onBuffering:function(){this.$el.show()},onBufferFull:function(){this.$el.hide()},onStop:function(){this.$el.hide()},render:function(){this.$el.html(this.template());var t=i.getStyleFor("spinner_three_bounce");return this.container.$el.append(t),this.container.$el.append(this.$el),this.$el.hide(),this}},{},n),e.exports=a},{"../../base/jst":7,"../../base/styler":8,events:"events",ui_container_plugin:"ui_container_plugin"}],43:[function(t,e){"use strict";e.exports=t("./stats")},{"./stats":44}],44:[function(t,e){"use strict";var n=t("container_plugin"),i=t("zepto"),r=t("events"),o=function(t){$traceurRuntime.superCall(this,a.prototype,"constructor",[t]),this.setInitialAttrs(),this.reportInterval=t.reportInterval||5e3,this.state="IDLE"},a=o;$traceurRuntime.createClass(o,{get name(){return"stats"},bindEvents:function(){this.listenTo(this.container.playback,r.PLAYBACK_PLAY,this.onPlay),this.listenTo(this.container,r.CONTAINER_STOP,this.onStop),this.listenTo(this.container,r.CONTAINER_DESTROYED,this.onStop),this.listenTo(this.container,r.CONTAINER_STATE_BUFFERING,this.onBuffering),this.listenTo(this.container,r.CONTAINER_STATE_BUFFERFULL,this.onBufferFull),this.listenTo(this.container,r.CONTAINER_STATS_ADD,this.onStatsAdd),this.listenTo(this.container,r.CONTAINER_BITRATE,this.onStatsAdd),this.listenTo(this.container.playback,r.PLAYBACK_STATS_ADD,this.onStatsAdd)},setInitialAttrs:function(){this.firstPlay=!0,this.startupTime=0,this.rebufferingTime=0,this.watchingTime=0,this.rebuffers=0,this.externalMetrics={}},onPlay:function(){this.state="PLAYING",this.watchingTimeInit=Date.now(),this.intervalId||(this.intervalId=setInterval(this.report.bind(this),this.reportInterval))},onStop:function(){clearInterval(this.intervalId),this.intervalId=void 0,this.state="STOPPED"},onBuffering:function(){this.firstPlay?this.startupTimeInit=Date.now():this.rebufferingTimeInit=Date.now(),this.state="BUFFERING",this.rebuffers++},onBufferFull:function(){this.firstPlay&&this.startupTimeInit?(this.firstPlay=!1,this.startupTime=Date.now()-this.startupTimeInit,this.watchingTimeInit=Date.now()):this.rebufferingTimeInit&&(this.rebufferingTime+=this.getRebufferingTime()),this.rebufferingTimeInit=void 0,this.state="PLAYING"},getRebufferingTime:function(){return Date.now()-this.rebufferingTimeInit},getWatchingTime:function(){var t=Date.now()-this.watchingTimeInit;return t-this.rebufferingTime},isRebuffering:function(){return!!this.rebufferingTimeInit},onStatsAdd:function(t){i.extend(this.externalMetrics,t)},getStats:function(){var t={startupTime:this.startupTime,rebuffers:this.rebuffers,rebufferingTime:this.isRebuffering()?this.rebufferingTime+this.getRebufferingTime():this.rebufferingTime,watchingTime:this.isRebuffering()?this.getWatchingTime()-this.getRebufferingTime():this.getWatchingTime()};return i.extend(t,this.externalMetrics),t},report:function(){this.container.statsReport(this.getStats())}},{},n),e.exports=o},{container_plugin:"container_plugin",events:"events",zepto:"zepto"}],45:[function(t,e){"use strict";e.exports=t("./watermark")},{"./watermark":46}],46:[function(t,e){"use strict";var n=t("ui_container_plugin"),i=t("../../base/styler"),r=t("../../base/jst"),o=t("events"),a=function(t){$traceurRuntime.superCall(this,s.prototype,"constructor",[t]),this.template=r[this.name],this.position=t.position||"bottom-right",t.watermark?(this.imageUrl=t.watermark,this.render()):this.$el.remove()},s=a;$traceurRuntime.createClass(a,{get name(){return"watermark"},bindEvents:function(){this.listenTo(this.container,o.CONTAINER_PLAY,this.onPlay),this.listenTo(this.container,o.CONTAINER_STOP,this.onStop)},onPlay:function(){this.hidden||this.$el.show()},onStop:function(){this.$el.hide()},render:function(){this.$el.hide();var t={position:this.position,imageUrl:this.imageUrl};this.$el.html(this.template(t));var e=i.getStyleFor(this.name);return this.container.$el.append(e),this.container.$el.append(this.$el),this}},{},n),e.exports=a},{"../../base/jst":7,"../../base/styler":8,events:"events",ui_container_plugin:"ui_container_plugin"}],base_object:[function(t,e){"use strict";var n=t("underscore"),i=t("./utils").extend,r=t("events"),o=["container"],a=function(t){this.uniqueId=n.uniqueId("o"),t||(t={}),n.extend(this,n.pick(t,o))};$traceurRuntime.createClass(a,{},{},r),a.extend=i,e.exports=a},{"./utils":9,events:"events",underscore:"underscore"}],browser:[function(t,e){"use strict";var n=function(){};$traceurRuntime.createClass(n,{},{}),n.isSafari=!!navigator.userAgent.match(/safari/i)&&-1===navigator.userAgent.indexOf("Chrome"),n.isChrome=!!navigator.userAgent.match(/chrome/i),n.isFirefox=!!navigator.userAgent.match(/firefox/i),n.isLegacyIE=!!window.ActiveXObject,n.isIE=n.isLegacyIE||!!navigator.userAgent.match(/trident.*rv:1\d/i),n.isIE11=!!navigator.userAgent.match(/trident.*rv:11/i),n.isMobile=!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|IEMobile|Opera Mini/i.test(navigator.userAgent),n.isWin8App=!!/MSAppHost/i.test(navigator.userAgent),n.isWiiU=!!/WiiU/i.test(navigator.userAgent),n.isPS4=!!/PlayStation 4/i.test(navigator.userAgent),e.exports=n},{}],container_plugin:[function(t,e){"use strict";var n=t("base_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.bindEvents()},r=i;$traceurRuntime.createClass(i,{enable:function(){this.bindEvents()},disable:function(){this.stopListening()},bindEvents:function(){},destroy:function(){this.stopListening()}},{},n),e.exports=i},{base_object:"base_object"}],container:[function(t,e){"use strict";e.exports=t("./container")},{"./container":10}],core_plugin:[function(t,e){"use strict";var n=t("base_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.core=t},r=i;$traceurRuntime.createClass(i,{getExternalInterface:function(){return{}},destroy:function(){}},{},n),e.exports=i},{base_object:"base_object"}],core:[function(t,e){"use strict";e.exports=t("./core")},{"./core":13}],events:[function(t,e){"use strict";var n=t("underscore"),i=t("../plugins/log").getInstance(),r=Array.prototype.slice,o=function(){};$traceurRuntime.createClass(o,{on:function(t,e,n){if(!s(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,i){if(!s(this,"once",t,[e,i])||!e)return this;var r=this,o=n.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,i)},off:function(t,e,i){var r,o,a,c,u,l,h,d;if(!this._events||!s(this,"off",t,[e,i]))return this;if(!t&&!e&&!i)return this._events=void 0,this;for(c=t?[t]:n.keys(this._events),u=0,l=c.length;l>u;u++)if(t=c[u],a=this._events[t]){if(this._events[t]=r=[],e||i)for(h=0,d=a.length;d>h;h++)o=a[h],(e&&e!==o.callback&&e!==o.callback._callback||i&&i!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){var e=arguments[arguments.length-1];if(i.info(e,t),!this._events)return this;var n=r.call(arguments,1);if(!s(this,"trigger",t,n))return this;var o=this._events[t],a=this._events.all;return o&&c(o,n),a&&c(a,arguments),this},stopListening:function(t,e,i){var r=this._listeningTo;if(!r)return this;var o=!e&&!i;i||"object"!=typeof e||(i=this),t&&((r={})[t._listenId]=t);for(var a in r)t=r[a],t.off(e,i,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[a];return this}},{});var a=/\s+/,s=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(a.test(n)){for(var o=n.split(a),s=0,c=o.length;c>s;s++)t[e].apply(t,[o[s]].concat(i));return!1}return!0},c=function(t,e){var n,i=-1,r=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}},u={listenTo:"on",listenToOnce:"once"};n.each(u,function(t,e){o.prototype[e]=function(e,i,r){var o=this._listeningTo||(this._listeningTo={}),a=e._listenId||(e._listenId=n.uniqueId("l"));return o[a]=e,r||"object"!=typeof i||(r=this),e[t](i,r,this),this}}),o.PLAYER_RESIZE="player:resize",o.PLAYBACK_PROGRESS="playback:progress",o.PLAYBACK_TIMEUPDATE="playback:timeupdate",o.PLAYBACK_READY="playback:ready",o.PLAYBACK_BUFFERING="playback:buffering",o.PLAYBACK_BUFFERFULL="playback:bufferfull",o.PLAYBACK_SETTINGSUPDATE="playback:settingsupdate",o.PLAYBACK_LOADEDMETADATA="playback:loadedmetadata",o.PLAYBACK_HIGHDEFINITIONUPDATE="playback:highdefinitionupdate",o.PLAYBACK_BITRATE="playback:bitrate",o.PLAYBACK_PLAYBACKSTATE="playback:playbackstate",o.PLAYBACK_DVR="playback:dvr",o.PLAYBACK_MEDIACONTROL_DISABLE="playback:mediacontrol:disable",o.PLAYBACK_MEDIACONTROL_ENABLE="playback:mediacontrol:enable",o.PLAYBACK_ENDED="playback:ended",o.PLAYBACK_PLAY="playback:play",o.PLAYBACK_ERROR="playback:error",o.PLAYBACK_STATS_ADD="playback:stats:add",o.CONTAINER_PLAYBACKSTATE="container:playbackstate",o.CONTAINER_PLAYBACKDVRSTATECHANGED="container:dvr",o.CONTAINER_BITRATE="container:bitrate",o.CONTAINER_STATS_REPORT="container:stats:report",o.CONTAINER_DESTROYED="container:destroyed",o.CONTAINER_READY="container:ready",o.CONTAINER_ERROR="container:error",o.CONTAINER_LOADEDMETADATA="container:loadedmetadata",o.CONTAINER_TIMEUPDATE="container:timeupdate",o.CONTAINER_PROGRESS="container:progress",o.CONTAINER_PLAY="container:play",o.CONTAINER_STOP="container:stop",o.CONTAINER_PAUSE="container:pause",o.CONTAINER_ENDED="container:ended",o.CONTAINER_CLICK="container:click",o.CONTAINER_SEEK="container:seek",o.CONTAINER_VOLUME="container:volume",o.CONTAINER_FULLSCREEN="container:fullscreen",o.CONTAINER_STATE_BUFFERING="container:state:buffering",o.CONTAINER_STATE_BUFFERFULL="container:state:bufferfull",o.CONTAINER_SETTINGSUPDATE="container:settingsupdate",o.CONTAINER_HIGHDEFINITIONUPDATE="container:highdefinitionupdate",o.CONTAINER_MEDIACONTROL_DISABLE="container:mediacontrol:disable",o.CONTAINER_MEDIACONTROL_ENABLE="container:mediacontrol:enable",o.CONTAINER_STATS_ADD="container:stats:add",o.MEDIACONTROL_RENDERED="mediacontrol:rendered",o.MEDIACONTROL_FULLSCREEN="mediacontrol:fullscreen",o.MEDIACONTROL_SHOW="mediacontrol:show",o.MEDIACONTROL_HIDE="mediacontrol:hide",o.MEDIACONTROL_MOUSEMOVE_SEEKBAR="mediacontrol:mousemove:seekbar",o.MEDIACONTROL_MOUSELEAVE_SEEKBAR="mediacontrol:mouseleave:seekbar",o.MEDIACONTROL_PLAYING="mediacontrol:playing",o.MEDIACONTROL_NOTPLAYING="mediacontrol:notplaying",o.MEDIACONTROL_CONTAINERCHANGED="mediacontrol:containerchanged",e.exports=o},{"../plugins/log":38,underscore:"underscore"}],flash:[function(t,e){"use strict";e.exports=t("./flash")},{"./flash":24}],hls:[function(t,e){"use strict";e.exports=t("./hls")},{"./hls":25}],html5_audio:[function(t,e){"use strict";e.exports=t("./html5_audio")},{"./html5_audio":26}],html5_video:[function(t,e){"use strict";e.exports=t("./html5_video")},{"./html5_video":27}],media_control:[function(t,e){"use strict";e.exports=t("./media_control")},{"./media_control":20}],mediator:[function(t,e){"use strict";var n=t("events"),i=new n,r=function(){};$traceurRuntime.createClass(r,{},{}),r.on=function(t,e,n){i.on(t,e,n)},r.once=function(t,e,n){i.once(t,e,n)},r.off=function(t,e,n){i.off(t,e,n)},r.trigger=function(t,e){i.trigger(t,e)},r.stopListening=function(t,e,n){i.stopListening(t,e,n)},e.exports=r},{events:"events"}],playback:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.settings={}},r=i;$traceurRuntime.createClass(i,{play:function(){},pause:function(){},stop:function(){},seek:function(){},getDuration:function(){return 0},isPlaying:function(){return!1},getPlaybackType:function(){return"no_op"},isHighDefinitionInUse:function(){return!1},volume:function(){},destroy:function(){this.$el.remove()}},{},n),i.canPlay=function(){return!1},e.exports=i},{ui_object:"ui_object"}],player_info:[function(t,e){"use strict";var n={options:{},playbackPlugins:[],currentSize:{width:0,height:0}};e.exports=n},{}],poster:[function(t,e){"use strict";e.exports=t("./poster")},{"./poster":40}],ui_container_plugin:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.enabled=!0,this.bindEvents()},r=i;$traceurRuntime.createClass(i,{enable:function(){this.bindEvents(),this.$el.show(),this.enabled=!0},disable:function(){this.stopListening(),this.$el.hide(),this.enabled=!1},bindEvents:function(){},destroy:function(){this.remove()}},{},n),e.exports=i},{ui_object:"ui_object"}],ui_core_plugin:[function(t,e){"use strict";var n=t("ui_object"),i=function(t){$traceurRuntime.superCall(this,r.prototype,"constructor",[t]),this.core=t,this.enabled=!0,this.bindEvents(),this.render()},r=i;$traceurRuntime.createClass(i,{bindEvents:function(){},getExternalInterface:function(){return{}},enable:function(){this.bindEvents(),this.$el.show(),this.enabled=!0},disable:function(){this.stopListening(),this.$el.hide(),this.enabled=!1},destroy:function(){this.remove()},render:function(){return this.$el.html(this.template()),this.$el.append(this.styler.getStyleFor(this.name)),this.core.$el.append(this.el),this}},{},n),e.exports=i},{ui_object:"ui_object"}],ui_object:[function(t,e){"use strict";var n=t("zepto"),i=t("underscore"),r=t("./utils").extend,o=t("base_object"),a=/^(\S+)\s*(.*)$/,s=function(t){$traceurRuntime.superCall(this,c.prototype,"constructor",[t]),this.cid=i.uniqueId("c"),this._ensureElement(),this.delegateEvents()},c=s;$traceurRuntime.createClass(s,{get tagName(){return"div"},$:function(t){return this.$el.find(t)},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof n?t:n(t),this.el=this.$el[0],e!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=i.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var r=e.match(a),o=r[1],s=r[2];n=i.bind(n,this),o+=".delegateEvents"+this.cid,""===s?this.$el.on(o,n):this.$el.on(o,s,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t["class"]=i.result(this,"className"));var e=n("<"+i.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}},{},o),s.extend=r,e.exports=s},{"./utils":9,base_object:"base_object",underscore:"underscore",zepto:"zepto"}],underscore:[function(t,e,n){(function(){var t=this,i=t._,r=Array.prototype,o=Object.prototype,a=Function.prototype,s=r.push,c=r.slice,u=r.concat,l=o.toString,h=o.hasOwnProperty,d=Array.isArray,f=Object.keys,p=a.bind,m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};"undefined"!=typeof n?("undefined"!=typeof e&&e.exports&&(n=e.exports=m),n._=m):t._=m,m.VERSION="1.7.0";var g=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}};m.iteratee=function(t,e,n){return null==t?m.identity:m.isFunction(t)?g(t,e,n):m.isObject(t)?m.matches(t):m.property(t)},m.each=m.forEach=function(t,e,n){if(null==t)return t;e=g(e,n);var i,r=t.length;if(r===+r)for(i=0;r>i;i++)e(t[i],i,t);else{var o=m.keys(t);for(i=0,r=o.length;r>i;i++)e(t[o[i]],o[i],t)}return t},m.map=m.collect=function(t,e,n){if(null==t)return[];e=m.iteratee(e,n);for(var i,r=t.length!==+t.length&&m.keys(t),o=(r||t).length,a=Array(o),s=0;o>s;s++)i=r?r[s]:s,a[s]=e(t[i],i,t);return a};var b="Reduce of empty array with no initial value";m.reduce=m.foldl=m.inject=function(t,e,n,i){null==t&&(t=[]),e=g(e,i,4);var r,o=t.length!==+t.length&&m.keys(t),a=(o||t).length,s=0;if(arguments.length<3){if(!a)throw new TypeError(b);n=t[o?o[s++]:s++]}for(;a>s;s++)r=o?o[s]:s,n=e(n,t[r],r,t);return n},m.reduceRight=m.foldr=function(t,e,n,i){null==t&&(t=[]),e=g(e,i,4);var r,o=t.length!==+t.length&&m.keys(t),a=(o||t).length;if(arguments.length<3){if(!a)throw new TypeError(b);n=t[o?o[--a]:--a]}for(;a--;)r=o?o[a]:a,n=e(n,t[r],r,t);return n},m.find=m.detect=function(t,e,n){var i;return e=m.iteratee(e,n),m.some(t,function(t,n,r){return e(t,n,r)?(i=t,!0):void 0}),i},m.filter=m.select=function(t,e,n){var i=[];return null==t?i:(e=m.iteratee(e,n),m.each(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i)},m.reject=function(t,e,n){return m.filter(t,m.negate(m.iteratee(e)),n)},m.every=m.all=function(t,e,n){if(null==t)return!0;e=m.iteratee(e,n);var i,r,o=t.length!==+t.length&&m.keys(t),a=(o||t).length;for(i=0;a>i;i++)if(r=o?o[i]:i,!e(t[r],r,t))return!1;return!0},m.some=m.any=function(t,e,n){if(null==t)return!1;e=m.iteratee(e,n);var i,r,o=t.length!==+t.length&&m.keys(t),a=(o||t).length;for(i=0;a>i;i++)if(r=o?o[i]:i,e(t[r],r,t))return!0;return!1},m.contains=m.include=function(t,e){return null==t?!1:(t.length!==+t.length&&(t=m.values(t)),m.indexOf(t,e)>=0)},m.invoke=function(t,e){var n=c.call(arguments,2),i=m.isFunction(e);return m.map(t,function(t){return(i?e:t[e]).apply(t,n)})},m.pluck=function(t,e){return m.map(t,m.property(e))},m.where=function(t,e){return m.filter(t,m.matches(e))},m.findWhere=function(t,e){return m.find(t,m.matches(e))},m.max=function(t,e,n){var i,r,o=-1/0,a=-1/0;if(null==e&&null!=t){t=t.length===+t.length?t:m.values(t);for(var s=0,c=t.length;c>s;s++)i=t[s],i>o&&(o=i)}else e=m.iteratee(e,n),m.each(t,function(t,n,i){r=e(t,n,i),(r>a||r===-1/0&&o===-1/0)&&(o=t,a=r)});return o},m.min=function(t,e,n){var i,r,o=1/0,a=1/0;if(null==e&&null!=t){t=t.length===+t.length?t:m.values(t);for(var s=0,c=t.length;c>s;s++)i=t[s],o>i&&(o=i)}else e=m.iteratee(e,n),m.each(t,function(t,n,i){r=e(t,n,i),(a>r||1/0===r&&1/0===o)&&(o=t,a=r)});return o},m.shuffle=function(t){for(var e,n=t&&t.length===+t.length?t:m.values(t),i=n.length,r=Array(i),o=0;i>o;o++)e=m.random(0,o),e!==o&&(r[o]=r[e]),r[e]=n[o];return r},m.sample=function(t,e,n){return null==e||n?(t.length!==+t.length&&(t=m.values(t)),t[m.random(t.length-1)]):m.shuffle(t).slice(0,Math.max(0,e))},m.sortBy=function(t,e,n){return e=m.iteratee(e,n),m.pluck(m.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),"value")};var y=function(t){return function(e,n,i){var r={};return n=m.iteratee(n,i),m.each(e,function(i,o){var a=n(i,o,e);t(r,i,a)}),r}};m.groupBy=y(function(t,e,n){m.has(t,n)?t[n].push(e):t[n]=[e]}),m.indexBy=y(function(t,e,n){t[n]=e}),m.countBy=y(function(t,e,n){m.has(t,n)?t[n]++:t[n]=1}),m.sortedIndex=function(t,e,n,i){n=m.iteratee(n,i,1);for(var r=n(e),o=0,a=t.length;a>o;){var s=o+a>>>1;n(t[s])<r?o=s+1:a=s}return o},m.toArray=function(t){return t?m.isArray(t)?c.call(t):t.length===+t.length?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:t.length===+t.length?t.length:m.keys(t).length},m.partition=function(t,e,n){e=m.iteratee(e,n);var i=[],r=[];return m.each(t,function(t,n,o){(e(t,n,o)?i:r).push(t)}),[i,r]},m.first=m.head=m.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:0>e?[]:c.call(t,0,e)},m.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},m.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:c.call(t,Math.max(t.length-e,0))},m.rest=m.tail=m.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},m.compact=function(t){return m.filter(t,m.identity)};var v=function(t,e,n,i){if(e&&m.every(t,m.isArray))return u.apply(i,t);for(var r=0,o=t.length;o>r;r++){var a=t[r];m.isArray(a)||m.isArguments(a)?e?s.apply(i,a):v(a,e,n,i):n||i.push(a)}return i};m.flatten=function(t,e){return v(t,e,!1,[])},m.without=function(t){return m.difference(t,c.call(arguments,1))},m.uniq=m.unique=function(t,e,n,i){if(null==t)return[];m.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=m.iteratee(n,i));for(var r=[],o=[],a=0,s=t.length;s>a;a++){var c=t[a];if(e)a&&o===c||r.push(c),o=c;else if(n){var u=n(c,a,t);m.indexOf(o,u)<0&&(o.push(u),r.push(c))}else m.indexOf(r,c)<0&&r.push(c)}return r},m.union=function(){return m.uniq(v(arguments,!0,!0,[]))},m.intersection=function(t){if(null==t)return[];for(var e=[],n=arguments.length,i=0,r=t.length;r>i;i++){var o=t[i];if(!m.contains(e,o)){for(var a=1;n>a&&m.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},m.difference=function(t){var e=v(c.call(arguments,1),!0,!0,[]);return m.filter(t,function(t){return!m.contains(e,t)})},m.zip=function(t){if(null==t)return[];for(var e=m.max(arguments,"length").length,n=Array(e),i=0;e>i;i++)n[i]=m.pluck(arguments,i);return n},m.object=function(t,e){if(null==t)return{};for(var n={},i=0,r=t.length;r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},m.indexOf=function(t,e,n){if(null==t)return-1;var i=0,r=t.length;if(n){if("number"!=typeof n)return i=m.sortedIndex(t,e),t[i]===e?i:-1;i=0>n?Math.max(0,r+n):n}for(;r>i;i++)if(t[i]===e)return i;return-1},m.lastIndexOf=function(t,e,n){if(null==t)return-1;var i=t.length;for("number"==typeof n&&(i=0>n?i+n+1:Math.min(i,n+1));--i>=0;)if(t[i]===e)return i;return-1},m.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),o=0;i>o;o++,t+=n)r[o]=t;return r};var w=function(){};m.bind=function(t,e){var n,i;if(p&&t.bind===p)return p.apply(t,c.call(arguments,1));if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");return n=c.call(arguments,2),i=function(){if(!(this instanceof i))return t.apply(e,n.concat(c.call(arguments)));w.prototype=t.prototype;var r=new w;w.prototype=null;var o=t.apply(r,n.concat(c.call(arguments)));return m.isObject(o)?o:r}},m.partial=function(t){var e=c.call(arguments,1);return function(){for(var n=0,i=e.slice(),r=0,o=i.length;o>r;r++)i[r]===m&&(i[r]=arguments[n++]);for(;n<arguments.length;)i.push(arguments[n++]);return t.apply(this,i)}},m.bindAll=function(t){var e,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(e=1;i>e;e++)n=arguments[e],t[n]=m.bind(t[n],t);return t},m.memoize=function(t,e){var n=function(i){var r=n.cache,o=e?e.apply(this,arguments):i;return m.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n},m.delay=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},m.defer=function(t){return m.delay.apply(m,[t,1].concat(c.call(arguments,1)))},m.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var c=function(){s=n.leading===!1?0:m.now(),a=null,o=t.apply(i,r),a||(i=r=null)};return function(){var u=m.now();s||n.leading!==!1||(s=u);var l=e-(u-s);return i=this,r=arguments,0>=l||l>e?(clearTimeout(a),a=null,s=u,o=t.apply(i,r),a||(i=r=null)):a||n.trailing===!1||(a=setTimeout(c,l)),o}},m.debounce=function(t,e,n){var i,r,o,a,s,c=function(){var u=m.now()-a;e>u&&u>0?i=setTimeout(c,e-u):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=m.now();var u=n&&!i;return i||(i=setTimeout(c,e)),u&&(s=t.apply(o,r),o=r=null),s}},m.wrap=function(t,e){return m.partial(e,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},m.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},m.before=function(t,e){var n;return function(){return--t>0?n=e.apply(this,arguments):e=null,n}},m.once=m.partial(m.before,2),m.keys=function(t){if(!m.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)m.has(t,n)&&e.push(n);return e},m.values=function(t){for(var e=m.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},m.pairs=function(t){for(var e=m.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},m.invert=function(t){for(var e={},n=m.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},m.functions=m.methods=function(t){var e=[];for(var n in t)m.isFunction(t[n])&&e.push(n);return e.sort()},m.extend=function(t){if(!m.isObject(t))return t;for(var e,n,i=1,r=arguments.length;r>i;i++){e=arguments[i];for(n in e)h.call(e,n)&&(t[n]=e[n])}return t},m.pick=function(t,e,n){var i,r={};if(null==t)return r;if(m.isFunction(e)){e=g(e,n);for(i in t){var o=t[i];e(o,i,t)&&(r[i]=o)}}else{var a=u.apply([],c.call(arguments,1));t=new Object(t);for(var s=0,l=a.length;l>s;s++)i=a[s],i in t&&(r[i]=t[i])}return r},m.omit=function(t,e,n){if(m.isFunction(e))e=m.negate(e);else{var i=m.map(u.apply([],c.call(arguments,1)),String);e=function(t,e){return!m.contains(i,e)}}return m.pick(t,e,n)},m.defaults=function(t){if(!m.isObject(t))return t;for(var e=1,n=arguments.length;n>e;e++){var i=arguments[e];for(var r in i)void 0===t[r]&&(t[r]=i[r])}return t},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,e){return e(t),t};var k=function(t,e,n,i){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof m&&(t=t._wrapped),e instanceof m&&(e=e._wrapped);var r=l.call(t);if(r!==l.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]===t)return i[o]===e;var a=t.constructor,s=e.constructor;if(a!==s&&"constructor"in t&&"constructor"in e&&!(m.isFunction(a)&&a instanceof a&&m.isFunction(s)&&s instanceof s))return!1;n.push(t),i.push(e);var c,u;if("[object Array]"===r){if(c=t.length,u=c===e.length)for(;c--&&(u=k(t[c],e[c],n,i)););}else{var h,d=m.keys(t);if(c=d.length,u=m.keys(e).length===c)for(;c--&&(h=d[c],u=m.has(e,h)&&k(t[h],e[h],n,i)););}return n.pop(),i.pop(),u};m.isEqual=function(t,e){return k(t,e,[],[])},m.isEmpty=function(t){if(null==t)return!0;if(m.isArray(t)||m.isString(t)||m.isArguments(t))return 0===t.length;for(var e in t)if(m.has(t,e))return!1;return!0},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=d||function(t){return"[object Array]"===l.call(t)},m.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp"],function(t){m["is"+t]=function(e){return l.call(e)==="[object "+t+"]"}}),m.isArguments(arguments)||(m.isArguments=function(t){return m.has(t,"callee")}),"function"!=typeof/./&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&t!==+t},m.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===l.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,e){return null!=t&&h.call(t,e)},m.noConflict=function(){return t._=i,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=function(t){return function(e){return e[t]}},m.matches=function(t){var e=m.pairs(t),n=e.length;return function(t){if(null==t)return!n;t=new Object(t);for(var i=0;n>i;i++){var r=e[i],o=r[0];if(r[1]!==t[o]||!(o in t))return!1}return!0}},m.times=function(t,e,n){var i=Array(Math.max(0,t));e=g(e,n,1);for(var r=0;t>r;r++)i[r]=e(r);return i},m.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},m.now=Date.now||function(){return(new Date).getTime()};var E={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=m.invert(E),C=function(t){var e=function(e){return t[e]},n="(?:"+m.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};m.escape=C(E),m.unescape=C(T),m.result=function(t,e){if(null==t)return void 0;var n=t[e];return m.isFunction(n)?t[e]():n};var _=0;m.uniqueId=function(t){var e=++_+"";return t?t+e:e},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,S={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,O=function(t){return"\\"+S[t]};m.template=function(t,e,n){!e&&n&&(e=n),e=m.defaults({},e,m.templateSettings);var i=RegExp([(e.escape||A).source,(e.interpolate||A).source,(e.evaluate||A).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(i,function(e,n,i,a,s){return o+=t.slice(r,s).replace(P,O),r=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";
try{var a=new Function(e.variable||"obj","_",o)}catch(s){throw s.source=o,s}var c=function(t){return a.call(this,t,m)},u=e.variable||"obj";return c.source="function("+u+"){\n"+o+"}",c},m.chain=function(t){var e=m(t);return e._chain=!0,e};var I=function(t){return this._chain?m(t).chain():t};m.mixin=function(t){m.each(m.functions(t),function(e){var n=m[e]=t[e];m.prototype[e]=function(){var t=[this._wrapped];return s.apply(t,arguments),I.call(this,n.apply(m,t))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];m.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],I.call(this,n)}}),m.each(["concat","join","slice"],function(t){var e=r[t];m.prototype[t]=function(){return I.call(this,e.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this)},{}],zepto:[function(t,e){var n=function(){function t(t){return null==t?String(t):q[W.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function r(e){return"object"==t(e)}function o(t){return r(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){return"number"==typeof t.length}function s(t){return I.call(t,function(t){return null!=t})}function c(t){return t.length>0?C.fn.concat.apply([],t):t}function u(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in N?N[t]:N[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function h(t,e){return"number"!=typeof e||$[u(t)]?e:e+"px"}function d(t){var e,n;return j[t]||(e=R.createElement(t),R.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),j[t]=n),j[t]}function f(t){return"children"in t?x.call(t.children):C.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function p(t,e){var n,i=t?t.length:0;for(n=0;i>n;n++)this[n]=t[n];this.length=i,this.selector=e||""}function m(t,e,n){for(T in e)n&&(o(e[T])||Q(e[T]))?(o(e[T])&&!o(t[T])&&(t[T]={}),Q(e[T])&&!Q(t[T])&&(t[T]=[]),m(t[T],e[T],n)):e[T]!==E&&(t[T]=e[T])}function g(t,e){return null==e?C(t):C(t).filter(e)}function b(t,n,i,r){return e(n)?n.call(t,i,r):n}function y(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function v(t,e){var n=t.className||"",i=n&&n.baseVal!==E;return e===E?i?n.baseVal:n:void(i?n.baseVal=e:t.className=e)}function w(t){var e;try{return t?"true"==t||("false"==t?!1:"null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?C.parseJSON(t):t:e):t}catch(n){return t}}function k(t,e){e(t);for(var n=0,i=t.childNodes.length;i>n;n++)k(t.childNodes[n],e)}var E,T,C,_,A,S,P=[],O=P.concat,I=P.filter,x=P.slice,R=window.document,j={},N={},$={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},L=/^\s*<(\w+|!)[^>]*>/,D=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,B=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,F=/^(?:body|html)$/i,M=/([A-Z])/g,U=["val","css","html","text","data","width","height","offset"],V=["after","prepend","before","append"],z=R.createElement("table"),Y=R.createElement("tr"),G={tr:R.createElement("tbody"),tbody:z,thead:z,tfoot:z,td:Y,th:Y,"*":R.createElement("div")},K=/complete|loaded|interactive/,H=/^[\w-]*$/,q={},W=q.toString,X={},Z=R.createElement("div"),J={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return X.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=Z).appendChild(t),i=~X.qsa(r,e).indexOf(t),o&&Z.removeChild(t),i},A=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},S=function(t){return I.call(t,function(e,n){return t.indexOf(e)==n})},X.fragment=function(t,e,n){var i,r,a;return D.test(t)&&(i=C(R.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(B,"<$1></$2>")),e===E&&(e=L.test(t)&&RegExp.$1),e in G||(e="*"),a=G[e],a.innerHTML=""+t,i=C.each(x.call(a.childNodes),function(){a.removeChild(this)})),o(n)&&(r=C(i),C.each(n,function(t,e){U.indexOf(t)>-1?r[t](e):r.attr(t,e)})),i},X.Z=function(t,e){return new p(t,e)},X.isZ=function(t){return t instanceof X.Z},X.init=function(t,n){var i;if(!t)return X.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&L.test(t))i=X.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return C(n).find(t);i=X.qsa(R,t)}else{if(e(t))return C(R).ready(t);if(X.isZ(t))return t;if(Q(t))i=s(t);else if(r(t))i=[t],t=null;else if(L.test(t))i=X.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return C(n).find(t);i=X.qsa(R,t)}}return X.Z(i,t)},C=function(t,e){return X.init(t,e)},C.extend=function(t){var e,n=x.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){m(t,n,e)}),t},X.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==e[0],a=r||o?e.slice(1):e,s=H.test(a);return i(t)&&s&&r?(n=t.getElementById(a))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:x.call(s&&!r?o?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},C.contains=R.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},C.type=t,C.isFunction=e,C.isWindow=n,C.isArray=Q,C.isPlainObject=o,C.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},C.inArray=function(t,e,n){return P.indexOf.call(e,t,n)},C.camelCase=A,C.trim=function(t){return null==t?"":String.prototype.trim.call(t)},C.uuid=0,C.support={},C.expr={},C.map=function(t,e){var n,i,r,o=[];if(a(t))for(i=0;i<t.length;i++)n=e(t[i],i),null!=n&&o.push(n);else for(r in t)n=e(t[r],r),null!=n&&o.push(n);return c(o)},C.each=function(t,e){var n,i;if(a(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},C.grep=function(t,e){return I.call(t,e)},window.JSON&&(C.parseJSON=JSON.parse),C.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){q["[object "+e+"]"]=e.toLowerCase()}),C.fn={constructor:X.Z,length:0,forEach:P.forEach,reduce:P.reduce,push:P.push,sort:P.sort,splice:P.splice,indexOf:P.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=X.isZ(e)?e.toArray():e;return O.apply(X.isZ(this)?this.toArray():this,n)},map:function(t){return C(C.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return C(x.apply(this,arguments))},ready:function(t){return K.test(R.readyState)&&R.body?t(C):R.addEventListener("DOMContentLoaded",function(){t(C)},!1),this},get:function(t){return t===E?x.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return P.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):C(I.call(this,function(e){return X.matches(e,t)}))},add:function(t,e){return C(S(this.concat(C(t,e))))},is:function(t){return this.length>0&&X.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):a(t)&&e(t.item)?x.call(t):C(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return C(n)},has:function(t){return this.filter(function(){return r(t)?C.contains(this,t):C(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:C(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:C(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?C(t).filter(function(){var t=this;return P.some.call(n,function(e){return C.contains(e,t)})}):1==this.length?C(X.qsa(this[0],t)):this.map(function(){return X.qsa(this,t)}):[]},closest:function(t,e){var n=this[0],r=!1;for("object"==typeof t&&(r=C(t));n&&!(r?r.indexOf(n)>=0:X.matches(n,t));)n=n!==e&&!i(n)&&n.parentNode;return C(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=C.map(n,function(t){return(t=t.parentNode)&&!i(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return g(e,t)},parent:function(t){return g(S(this.pluck("parentNode")),t)},children:function(t){return g(this.map(function(){return f(this)}),t)},contents:function(){return this.map(function(){return x.call(this.childNodes)})},siblings:function(t){return g(this.map(function(t,e){return I.call(f(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return C.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=d(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var i=C(t).get(0),r=i.parentNode||this.length>1;return this.each(function(e){C(this).wrapAll(n?t.call(this,e):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){C(this[0]).before(t=C(t));for(var e;(e=t.children()).length;)t=e.first();C(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var i=C(this),r=i.contents(),o=n?t.call(this,e):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){C(this).replaceWith(C(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=C(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return C(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return C(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;C(this).empty().append(b(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=b(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this[0].textContent:null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(r(t))for(T in t)y(this,T,t[T]);else y(this,t,b(this,e,n,this.getAttribute(t)))}):this.length&&1===this[0].nodeType?!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,e){return t=J[t]||t,1 in arguments?this.each(function(n){this[t]=b(this,e,n,this[t])}):this[0]&&this[0][t]},data:function(t,e){var n="data-"+t.replace(M,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,e):this.attr(n);return null!==i?w(i):E},val:function(t){return 0 in arguments?this.each(function(e){this.value=b(this,t,e,this.value)}):this[0]&&(this[0].multiple?C(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=C(this),i=b(this,t,e,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var i=this[0],r=getComputedStyle(i,"");if(!i)return;if("string"==typeof e)return i.style[A(e)]||r.getPropertyValue(e);if(Q(e)){var o={};return C.each(e,function(t,e){o[e]=i.style[A(e)]||r.getPropertyValue(e)}),o}}var a="";if("string"==t(e))n||0===n?a=u(e)+":"+h(e,n):this.each(function(){this.style.removeProperty(u(e))});else for(T in e)e[T]||0===e[T]?a+=u(T)+":"+h(T,e[T])+";":this.each(function(){this.style.removeProperty(u(T))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(C(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?P.some.call(this,function(t){return this.test(v(t))},l(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){_=[];var n=v(this),i=b(this,t,e,n);i.split(/\s+/g).forEach(function(t){C(this).hasClass(t)||_.push(t)},this),_.length&&v(this,n+(n?" ":"")+_.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return v(this,"");_=v(this),b(this,t,e,_).split(/\s+/g).forEach(function(t){_=_.replace(l(t)," ")}),v(this,_.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var i=C(this),r=b(this,t,n,v(this));r.split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=F.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(C(t).css("margin-top"))||0,n.left-=parseFloat(C(t).css("margin-left"))||0,i.top+=parseFloat(C(e[0]).css("border-top-width"))||0,i.left+=parseFloat(C(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||R.body;t&&!F.test(t.nodeName)&&"static"==C(t).css("position");)t=t.offsetParent;return t})}},C.fn.detach=C.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});C.fn[t]=function(r){var o,a=this[0];return r===E?n(a)?a["inner"+e]:i(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=C(this),a.css(t,b(this,r,e,a[t]()))})}}),V.forEach(function(e,n){var i=n%2;C.fn[e]=function(){var e,r,o=C.map(arguments,function(n){return e=t(n),"object"==e||"array"==e||null==n?n:X.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){r=i?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=C.contains(R.documentElement,r);o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!r)return C(t).remove();r.insertBefore(t,e),s&&k(t,function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},C.fn[i?e+"To":"insert"+(n?"Before":"After")]=function(t){return C(t)[e](this),this}}),X.Z.prototype=p.prototype=C.fn,X.uniq=S,X.deserializeValue=w,C.zepto=X,C}();window.Zepto=n,void 0===window.$&&(window.$=n),function(t){function e(n){var i=[["resolve","done",t.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",t.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",t.Callbacks({memory:1})]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var n=arguments;return e(function(e){t.each(i,function(i,r){var s=t.isFunction(n[i])&&n[i];a[r[1]](function(){var n=s&&s.apply(this,arguments);if(n&&t.isFunction(n.promise))n.promise().done(e.resolve).fail(e.reject).progress(e.notify);else{var i=this===o?e.promise():this,a=s?[n]:arguments;e[r[0]+"With"](i,a)}})}),n=null}).promise()},promise:function(e){return null!=e?t.extend(e,o):o}},a={};return t.each(i,function(t,e){var n=e[2],s=e[3];o[e[1]]=n.add,s&&n.add(function(){r=s},i[1^t][2].disable,i[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?o:this,arguments),this},a[e[0]+"With"]=n.fireWith}),o.promise(a),n&&n.call(a,a),a}var n=Array.prototype.slice;t.when=function(i){var r,o,a,s=n.call(arguments),c=s.length,u=0,l=1!==c||i&&t.isFunction(i.promise)?c:0,h=1===l?i:e(),d=function(t,e,i){return function(o){e[t]=this,i[t]=arguments.length>1?n.call(arguments):o,i===r?h.notifyWith(e,i):--l||h.resolveWith(e,i)}};if(c>1)for(r=new Array(c),o=new Array(c),a=new Array(c);c>u;++u)s[u]&&t.isFunction(s[u].promise)?s[u].promise().done(d(u,a,s)).fail(h.reject).progress(d(u,o,r)):--l;return l||h.resolveWith(a,s),h.promise()},t.Deferred=e}(n),function(t){function e(t){var e=this.os={},n=this.browser={},i=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=!!t.match(/\(Macintosh\; Intel /),a=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),c=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=t.match(/Windows Phone ([\d.]+)/),h=u&&t.match(/TouchPad/),d=t.match(/Kindle\/([\d.]+)/),f=t.match(/Silk\/([\d._]+)/),p=t.match(/(BlackBerry).*Version\/([\d.]+)/),m=t.match(/(BB10).*Version\/([\d.]+)/),g=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),b=t.match(/PlayBook/),y=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),v=t.match(/Firefox\/([\d.]+)/),w=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),k=!y&&t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),E=k||t.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(n.webkit=!!i)&&(n.version=i[1]),r&&(e.android=!0,e.version=r[2]),c&&!s&&(e.ios=e.iphone=!0,e.version=c[2].replace(/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2].replace(/_/g,".")),s&&(e.ios=e.ipod=!0,e.version=s[3]?s[3].replace(/_/g,"."):null),l&&(e.wp=!0,e.version=l[1]),u&&(e.webos=!0,e.version=u[2]),h&&(e.touchpad=!0),p&&(e.blackberry=!0,e.version=p[2]),m&&(e.bb10=!0,e.version=m[2]),g&&(e.rimtabletos=!0,e.version=g[2]),b&&(n.playbook=!0),d&&(e.kindle=!0,e.version=d[1]),f&&(n.silk=!0,n.version=f[1]),!f&&e.android&&t.match(/Kindle Fire/)&&(n.silk=!0),y&&(n.chrome=!0,n.version=y[1]),v&&(n.firefox=!0,n.version=v[1]),w&&(n.ie=!0,n.version=w[1]),E&&(o||e.ios)&&(n.safari=!0,o&&(n.version=E[1])),k&&(n.webview=!0),e.tablet=!!(a||b||r&&!t.match(/Mobile/)||v&&t.match(/Tablet/)||w&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||c||u||p||m||y&&t.match(/Android/)||y&&t.match(/CriOS\/([\d.]+)/)||v&&t.match(/Mobile/)||w&&t.match(/Touch/)))}e.call(t,navigator.userAgent),t.__detect=e}(n),function(t){function e(e,n,i){var r=t.Event(n);return t(e).trigger(r,i),!r.isDefaultPrevented()}function n(t,n,i,r){return t.global?e(n||y,i,r):void 0}function i(e){e.global&&0===t.active++&&n(e,null,"ajaxStart")}function r(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var i=e.context;return e.beforeSend.call(i,t,e)===!1||n(e,i,"ajaxBeforeSend",[t,e])===!1?!1:void n(e,i,"ajaxSend",[t,e])}function a(t,e,i,r){var o=i.context,a="success";i.success.call(o,t,a,e),r&&r.resolveWith(o,[t,a,e]),n(i,o,"ajaxSuccess",[e,i,t]),c(a,e,i)}function s(t,e,i,r,o){var a=r.context;r.error.call(a,i,e,t),o&&o.rejectWith(a,[i,e,t]),n(r,a,"ajaxError",[i,r,t||e]),c(e,i,r)}function c(t,e,i){var o=i.context;i.complete.call(o,e,t),n(i,o,"ajaxComplete",[e,i]),r(i)}function u(){}function l(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==E?"json":w.test(t)?"script":k.test(t)&&"xml")||"text"}function h(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function d(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=h(e.url,e.data),e.data=void 0)}function f(e,n,i,r){return t.isFunction(n)&&(r=i,i=n,n=void 0),t.isFunction(i)||(r=i,i=void 0),{url:e,data:n,success:i,dataType:r}}function p(e,n,i,r){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,c){o=t.type(c),r&&(n=i?r:r+"["+(s||"object"==o||"array"==o?n:"")+"]"),!r&&a?e.add(c.name,c.value):"array"==o||!i&&"object"==o?p(e,c,i,n):e.add(n,c)})}var m,g,b=0,y=window.document,v=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,w=/^(?:text|application)\/javascript/i,k=/^(?:text|application)\/xml/i,E="application/json",T="text/html",C=/^\s*$/;t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var i,r,c=e.jsonpCallback,u=(t.isFunction(c)?c():c)||"jsonp"+ ++b,l=y.createElement("script"),h=window[u],d=function(e){t(l).triggerHandler("error",e||"abort")},f={abort:d};return n&&n.promise(f),t(l).on("load error",function(o,c){clearTimeout(r),t(l).off().remove(),"error"!=o.type&&i?a(i[0],f,e,n):s(null,c||"error",f,e,n),window[u]=h,i&&t.isFunction(h)&&h(i[0]),h=i=void 0}),o(f,e)===!1?(d("abort"),f):(window[u]=function(){i=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+u),y.head.appendChild(l),e.timeout>0&&(r=setTimeout(function(){d("timeout")},e.timeout)),f)},t.ajaxSettings={type:"GET",beforeSend:u,success:u,error:u,complete:u,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:E,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(e){var n=t.extend({},e||{}),r=t.Deferred&&t.Deferred();for(m in t.ajaxSettings)void 0===n[m]&&(n[m]=t.ajaxSettings[m]);i(n),n.crossDomain||(n.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(n.url)&&RegExp.$2!=window.location.host),n.url||(n.url=window.location.toString()),d(n);var c=n.dataType,f=/\?.+=\?/.test(n.url);if(f&&(c="jsonp"),n.cache!==!1&&(e&&e.cache===!0||"script"!=c&&"jsonp"!=c)||(n.url=h(n.url,"_="+Date.now())),"jsonp"==c)return f||(n.url=h(n.url,n.jsonp?n.jsonp+"=?":n.jsonp===!1?"":"callback=?")),t.ajaxJSONP(n,r);var p,b=n.accepts[c],y={},v=function(t,e){y[t.toLowerCase()]=[t,e]},w=/^([\w-]+:)\/\//.test(n.url)?RegExp.$1:window.location.protocol,k=n.xhr(),E=k.setRequestHeader;if(r&&r.promise(k),n.crossDomain||v("X-Requested-With","XMLHttpRequest"),v("Accept",b||"*/*"),(b=n.mimeType||b)&&(b.indexOf(",")>-1&&(b=b.split(",",2)[0]),k.overrideMimeType&&k.overrideMimeType(b)),(n.contentType||n.contentType!==!1&&n.data&&"GET"!=n.type.toUpperCase())&&v("Content-Type",n.contentType||"application/x-www-form-urlencoded"),n.headers)for(g in n.headers)v(g,n.headers[g]);if(k.setRequestHeader=v,k.onreadystatechange=function(){if(4==k.readyState){k.onreadystatechange=u,clearTimeout(p);var e,i=!1;if(k.status>=200&&k.status<300||304==k.status||0==k.status&&"file:"==w){c=c||l(n.mimeType||k.getResponseHeader("content-type")),e=k.responseText;try{"script"==c?(1,eval)(e):"xml"==c?e=k.responseXML:"json"==c&&(e=C.test(e)?null:t.parseJSON(e))}catch(o){i=o}i?s(i,"parsererror",k,n,r):a(e,k,n,r)}else s(k.statusText||null,k.status?"error":"abort",k,n,r)}},o(k,n)===!1)return k.abort(),s(null,"abort",k,n,r),k;if(n.xhrFields)for(g in n.xhrFields)k[g]=n.xhrFields[g];var T="async"in n?n.async:!0;k.open(n.type,n.url,T,n.username,n.password);for(g in y)E.apply(k,y[g]);return n.timeout>0&&(p=setTimeout(function(){k.onreadystatechange=u,k.abort(),s(null,"timeout",k,n,r)},n.timeout)),k.send(n.data?n.data:null),k},t.get=function(){return t.ajax(f.apply(null,arguments))},t.post=function(){var e=f.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=f.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,i){if(!this.length)return this;var r,o=this,a=e.split(/\s/),s=f(e,n,i),c=s.success;return a.length>1&&(s.url=a[0],r=a[1]),s.success=function(e){o.html(r?t("<div>").html(e.replace(v,"")).find(r):e),c&&c.apply(o,arguments)},t.ajax(s),this};var _=encodeURIComponent;t.param=function(t,e){var n=[];return n.add=function(t,e){this.push(_(t)+"="+_(e))},p(n,t,e),n.join("&").replace(/%20/g,"+")}}(n),function(t){function e(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left":"Right":n-i>0?"Up":"Down"}function n(){l=null,d.last&&(d.el.trigger("longTap"),d={})}function i(){l&&clearTimeout(l),l=null}function r(){s&&clearTimeout(s),c&&clearTimeout(c),u&&clearTimeout(u),l&&clearTimeout(l),s=c=u=l=null,d={}}function o(t){return("touch"==t.pointerType||t.pointerType==t.MSPOINTER_TYPE_TOUCH)&&t.isPrimary}function a(t,e){return t.type=="pointer"+e||t.type.toLowerCase()=="mspointer"+e}var s,c,u,l,h,d={},f=750;t(document).ready(function(){var p,m,g,b,y=0,v=0;"MSGesture"in window&&(h=new MSGesture,h.target=document.body),t(document).bind("MSGestureEnd",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&(d.el.trigger("swipe"),d.el.trigger("swipe"+e))}).on("touchstart MSPointerDown pointerdown",function(e){(!(b=a(e,"down"))||o(e))&&(g=b?e:e.touches[0],e.touches&&1===e.touches.length&&d.x2&&(d.x2=void 0,d.y2=void 0),p=Date.now(),m=p-(d.last||p),d.el=t("tagName"in g.target?g.target:g.target.parentNode),s&&clearTimeout(s),d.x1=g.pageX,d.y1=g.pageY,m>0&&250>=m&&(d.isDoubleTap=!0),d.last=p,l=setTimeout(n,f),h&&b&&h.addPointer(e.pointerId))}).on("touchmove MSPointerMove pointermove",function(t){(!(b=a(t,"move"))||o(t))&&(g=b?t:t.touches[0],i(),d.x2=g.pageX,d.y2=g.pageY,y+=Math.abs(d.x1-d.x2),v+=Math.abs(d.y1-d.y2))}).on("touchend MSPointerUp pointerup",function(n){(!(b=a(n,"up"))||o(n))&&(i(),d.x2&&Math.abs(d.x1-d.x2)>30||d.y2&&Math.abs(d.y1-d.y2)>30?u=setTimeout(function(){d.el.trigger("swipe"),d.el.trigger("swipe"+e(d.x1,d.x2,d.y1,d.y2)),d={}},0):"last"in d&&(30>y&&30>v?c=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=r,d.el.trigger(e),d.isDoubleTap?(d.el&&d.el.trigger("doubleTap"),d={}):s=setTimeout(function(){s=null,d.el&&d.el.trigger("singleTap"),d={}},250)},0):d={}),y=v=0)}).on("touchcancel MSPointerCancel pointercancel",r),t(window).on("scroll",r)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(e){t.fn[e]=function(t){return this.on(e,t)}})}(n),function(t){function e(e){return e=t(e),!(!e.width()&&!e.height())&&"none"!==e.css("display")}function n(t,e){t=t.replace(/=#\]/g,'="#"]');var n,i,r=s.exec(t);if(r&&r[2]in a&&(n=a[r[2]],i=r[3],t=r[1],i)){var o=Number(i);i=isNaN(o)?i.replace(/^["']|["']$/g,""):o}return e(t,n,i)}var i=t.zepto,r=i.qsa,o=i.matches,a=t.expr[":"]={visible:function(){return e(this)?this:void 0},hidden:function(){return e(this)?void 0:this},selected:function(){return this.selected?this:void 0},checked:function(){return this.checked?this:void 0},parent:function(){return this.parentNode},first:function(t){return 0===t?this:void 0},last:function(t,e){return t===e.length-1?this:void 0},eq:function(t,e,n){return t===n?this:void 0},contains:function(e,n,i){return t(this).text().indexOf(i)>-1?this:void 0},has:function(t,e,n){return i.qsa(this,n).length?this:void 0}},s=new RegExp("(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*"),c=/^\s*>/,u="Zepto"+ +new Date;i.qsa=function(e,o){return n(o,function(n,a,s){try{var l;!n&&a?n="*":c.test(n)&&(l=t(e).addClass(u),n="."+u+" "+n);var h=r(e,n)}catch(d){throw console.error("error performing selector: %o",o),d}finally{l&&l.removeClass(u)}return a?i.uniq(t.map(h,function(t,e){return a.call(t,e,h,s)})):h})},i.matches=function(t,e){return n(e,function(e,n,i){return!(e&&!o(t,e)||n&&n.call(t,null,i)!==t)})}}(n),function(t){function e(t){return t._zid||(t._zid=d++)}function n(t,n,o,a){if(n=i(n),n.ns)var s=r(n.ns);return(g[e(t)]||[]).filter(function(t){return!(!t||n.e&&t.e!=n.e||n.ns&&!s.test(t.ns)||o&&e(t.fn)!==e(o)||a&&t.sel!=a)})}function i(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in v||!!e}function a(t){return w[t]||y&&v[t]||t}function s(n,r,s,c,l,d,f){var p=e(n),m=g[p]||(g[p]=[]);r.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(s);var r=i(e);r.fn=s,r.sel=l,r.e in w&&(s=function(e){var n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?r.fn.apply(this,arguments):void 0}),r.del=d;var p=d||s;r.proxy=function(t){if(t=u(t),!t.isImmediatePropagationStopped()){t.data=c;var e=p.apply(n,t._args==h?[t]:[t].concat(t._args));return e===!1&&(t.preventDefault(),t.stopPropagation()),e}},r.i=m.length,m.push(r),"addEventListener"in n&&n.addEventListener(a(r.e),r.proxy,o(r,f))})}function c(t,i,r,s,c){var u=e(t);(i||"").split(/\s/).forEach(function(e){n(t,e,r,s).forEach(function(e){delete g[u][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,o(e,c))})})}function u(e,n){return(n||!e.isDefaultPrevented)&&(n||(n=e),t.each(C,function(t,i){var r=n[t];e[t]=function(){return this[i]=k,r&&r.apply(n,arguments)},e[i]=E}),(n.defaultPrevented!==h?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=k)),e}function l(t){var e,n={originalEvent:t};for(e in t)T.test(e)||t[e]===h||(n[e]=t[e]);return u(n,t)}var h,d=1,f=Array.prototype.slice,p=t.isFunction,m=function(t){return"string"==typeof t},g={},b={},y="onfocusin"in window,v={focus:"focusin",blur:"focusout"},w={mouseenter:"mouseover",mouseleave:"mouseout"};b.click=b.mousedown=b.mouseup=b.mousemove="MouseEvents",t.event={add:s,remove:c},t.proxy=function(n,i){var r=2 in arguments&&f.call(arguments,2);if(p(n)){var o=function(){return n.apply(i,r?r.concat(f.call(arguments)):arguments)};return o._zid=e(n),o}if(m(i))return r?(r.unshift(n[i],n),t.proxy.apply(null,r)):t.proxy(n[i],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var k=function(){return!0},E=function(){return!1},T=/^([A-Z]|returnValue$|layer[XY]$)/,C={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,i,r,o){var a,u,d=this;return e&&!m(e)?(t.each(e,function(t,e){d.on(t,n,i,e,o)}),d):(m(n)||p(r)||r===!1||(r=i,i=n,n=h),(p(i)||i===!1)&&(r=i,i=h),r===!1&&(r=E),d.each(function(h,d){o&&(a=function(t){return c(d,t.type,r),r.apply(this,arguments)}),n&&(u=function(e){var i,o=t(e.target).closest(n,d).get(0);return o&&o!==d?(i=t.extend(l(e),{currentTarget:o,liveFired:d}),(a||r).apply(o,[i].concat(f.call(arguments,1)))):void 0}),s(d,e,r,i,n,u||a)}))},t.fn.off=function(e,n,i){var r=this;return e&&!m(e)?(t.each(e,function(t,e){r.off(t,n,e)}),r):(m(n)||p(i)||i===!1||(i=n,n=h),i===!1&&(i=E),r.each(function(){c(this,e,i,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):u(e),e._args=n,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,i){var r,o;return this.each(function(a,s){r=l(m(e)?t.Event(e):e),r._args=i,r.target=s,t.each(n(s,e.type||e),function(t,e){return o=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),o},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)}}),["focus","blur"].forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.each(function(){try{this[e]()}catch(t){}}),this}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(b[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];
return n.initEvent(t,i,!0),u(n)}}(n),function(t){t.Callbacks=function(e){e=t.extend({},e);var n,i,r,o,a,s,c=[],u=!e.once&&[],l=function(t){for(n=e.memory&&t,i=!0,s=o||0,o=0,a=c.length,r=!0;c&&a>s;++s)if(c[s].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}r=!1,c&&(u?u.length&&l(u.shift()):n?c.length=0:h.disable())},h={add:function(){if(c){var i=c.length,s=function(n){t.each(n,function(t,n){"function"==typeof n?e.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!=typeof n&&s(n)})};s(arguments),r?a=c.length:n&&(o=i,l(n))}return this},remove:function(){return c&&t.each(arguments,function(e,n){for(var i;(i=t.inArray(n,c,i))>-1;)c.splice(i,1),r&&(a>=i&&--a,s>=i&&--s)}),this},has:function(e){return!(!c||!(e?t.inArray(e,c)>-1:c.length))},empty:function(){return a=c.length=0,this},disable:function(){return c=u=n=void 0,this},disabled:function(){return!c},lock:function(){return u=void 0,n||h.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||i&&!u||(e=e||[],e=[t,e.slice?e.slice():e],r?u.push(e):l(e)),this},fire:function(){return h.fireWith(this,arguments)},fired:function(){return!!i}};return h}}(n),e.exports=n},{}]},{},[3,1]); | 29,351.428571 | 44,013 | 0.725183 |
b783927db52b35e16bbf207d923907bcf4d85c68 | 1,313 | js | JavaScript | src/components/CloseButton/CloseButton.js | TomSlezakowski/react-ui | 854e168ee7f0ae74d2cf7d9072e6453eca03a3f9 | [
"MIT"
] | 7 | 2019-02-12T10:14:47.000Z | 2021-08-30T12:35:57.000Z | src/components/CloseButton/CloseButton.js | TomSlezakowski/react-ui | 854e168ee7f0ae74d2cf7d9072e6453eca03a3f9 | [
"MIT"
] | 40 | 2019-01-24T19:48:22.000Z | 2021-07-19T17:26:26.000Z | src/components/CloseButton/CloseButton.js | TomSlezakowski/react-ui | 854e168ee7f0ae74d2cf7d9072e6453eca03a3f9 | [
"MIT"
] | 3 | 2020-12-24T10:36:32.000Z | 2021-09-16T21:40:27.000Z | import React, { memo } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import checkProps from '@jam3/react-check-extra-props';
import './CloseButton.scss';
import BaseButton from '../BaseButton/BaseButton';
const CloseButton = ({ className, ...buttonProps }) => {
return (
<BaseButton className={classnames('CloseButton', className)} {...buttonProps}>
<span />
<span />
</BaseButton>
);
};
CloseButton.propTypes = checkProps({
style: PropTypes.object,
className: PropTypes.string,
nodeRef: PropTypes.func,
children: PropTypes.node,
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
onClick: PropTypes.func,
onBlur: PropTypes.func,
onFocus: PropTypes.func,
onKeyDown: PropTypes.func,
onKeyUp: PropTypes.func,
onMouseMove: PropTypes.func,
onMouseEnter: PropTypes.func,
onMouseLeave: PropTypes.func,
onMouseUp: PropTypes.func,
onMouseDown: PropTypes.func,
onTouchEnd: PropTypes.func,
onTouchMove: PropTypes.func,
onTouchStart: PropTypes.func,
role: PropTypes.string,
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
disabled: PropTypes.bool,
'aria-label': PropTypes.string
});
CloseButton.defaultProps = {
component: 'button'
};
export default memo(CloseButton);
| 26.795918 | 82 | 0.728104 |
b7853deb7d28e80e50979339d5cc97488ee7f374 | 1,920 | js | JavaScript | src/parameters/AnyParameter.js | kelseykm/vcard4 | 50909acef5ff1f9d1e3e5783d2f0bc7ae99a0222 | [
"ISC"
] | 11 | 2021-11-18T14:40:28.000Z | 2022-03-29T07:47:36.000Z | src/parameters/AnyParameter.js | kelseykm/vcard4 | 50909acef5ff1f9d1e3e5783d2f0bc7ae99a0222 | [
"ISC"
] | 14 | 2021-09-18T23:21:24.000Z | 2022-03-25T19:14:15.000Z | src/parameters/AnyParameter.js | kelseykm/vcard4 | 50909acef5ff1f9d1e3e5783d2f0bc7ae99a0222 | [
"ISC"
] | 2 | 2021-10-06T11:57:35.000Z | 2022-02-28T12:25:55.000Z | import { BaseParameter } from './BaseParameter.js';
import { MissingArgument, InvalidArgument } from '../errors/index.js';
export class AnyParameter extends BaseParameter {
static identifier = 'AnyParameter';
#value;
#param;
get param() {
return `${this.#param}`;
}
get value() {
return this.#cleanUp(this.#value.repr());
}
get valueXML() {
return this.#value.reprXML();
}
get valueJSON() {
return this.#value.reprJSON();
}
#paramRegExp = /^(?:A-GNSS|A-GPS|AOA|best-guess|Cell|DBH|DBH_HELO|Derived|Device-Assisted_A-GPS|Device-Assisted_EOTD|Device-Based_A-GPS|Device-Based_EOTD|DHCP|E-CID|ELS-BLE|ELS-WiFi|GNSS|GPS|Handset_AFLT|Handset_EFLT|Hybrid_A-GPS|hybridAGPS_AFLT|hybridCellSector_AGPS|hybridTDOA_AOA|hybridTDOA_AGPS|hybridTDOA_AGPS_AOA|IPDL|LLDP-MED|Manual|MBS|MPL|NEAD-BLE|NEAD-WiFi|networkRFFingerprinting|networkTDOA|networkTOA|NMR|OTDOA|RFID|RSSI|RSSI-RTT|RTT|TA|TA-NMR|Triangulation|UTDOA|Wiremap|802\.11|x-[A-Za-z0-9]+)$/i;
#valueRegExp = /^(?:Boolean|DateTime(?:List)?|Float(?:List)?|Integer(?:List)?|LanguageTag|Sex|SpecialValue|Text(?:List)?|URI)Type$/;
#cleanUp(value) {
return value.replaceAll('^', '^^').replaceAll('\n', '^n').replaceAll('"', '^’');
}
#validate(param, value) {
if (typeof param === 'undefined' || typeof value === 'undefined')
throw new MissingArgument('Parameter name and value for AnyParameter must be supplied');
else if (!this.#paramRegExp.test(param))
throw new InvalidArgument('Invalid parameter name for AnyParameter');
else if (!this.#valueRegExp.test(value?.constructor?.identifier))
throw new InvalidArgument('Invalid value for AnyParameter');
}
constructor(param, value) {
super();
this.#validate(param, value);
this.#param = param;
this.#value = value;
this.checkAbstractPropertiesAndMethods();
Object.freeze(this);
}
}
Object.freeze(AnyParameter);
| 33.103448 | 514 | 0.701042 |
b7867e1be17b10482e91ebbea6e6959883364bbe | 198 | js | JavaScript | .babelrc.js | JeffBNimble/tft-match-history-service | 13e4b7bfe829bf8ecbe3fd3757531dd4d9a8763e | [
"Apache-2.0"
] | null | null | null | .babelrc.js | JeffBNimble/tft-match-history-service | 13e4b7bfe829bf8ecbe3fd3757531dd4d9a8763e | [
"Apache-2.0"
] | 1 | 2021-11-19T03:22:30.000Z | 2021-11-19T03:22:30.000Z | .babelrc.js | Sunny-Sky-Tech/Atelier-Reviews-API | e371869ec0b40a7a499606f0cea36e44a92cca3e | [
"MIT"
] | 1 | 2021-09-22T02:40:32.000Z | 2021-09-22T02:40:32.000Z | const pkg = require('./package.json')
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: pkg.engines.node,
},
},
],
],
} | 14.142857 | 37 | 0.429293 |
b786c579323729319fa1ffbf9c8fecc47e9407fb | 1,961 | js | JavaScript | tests/js/optimalPushtx.scrypttest.js | samooth/boilerplate | 38bb98bdb2dee0bdadb4ea1465bafc11438f2384 | [
"MIT"
] | 89 | 2020-11-16T02:40:00.000Z | 2022-03-28T05:56:17.000Z | tests/js/optimalPushtx.scrypttest.js | 1Blackdiamondsc/boilerplate | 400f89b5f02979ad17679028caa4d9094bb569b5 | [
"MIT"
] | 41 | 2020-11-18T07:34:27.000Z | 2022-03-24T16:52:27.000Z | tests/js/optimalPushtx.scrypttest.js | 1Blackdiamondsc/boilerplate | 400f89b5f02979ad17679028caa4d9094bb569b5 | [
"MIT"
] | 41 | 2020-11-13T09:02:59.000Z | 2022-03-28T05:56:16.000Z | const path = require('path');
const { expect } = require('chai');
const { bsv, buildContractClass, getPreimage, toHex, SigHashPreimage } = require('scryptlib');
const {
inputIndex,
inputSatoshis,
newTx,
compileContract,
sighashType2Hex,
} = require("../../helper");
const Hash = bsv.crypto.Hash
const tx = newTx();
const Signature = bsv.crypto.Signature
const sighashType = Signature.SIGHASH_ALL | Signature.SIGHASH_FORKID
// MSB of the sighash due to lower S policy
const MSB_THRESHOLD = 0x7E
describe('Test sCrypt contract OptimalPushTx In Javascript', () => {
let test, preimage, result
before(() => {
const Test = buildContractClass(compileContract('optimalPushtx.scrypt'))
test = new Test();
// // use this if sigHashType needs to be customized, using Tx.checkPreimageOpt_(txPreimage)
// const asmVars = {'Tx.checkPreimageOpt_.sigHashType': sighashType2Hex(sighashType)}
// test.replaceAsmVars(asmVars)
console.log(`locking script length: ${test.lockingScript.toHex().length / 2}`)
// set txContext for verification
test.txContext = {
tx,
inputIndex,
inputSatoshis
}
});
it('should return true', () => {
for (i = 0; ; i++) {
// malleate tx and thus sighash to satisfy constraint
tx.nLockTime = i
const preimage_ = getPreimage(tx, test.lockingScript, inputSatoshis, inputIndex, sighashType)
preimage = toHex(preimage_)
const h = Hash.sha256sha256(Buffer.from(preimage, 'hex'))
const msb = h.readUInt8()
if (msb < MSB_THRESHOLD) {
// the resulting MSB of sighash must be less than the threshold
break
}
}
result = test.validate(new SigHashPreimage(preimage)).verify()
expect(result.success, result.error).to.be.true
});
}); | 33.237288 | 105 | 0.617032 |
b7870701c651c4c8e2920e17396f196c3ca42a7f | 118 | js | JavaScript | src/actions/weatherActions.js | yogeshkumar05/weatherApp | b59c0e773858bfb3caab35743b0a7bce0820fc78 | [
"MIT"
] | 1 | 2019-04-01T14:59:06.000Z | 2019-04-01T14:59:06.000Z | src/actions/weatherActions.js | yogeshkumar05/weatherApp | b59c0e773858bfb3caab35743b0a7bce0820fc78 | [
"MIT"
] | null | null | null | src/actions/weatherActions.js | yogeshkumar05/weatherApp | b59c0e773858bfb3caab35743b0a7bce0820fc78 | [
"MIT"
] | null | null | null | export const fetchWeatherAction = (zipcode) => ({
type: 'FETCH_WEATHER',
payload: {
zipcode
}
}); | 16.857143 | 49 | 0.567797 |
b787476676e714891ccc1d867d6b979ad37db498 | 4,202 | js | JavaScript | node_modules/@iconify/icons-logos/aurelia.js | prabalgupta12/Portfolio | 7dce63d67c7cfdb5af40e22f5a6bc366b0ccd606 | [
"MIT"
] | 1 | 2021-12-28T18:19:41.000Z | 2021-12-28T18:19:41.000Z | node_modules/@iconify/icons-logos/aurelia.js | prabalgupta12/Portfolio | 7dce63d67c7cfdb5af40e22f5a6bc366b0ccd606 | [
"MIT"
] | null | null | null | node_modules/@iconify/icons-logos/aurelia.js | prabalgupta12/Portfolio | 7dce63d67c7cfdb5af40e22f5a6bc366b0ccd606 | [
"MIT"
] | null | null | null | var data = {
"body": "<defs><linearGradient x1=\"-388.148%\" y1=\"-113.678%\" x2=\"237.684%\" y2=\"370.655%\" id=\"ssvg-id-aureliaa\"><stop stop-color=\"#C06FBB\" offset=\"0%\"/><stop stop-color=\"#6E4D9B\" offset=\"100%\"/></linearGradient><linearGradient x1=\"72.945%\" y1=\"79.515%\" x2=\"-97.052%\" y2=\"-119.502%\" id=\"ssvg-id-aureliab\"><stop stop-color=\"#6E4D9B\" offset=\"0%\"/><stop stop-color=\"#77327A\" offset=\"14%\"/><stop stop-color=\"#B31777\" offset=\"29%\"/><stop stop-color=\"#CD0F7E\" offset=\"84%\"/><stop stop-color=\"#ED2C89\" offset=\"100%\"/></linearGradient><linearGradient x1=\"-232.212%\" y1=\"-693.6%\" x2=\"250.776%\" y2=\"101.71%\" id=\"ssvg-id-aureliac\"><stop stop-color=\"#C06FBB\" offset=\"0%\"/><stop stop-color=\"#6E4D9B\" offset=\"100%\"/></linearGradient><linearGradient x1=\"-821.186%\" y1=\"-466.93%\" x2=\"101.985%\" y2=\"287.264%\" id=\"ssvg-id-aureliad\"><stop stop-color=\"#C06FBB\" offset=\"0%\"/><stop stop-color=\"#6E4D9B\" offset=\"100%\"/></linearGradient><linearGradient x1=\"-140.095%\" y1=\"-230.926%\" x2=\"418.499%\" y2=\"261.977%\" id=\"ssvg-id-aureliae\"><stop stop-color=\"#C06FBB\" offset=\"0%\"/><stop stop-color=\"#6E4D9B\" offset=\"100%\"/></linearGradient><linearGradient x1=\"191.084%\" y1=\"225.067%\" x2=\"20.358%\" y2=\"24.595%\" id=\"ssvg-id-aureliaf\"><stop stop-color=\"#6E4D9B\" offset=\"0%\"/><stop stop-color=\"#77327A\" offset=\"14%\"/><stop stop-color=\"#B31777\" offset=\"29%\"/><stop stop-color=\"#CD0F7E\" offset=\"84%\"/><stop stop-color=\"#ED2C89\" offset=\"100%\"/></linearGradient><linearGradient x1=\"-388.094%\" y1=\"-138.728%\" x2=\"237.675%\" y2=\"445.405%\" id=\"ssvg-id-aureliag\"><stop stop-color=\"#C06FBB\" offset=\"0%\"/><stop stop-color=\"#6E4D9B\" offset=\"100%\"/></linearGradient><linearGradient x1=\"11.503%\" y1=\"89.653%\" x2=\"89.819%\" y2=\"11.577%\" id=\"ssvg-id-aureliah\"><stop stop-color=\"#6E4D9B\" offset=\"0%\"/><stop stop-color=\"#77327A\" offset=\"14%\"/><stop stop-color=\"#B31777\" offset=\"53%\"/><stop stop-color=\"#CD0F7E\" offset=\"79%\"/><stop stop-color=\"#ED2C89\" offset=\"100%\"/></linearGradient></defs><path d=\"M167.876 46.369l-23.68 15.804L119.8 25.615L143.48 9.81l24.395 36.559z\" fill=\"url(#ssvg-id-aureliaa)\"/><path d=\"M187.129 156.2l40.46 60.63l-48.198 32.165l-40.46-60.632l-7.06-10.576l48.2-32.165l7.058 10.577z\" fill=\"url(#ssvg-id-aureliab)\"/><path d=\"M126.422 196.71l8.908 13.349l-36.686 24.482l-15.967-23.926l8.015-5.348l28.672-19.134l7.058 10.577z\" fill=\"url(#ssvg-id-aureliac)\"/><path d=\"M207.172 127.537l10.29-6.867l15.966 23.926l-23.683 15.805l-8.908-13.35l13.393-8.937l-7.058-10.577zm-6.335 19.515l-7.058-10.577l13.393-8.938l7.058 10.577l-13.393 8.938z\" fill=\"url(#ssvg-id-aureliad)\"/><path d=\"M41.11 130.967l-8.015 5.348L8.698 99.756l36.687-24.482l17.1 25.627l-28.671 19.134L62.486 100.9l7.296 10.933l-28.673 19.133z\" fill=\"url(#ssvg-id-aureliae)\"/><path d=\"M130.489 71.322l-48.2 32.165l-7.295-10.933L34.912 32.49L83.112.326l40.081 60.063l7.296 10.933z\" fill=\"url(#ssvg-id-aureliaf)\"/><path d=\"M157.59 53.238l-13.393 8.937l-7.297-10.933l-17.1-25.626L143.483 9.81L167.88 46.37l-10.29 6.868z\" fill=\"url(#ssvg-id-aureliag)\"/><path d=\"M97.75 215.844l-7.058-10.577l28.672-19.134l7.058 10.577l-28.672 19.134z\" fill=\"#714896\"/><path d=\"M200.837 147.052l-7.058-10.577l13.393-8.938l7.058 10.577l-13.393 8.938z\" fill=\"#6F4795\"/><path d=\"M41.11 130.967l-7.296-10.932L62.485 100.9l7.297 10.933l-28.673 19.133z\" fill=\"#88519F\"/><path d=\"M144.197 62.175L136.9 51.242l13.395-8.938l7.295 10.934l-13.393 8.937z\" fill=\"#85509E\"/><path d=\"M187.129 156.2l-48.199 32.163l-7.058-10.576l48.199-32.165l7.058 10.577z\" fill=\"#8D166A\"/><path d=\"M123.193 60.39l7.296 10.932l-48.2 32.165l-7.295-10.933l48.2-32.165z\" fill=\"#A70D6F\"/><path d=\"M27.439 51.653l9.097 13.633l-13.633 9.097l-9.097-13.633l13.633-9.097z\" fill=\"#9E61AD\"/><path d=\"M76.568 215.084l9.097 13.633l-13.632 9.097l-9.098-13.632l13.633-9.098z\" fill=\"#8053A3\"/><path d=\"M40.704 228.814L.792 168.518L214.089 25.856l41.852 59.333L40.704 228.814z\" fill=\"url(#ssvg-id-aureliah)\"/>",
"width": 256,
"height": 249
};
exports.__esModule = true;
exports.default = data;
| 525.25 | 4,104 | 0.645407 |
b78755b8036242c19fdc702969421ac1fce74d7f | 2,186 | js | JavaScript | node_modules/@ant-design/icons-angular/esm2015/icons/outline/ScanOutline.js | keyiwu/ant-design-backup | 485304dac7e296630baf9fe84f32d25c8c041446 | [
"MIT"
] | null | null | null | node_modules/@ant-design/icons-angular/esm2015/icons/outline/ScanOutline.js | keyiwu/ant-design-backup | 485304dac7e296630baf9fe84f32d25c8c041446 | [
"MIT"
] | null | null | null | node_modules/@ant-design/icons-angular/esm2015/icons/outline/ScanOutline.js | keyiwu/ant-design-backup | 485304dac7e296630baf9fe84f32d25c8c041446 | [
"MIT"
] | null | null | null | export const ScanOutline = {
name: 'scan',
theme: 'outline',
icon: '<svg viewBox="64 64 896 896" focusable="false"><path d="M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" /></svg>'
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Nhbk91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vc3JjL2ljb25zLyIsInNvdXJjZXMiOlsib3V0bGluZS9TY2FuT3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQW1CO0lBQ3ZDLElBQUksRUFBRSxNQUFNO0lBQ1osS0FBSyxFQUFFLFNBQVM7SUFDaEIsSUFBSSxFQUFFLHFuQkFBcW5CO0NBQzluQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSWNvbkRlZmluaXRpb24gfSBmcm9tICdAYW50LWRlc2lnbi9pY29ucy1hbmd1bGFyJztcblxuZXhwb3J0IGNvbnN0IFNjYW5PdXRsaW5lOiBJY29uRGVmaW5pdGlvbiA9IHtcbiAgICBuYW1lOiAnc2NhbicsXG4gICAgdGhlbWU6ICdvdXRsaW5lJyxcbiAgICBpY29uOiAnPHN2ZyB2aWV3Qm94PVwiNjQgNjQgODk2IDg5NlwiIGZvY3VzYWJsZT1cImZhbHNlXCI+PHBhdGggZD1cIk0xMzYgMzg0aDU2YzQuNCAwIDgtMy42IDgtOFYyMDBoMTc2YzQuNCAwIDgtMy42IDgtOHYtNTZjMC00LjQtMy42LTgtOC04SDE5NmMtMzcuNiAwLTY4IDMwLjQtNjggNjh2MTgwYzAgNC40IDMuNiA4IDggOHptNTEyLTE4NGgxNzZ2MTc2YzAgNC40IDMuNiA4IDggOGg1NmM0LjQgMCA4LTMuNiA4LThWMTk2YzAtMzcuNi0zMC40LTY4LTY4LTY4SDY0OGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOHpNMzc2IDgyNEgyMDBWNjQ4YzAtNC40LTMuNi04LTgtOGgtNTZjLTQuNCAwLTggMy42LTggOHYxODBjMCAzNy42IDMwLjQgNjggNjggNjhoMTgwYzQuNCAwIDgtMy42IDgtOHYtNTZjMC00LjQtMy42LTgtOC04em01MTItMTg0aC01NmMtNC40IDAtOCAzLjYtOCA4djE3Nkg2NDhjLTQuNCAwLTggMy42LTggOHY1NmMwIDQuNCAzLjYgOCA4IDhoMTgwYzM3LjYgMCA2OC0zMC40IDY4LTY4VjY0OGMwLTQuNC0zLjYtOC04LTh6bTE2LTE2NEgxMjBjLTQuNCAwLTggMy42LTggOHY1NmMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNTZjMC00LjQtMy42LTgtOC04elwiIC8+PC9zdmc+J1xufSJdfQ== | 364.333333 | 1,474 | 0.880604 |
b787b2618fce33b895668ddb04eff9577c992372 | 896 | js | JavaScript | packages/cip30/dist/BrowserExtension/handleMessages.js | johnmaverick76/cardano-js-sdk | 32c097d1d7ecf0ced49b3517d0c9aebd0d86e44a | [
"Apache-2.0"
] | null | null | null | packages/cip30/dist/BrowserExtension/handleMessages.js | johnmaverick76/cardano-js-sdk | 32c097d1d7ecf0ced49b3517d0c9aebd0d86e44a | [
"Apache-2.0"
] | null | null | null | packages/cip30/dist/BrowserExtension/handleMessages.js | johnmaverick76/cardano-js-sdk | 32c097d1d7ecf0ced49b3517d0c9aebd0d86e44a | [
"Apache-2.0"
] | null | null | null | "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleMessages = void 0;
const ts_log_1 = require("ts-log");
const webextension_polyfill_1 = __importDefault(require("webextension-polyfill"));
const handleMessages = (walletApi, logger = ts_log_1.dummyLogger) => {
webextension_polyfill_1.default.runtime.onMessage.addListener(async (msg) => {
logger.debug('new message received: ', msg);
const walletMethod = walletApi[msg.method];
if (!walletMethod) {
logger.error(`No method implemented for ${msg.method}`);
return;
}
return walletMethod(...msg.arguments);
});
};
exports.handleMessages = handleMessages;
//# sourceMappingURL=handleMessages.js.map | 42.666667 | 82 | 0.680804 |
b788bb077fda39f4727f76aedb861abf088d5723 | 1,539 | js | JavaScript | project_manager/src/modules/Tasks/action.js | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | 1 | 2019-06-14T20:34:19.000Z | 2019-06-14T20:34:19.000Z | project_manager/src/modules/Tasks/action.js | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | 3 | 2020-02-11T23:42:20.000Z | 2020-06-25T17:35:48.000Z | project_manager/src/modules/Tasks/action.js | HerlanAssis/simple-project-manager | 800c833ec0cbeba848264753d79c5ecedc54cc39 | [
"MIT"
] | null | null | null | import * as TasksTypes from './types';
const getAllTaskManagers = () => {
return {
type: TasksTypes.SAGA_ALL_TASK_MANAGERS,
params: {}
}
};
const getTaskManager = ({ id, projectId, invitationCode, owner }) => {
return {
type: TasksTypes.SAGA_TASK_MANAGER,
params: {
id, projectId, invitationCode, owner
}
}
};
const createTaskManager = ({ projectName, projectId }) => {
return {
type: TasksTypes.SAGA_CREATE_TASKMANAGER,
params: {
projectId, projectName,
}
}
};
const getAllTasks = () => {
return {
type: TasksTypes.SAGA_TASKS,
params: {}
}
};
const createTask = ({ responsibleId, taskmanagerId, input }) => {
return {
type: TasksTypes.SAGA_CREATE_TASK,
params: {
responsibleId, taskmanagerId, input
}
}
}
const updateTask = ({ id, responsibleId, input }) => {
return {
type: TasksTypes.SAGA_UPDATE_TASK,
params: {
id, responsibleId, input
}
}
}
const getNotes = ({ taskId }) => {
return {
type: TasksTypes.SAGA_NOTES,
params: {
taskId
}
}
};
const createNote = ({ taskId, input }) => {
return {
type: TasksTypes.SAGA_CREATE_NOTE,
params: {
taskId, input
}
}
}
export {
getAllTaskManagers,
getTaskManager,
createTaskManager,
getAllTasks,
createTask,
updateTask,
getNotes,
createNote,
} | 19 | 70 | 0.547758 |
b789e825099d116fab3334d483eb66d1c6012595 | 847 | js | JavaScript | js/script.js | joaopver10/projeto-web | 5524f04e61c1f82e02d717fbf4213f869c57e540 | [
"MIT"
] | null | null | null | js/script.js | joaopver10/projeto-web | 5524f04e61c1f82e02d717fbf4213f869c57e540 | [
"MIT"
] | null | null | null | js/script.js | joaopver10/projeto-web | 5524f04e61c1f82e02d717fbf4213f869c57e540 | [
"MIT"
] | null | null | null | function contar(){
var ini = document.getElementById('itxt')
var fin = document.querySelector('#ftxt')
var pas = document.getElementById('ptxt')
var res= document.getElementById('res')
if(ini.value.length == 0 || fin.value.length == 0 || pas.value.length ==0){
window.alert('Impossivel continuar, preencha os dados')
res.innerHTML = "não foi possivel contar"
}else{
res.innerHTML = `resultado: `
var i = Number(ini.value)
var f = Number(fin.value)
var p = Number(pas.value)
if ( i <= f){
do{
res.innerHTML += `${i} `
i += p
}while(i <= f);
}else{
do{
res.innerHTML += `${i} `
i -= p
}while( i >= f)
}
}
} | 25.666667 | 79 | 0.471074 |
b78a18541bf848d058f6e7469898b1ee01e3b352 | 4,601 | js | JavaScript | webapp/components/Registration/Signup.spec.js | veselinodjov/Human-Connection | 56f0c1a8e84340bce8eacfa7f64e4b9e68076073 | [
"MIT"
] | null | null | null | webapp/components/Registration/Signup.spec.js | veselinodjov/Human-Connection | 56f0c1a8e84340bce8eacfa7f64e4b9e68076073 | [
"MIT"
] | null | null | null | webapp/components/Registration/Signup.spec.js | veselinodjov/Human-Connection | 56f0c1a8e84340bce8eacfa7f64e4b9e68076073 | [
"MIT"
] | null | null | null | import { config, mount, createLocalVue } from '@vue/test-utils'
import Signup, { SignupMutation, SignupByInvitationMutation } from './Signup'
import Styleguide from '@human-connection/styleguide'
const localVue = createLocalVue()
localVue.use(Styleguide)
config.stubs['sweetalert-icon'] = '<span><slot /></span>'
describe('Signup', () => {
let wrapper
let Wrapper
let mocks
let propsData
beforeEach(() => {
mocks = {
$toast: {
success: jest.fn(),
error: jest.fn(),
},
$t: jest.fn(),
$apollo: {
loading: false,
mutate: jest.fn().mockResolvedValue({ data: { Signup: { email: 'mail@example.org' } } }),
},
}
propsData = {}
})
describe('mount', () => {
beforeEach(jest.useFakeTimers)
Wrapper = () => {
return mount(Signup, {
mocks,
propsData,
localVue,
})
}
describe('without invitation code', () => {
it('renders signup form', () => {
wrapper = Wrapper()
expect(wrapper.find('form').exists()).toBe(true)
})
describe('submit', () => {
beforeEach(async () => {
wrapper = Wrapper()
wrapper.find('input#email').setValue('mAIL@exAMPLE.org')
await wrapper.find('form').trigger('submit')
})
it('calls Signup graphql mutation', () => {
const expected = expect.objectContaining({ mutation: SignupMutation })
expect(mocks.$apollo.mutate).toHaveBeenCalledWith(expected)
})
it('delivers email to backend', () => {
const expected = expect.objectContaining({
variables: { email: 'mAIL@exAMPLE.org', token: null },
})
expect(mocks.$apollo.mutate).toHaveBeenCalledWith(expected)
})
it('hides form to avoid re-submission', () => {
expect(wrapper.find('form').exists()).not.toBeTruthy()
})
it('displays a message that a mail for email verification was sent', () => {
const expected = [
'components.registration.signup.form.success',
{ email: 'mail@example.org' },
]
expect(mocks.$t).toHaveBeenCalledWith(...expected)
})
describe('after animation', () => {
beforeEach(jest.runAllTimers)
it('emits `submit`', () => {
expect(wrapper.emitted('submit')).toEqual([[{ email: 'mail@example.org' }]])
})
})
})
})
describe('with invitation code', () => {
let action
beforeEach(() => {
propsData.token = '666777'
action = async () => {
wrapper = Wrapper()
wrapper.find('input#email').setValue('mail@example.org')
await wrapper.find('form').trigger('submit')
await wrapper.html()
}
})
describe('submit', () => {
it('calls SignupByInvitation graphql mutation', async () => {
await action()
const expected = expect.objectContaining({ mutation: SignupByInvitationMutation })
expect(mocks.$apollo.mutate).toHaveBeenCalledWith(expected)
})
it('delivers invitation token to backend', async () => {
await action()
const expected = expect.objectContaining({
variables: { email: 'mail@example.org', token: '666777' },
})
expect(mocks.$apollo.mutate).toHaveBeenCalledWith(expected)
})
describe('in case a user account with the email already exists', () => {
beforeEach(() => {
mocks.$apollo.mutate = jest
.fn()
.mockRejectedValue(
new Error('UserInputError: A user account with this email already exists.'),
)
})
it('explains the error', async () => {
await action()
expect(mocks.$t).toHaveBeenCalledWith(
'components.registration.signup.form.errors.email-exists',
)
})
})
describe('in case the invitation code was incorrect', () => {
beforeEach(() => {
mocks.$apollo.mutate = jest
.fn()
.mockRejectedValue(
new Error('UserInputError: Invitation code already used or does not exist.'),
)
})
it('explains the error', async () => {
await action()
expect(mocks.$t).toHaveBeenCalledWith(
'components.registration.signup.form.errors.invalid-invitation-token',
)
})
})
})
})
})
})
| 30.071895 | 97 | 0.535753 |
b78a1fdc7645ac3e9fd2822e90b6750b50d71d2c | 3,874 | js | JavaScript | assets/js/dist/event/searchEvent.js | vitaliy-shahanyants/fitness-application | 710189fc9f700d4959dab405467b34bc0da65b80 | [
"MIT"
] | null | null | null | assets/js/dist/event/searchEvent.js | vitaliy-shahanyants/fitness-application | 710189fc9f700d4959dab405467b34bc0da65b80 | [
"MIT"
] | null | null | null | assets/js/dist/event/searchEvent.js | vitaliy-shahanyants/fitness-application | 710189fc9f700d4959dab405467b34bc0da65b80 | [
"MIT"
] | null | null | null | import React from 'react';
import axios from 'axios';
import FormData from 'form-data';
import DisplayEvent from './displayEvent.js'
const initialState = {
events:[],
search_for:'',
clickOnevent:false,
clickedEvent_id:0,
}
export default class SearchEvent extends React.Component{
constructor(props){
super(props);
this.state = initialState;
this.searchForEvent = this.searchForEvent.bind(this);
}
searchForEvent(search_for){
let data = new FormData();
data.append('search_for',search_for);
axios.post(window.pageURL+"searchForEvent",data).then((res)=>{
this.setState({events:res.data,
search_for:search_for});
})
}
render(){
return(
<div className="container">
<h1>Search For Events</h1>
<div className="form-group row">
<label className="col-2 col-form-label">Search For Event Name Or Description</label>
<div className="col-10">
<input className="form-control" type="text"
value={this.state.search_for}
onChange={(e)=>{
this.searchForEvent(e.target.value);
}}/>
</div>
</div>
<div className="row">
<button className="btn btn-primary"
onClick={this.searchForEvent}>Search</button>
</div>
<ListOfEvents events={this.state} />
</div>
);
}
}
class ListOfEvents extends React.Component{
constructor(props){
super(props);
this.state = props.events;
this.joinEvent = this.joinEvent.bind(this);
this.clickedEvent - this.clickedEvent.bind(this);
}
clickedEvent(id){
this.setState({clickOnevent:true,clickedEvent_id:id});
}
joinEvent(id){
let data = new FormData();
data.append('event_id',id);
axios.post(window.pageURL+"joinEvent",data).then((res)=>{
})
}
componentWillReceiveProps(nextProps){
this.state = nextProps.events;
}
render(){
return(
<div>
{this.state.clickOnevent ?
<div>
<div>
<button className="btn btn-primary"
onClick={(e)=>{
this.joinEvent(this.state.clickedEvent_id);
}}>Join</button>
</div>
<DisplayEvent event_id={this.state.clickedEvent_id} />
</div>
:
<div>
<div className="row">
<div className="col-3">
<strong>Event Name</strong>
</div>
<div className="col-3">
<strong>Start and End Date</strong>
</div>
<div className="col-4">
<strong>Description</strong>
</div>
<div className="col-2">
</div>
</div>
{this.state.events.map((val,i)=>{
return(
<div className="row" key={i}>
<div className="col-3">
<span role="button"
style={{'color':'blue'}}
onClick={()=>{
this.clickedEvent(val.event_id);
}}>
{val.event_name}
</span>
</div>
<div className="col-3">
{val.event_start_date} - {val.event_end_date}
</div>
<div className="col-4">
{val.event_description}
</div>
<div className="col-2">
<button className="btn btn-primary"
onClick={(e)=>{
this.joinEvent(val.event_id);
}}>
Join
</button>
</div>
</div>
);
})}
</div>
}
</div>
);
}
}
| 28.910448 | 94 | 0.488642 |
b78aaa2d426a3d0a98b6458b4c3e32f79082abf6 | 1,627 | js | JavaScript | browser/src/sync-util/trip-comparator.js | vanadium-archive/travel | 1fee43dbfc2b68130868077ad088e43bb7118d6b | [
"BSD-3-Clause"
] | null | null | null | browser/src/sync-util/trip-comparator.js | vanadium-archive/travel | 1fee43dbfc2b68130868077ad088e43bb7118d6b | [
"BSD-3-Clause"
] | null | null | null | browser/src/sync-util/trip-comparator.js | vanadium-archive/travel | 1fee43dbfc2b68130868077ad088e43bb7118d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var defineClass = require('../util/define-class');
var getTripLength = require('./get-trip-length');
var ComparableTrip = defineClass({
publics: {
getLength: function() {
if (this.length === undefined) {
this.length = getTripLength(this.trip);
}
return this.length;
}
},
constants: [ 'trip', 'id', 'latestSwitch' ],
init: function(trip, id, latestSwitch) {
this.trip = trip;
this.id = id;
this.latestSwitch = latestSwitch;
}
});
function nullOrUndefined(a) {
return a === null || a === undefined;
}
function wellDefinedFirst(a, b) {
return !nullOrUndefined(a) && nullOrUndefined(b)? -1 :
nullOrUndefined(a) && !nullOrUndefined(b)? 1 : 0;
}
function greatestFirst(a, b) {
return a > b? -1 :
a < b? 1 : 0;
}
function greatestDefinedFirst(a, b) {
return greatestFirst(a, b) || wellDefinedFirst(a, b);
}
function latestSwitchFirst(cta, ctb) {
return greatestDefinedFirst(cta.latestSwitch, ctb.latestSwitch);
}
function longestTripFirst(cta, ctb) {
return greatestFirst(cta.getLength(), ctb.getLength());
}
function smallestIdFirst(cta, ctb) {
return -greatestFirst(cta.id, ctb.id);
}
function compareTrips(cta, ctb) {
return cta && ctb && (
latestSwitchFirst(cta, ctb) ||
longestTripFirst(cta, ctb) ||
smallestIdFirst(cta, ctb)
) || wellDefinedFirst(cta, ctb);
}
module.exports = {
ComparableTrip: ComparableTrip,
compareTrips: compareTrips
}; | 23.242857 | 66 | 0.663798 |
b78ac4048c8e371c23bbfd776e9c7f948f302005 | 28 | js | JavaScript | src/pages/map/index.js | gulshanzealous/waste-management-app | 1f419cd291159425ec12e1e4dd8e8d8cab4a9ec5 | [
"MIT"
] | null | null | null | src/pages/map/index.js | gulshanzealous/waste-management-app | 1f419cd291159425ec12e1e4dd8e8d8cab4a9ec5 | [
"MIT"
] | null | null | null | src/pages/map/index.js | gulshanzealous/waste-management-app | 1f419cd291159425ec12e1e4dd8e8d8cab4a9ec5 | [
"MIT"
] | null | null | null |
export * from './map-basic' | 14 | 27 | 0.642857 |
b78c20aae1f5e7f9597b9ed4c396a035c03fec68 | 3,687 | js | JavaScript | issueCommunity/src/layouts/BasicLayout.js | Glassay/issue-community | edfef6ecf520161fb7b67b2f80fb244c1997ff14 | [
"MIT"
] | null | null | null | issueCommunity/src/layouts/BasicLayout.js | Glassay/issue-community | edfef6ecf520161fb7b67b2f80fb244c1997ff14 | [
"MIT"
] | null | null | null | issueCommunity/src/layouts/BasicLayout.js | Glassay/issue-community | edfef6ecf520161fb7b67b2f80fb244c1997ff14 | [
"MIT"
] | null | null | null | /**
* 2018-05-06
*/
import React from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import { Layout, Avatar, Menu, Dropdown, List, Icon } from 'antd';
import styles from './BasicLayout.less';
const { Header, Content, Footer } = Layout;
const listData = [];
for (let i = 0; i < 23; i++) {
listData.push({
id: i,
title: `一位抑郁症患者的独白${i}`,
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
description: '最爱的,我确信自己又要精神失常了。我感到我们无法再一次经受这样可怕的时刻。我不能够再和它斗争了,我知道我自己毁了你的生活,没有我你就能够工作。我知道你会的。',
});
}
const IconText = ({ type, text }) => (
<span>
<Icon type={type} style={{ marginRight: 8 }} />
{text}
</span>
);
class BasicLayout extends React.Component {
componentDidMount() {
this.props.dispatch({
type: 'article/getArticles'
})
}
LoginOut = () => {
console.log('tuichu');
}
readDetails = (item) => {
this.props.dispatch({
type: 'article/readArticle',
payload: item
})
}
render() {
const { articles } = this.props;
console.log('articles_____', articles);
const loginIngo = JSON.parse(localStorage.getItem('usersInfo'));
console.log('loginIngo>>>>>', loginIngo);
const menu = (
<Menu>
<Menu.Item>
<span>退出登录</span>
</Menu.Item>
</Menu>
)
return(
<Layout>
<Header className={styles.header}>
<Link to="/main"><span className={styles.title}>论题研讨</span></Link>
<Link to="/main/release"><span className={styles.login}>提问</span></Link>
<Dropdown onClick={() => this.LoginOut} overlay={menu}>
<Avatar className={styles.register} size="large" src={loginIngo.avatar} />
</Dropdown>
{/* <Menu theme="dark" mode="horizontal">
<SubMenu
style={{
float: 'right',
right: 20,
top: 8
}}
title={
<Avatar className={styles.register} size="large" src={loginIngo.avatar} />
}
>
<Menu.Item key="logout">
<span onClick={this.loginOut}>退出登录</span>
</Menu.Item>
</SubMenu>
</Menu> */}
</Header>
{
articles.data === null || undefined ? null :
<div>
<Content className={styles.content}>
<List
itemLayout="vertical"
size="large"
pagination={{
onChange: (page) => {
console.log(page);
},
pageSize: 6,
}}
dataSource={articles.data}
renderItem={item => (
<List.Item
key={item.id}
actions={[<IconText type="star-o" text="156" />, <IconText type="like-o" text="156" />, <IconText type="message" text="2" />]}
>
<List.Item.Meta
avatar={<Avatar src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQRwvtnOwp0gVJ9tOOWFh7jUcOj7_Q-sbD8cR303orbyJNFF1C6" />}
title={<span onClick={() => this.readDetails(item)} className={styles.title1}>{item.title}</span>}
description={item.content}
/>
</List.Item>
)}
/>
</Content>
</div>
}
<Footer className={styles.footer}>Issue Community ©2018 Designed by Glassay</Footer>
</Layout>
);
}
}
export default connect(state => ({
articles: state.article.articles
}))(BasicLayout);
| 29.261905 | 152 | 0.508001 |
b78d12b7a3ddbfdfef288d8d2ea9bd04718eaf8d | 1,228 | js | JavaScript | js/hal/http/client.js | risseraka/hal-browser | 9f96c74d66d53f65a98e8cad222cef301c1055b6 | [
"MIT"
] | 21 | 2016-06-24T06:20:36.000Z | 2019-02-01T07:46:33.000Z | js/hal/http/client.js | risseraka/hal-browser | 9f96c74d66d53f65a98e8cad222cef301c1055b6 | [
"MIT"
] | 5 | 2018-12-21T15:36:47.000Z | 2021-04-26T13:21:31.000Z | js/hal/http/client.js | risseraka/hal-browser | 9f96c74d66d53f65a98e8cad222cef301c1055b6 | [
"MIT"
] | 8 | 2017-05-19T18:25:29.000Z | 2019-02-19T17:57:47.000Z | HAL.Http.Client = function(opts) {
this.vent = opts.vent;
this.defaultHeaders = { 'Accept': 'application/hal+json, application/json, */*; q=0.01' };
this.headers = this.defaultHeaders;
};
HAL.Http.Client.prototype.get = function(url) {
var self = this;
this.vent.trigger('location-change', { url: url });
var jqxhr = $.ajax({
url: url,
dataType: 'json',
xhrFields: {
withCredentials: true
},
headers: this.headers,
success: function(resource, textStatus, jqXHR) {
self.vent.trigger('response', {
resource: resource,
jqxhr: jqXHR,
headers: jqXHR.getAllResponseHeaders()
});
}
}).error(function() {
self.vent.trigger('fail-response', { jqxhr: jqxhr });
});
};
HAL.Http.Client.prototype.request = function(opts) {
var self = this;
opts.dataType = 'json';
opts.xhrFields = opts.xhrFields || {};
opts.xhrFields.withCredentials = opts.xhrFields.withCredentials || true;
self.vent.trigger('location-change', { url: opts.url });
return jqxhr = $.ajax(opts);
};
HAL.Http.Client.prototype.updateHeaders = function(headers) {
this.headers = headers;
};
HAL.Http.Client.prototype.getHeaders = function() {
return this.headers;
};
| 27.288889 | 92 | 0.648208 |
b78d12f2f44d9989af43d2d405f548e4c39c4a86 | 1,761 | js | JavaScript | download/oj.GitHubButton/0.0.2/oj.GitHubButton.min.js | ojjs/ojjs.github.com | 96879b1f2cf71fe345c2489ca396d9e185b26c16 | [
"MIT"
] | 5 | 2015-02-20T16:11:30.000Z | 2017-05-15T11:50:44.000Z | download/oj.GitHubButton/0.0.2/oj.GitHubButton.min.js | ojjs/ojjs.github.com | 96879b1f2cf71fe345c2489ca396d9e185b26c16 | [
"MIT"
] | null | null | null | download/oj.GitHubButton/0.0.2/oj.GitHubButton.min.js | ojjs/ojjs.github.com | 96879b1f2cf71fe345c2489ca396d9e185b26c16 | [
"MIT"
] | 4 | 2015-07-14T16:16:05.000Z | 2021-03-10T08:15:54.000Z | // oj.GitHubButton.min.js v0.0.2 | Copyright 2013 Evan Moran | ojjs.org/license
(function(){var e=function(e,t){typeof t!="object"&&(t={});var n=e.createType("GitHubButton",{base:e.View,constructor:function(){var t=this,r=e.unionArguments(arguments),i=r.options,s=r.args;s.length>=1&&(this.user=s[0]),s.length>=2&&(this.repo=s[1]);var o=["type","user","repo","showCount","size","width","height"];for(var u=0;u<o.length;u++){var a=o[u];i[a]!=null&&(this[a]=e.argumentShift(i,a))}this.el=e(function(){var n="",r="",i="",s="",o="";if(!t.user)throw new Error("oj.GitHubButton: user is not specified");i="user="+t.user,t.repo&&(s="&repo="+t.repo),t.size&&(n="&size="+t.size),t.showCount&&(r="&count="+t.showCount),t.type&&(o="&type="+t.type),src="http://ghbtns.com/github-btn.html?"+i+s+o+r+n,e.iframe({src:src,allowtransparency:"true",frameborder:"0",scrolling:"0",width:t.width,height:t.height})}),n.base.constructor.apply(this,[i])},properties:{user:"evanmoran",repo:null,type:{get:function(){return this._type||(this.repo==null?"follow":"watch")},set:function(e){if(!e||e=="star")e="watch";this._type=e}},showCount:!0,size:{get:function(){return this._size},set:function(e){this._size=e}},width:{get:function(){return this._width||_widthFromType(this.type,this.showCount,this.size)},set:function(e){this._width=e}},height:{get:function(){return this._height||this.size=="large"?30:20},set:function(e){this._height=e}}}});return{GitHubButton:n}};typeof oj!="undefined"&&oj.use(e),typeof module!="undefined"&&typeof module.exports!="undefined"&&(module.exports=e),_widthFromType=function(e,t,n){w=0,e=="watch"&&t==0?w=62:e=="watch"&&t==1?w=110:e=="fork"&&t==0?w=53:e=="fork"&&t==1?w=95:e=="follow"&&t==0?w=132:e=="follow"&&t==1&&(w=165),w+=n=="large"?30:0}})(this) | 880.5 | 1,681 | 0.675752 |
b78d2cab09adf88237a42fbe6601bc5d0559b9c0 | 1,174 | js | JavaScript | templeFiles/json-editor/lib/common/flatButton.js | gehj199/formDesigner | 408e7e076a116f3863c62d116f9bfdcdd8a64e66 | [
"MIT"
] | null | null | null | templeFiles/json-editor/lib/common/flatButton.js | gehj199/formDesigner | 408e7e076a116f3863c62d116f9bfdcdd8a64e66 | [
"MIT"
] | null | null | null | templeFiles/json-editor/lib/common/flatButton.js | gehj199/formDesigner | 408e7e076a116f3863c62d116f9bfdcdd8a64e66 | [
"MIT"
] | null | null | null | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _button = require('./button');
var _button2 = _interopRequireDefault(_button);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var FlatButton = _react2.default.createClass({
displayName: 'FlatButton',
propTypes: {
className: _react2.default.PropTypes.string
},
render: function render() {
return _react2.default.createElement(_button2.default, _extends({}, this.props, { onClick: this._handleClick, type: 'flat-button' }));
},
_handleClick: function _handleClick() {
if (this.props.onClick) {
this.props.onClick(this.props);
}
}
});
exports.default = FlatButton; | 29.35 | 257 | 0.701022 |
b78e75edf091e3a9363a9416c54d6b1a151270fd | 519 | js | JavaScript | src/html/search/functions_f.js | rino-wallet/monero-cpp | 37b97f8e52177be260ba7a5c666503482d6820df | [
"MIT"
] | null | null | null | src/html/search/functions_f.js | rino-wallet/monero-cpp | 37b97f8e52177be260ba7a5c666503482d6820df | [
"MIT"
] | null | null | null | src/html/search/functions_f.js | rino-wallet/monero-cpp | 37b97f8e52177be260ba7a5c666503482d6820df | [
"MIT"
] | null | null | null | var searchData=
[
['_7emonero_5fwallet_345',['~monero_wallet',['../classmonero_1_1monero__wallet.html#ac8a0a50f23cf2b6a611ca5ecc2a907ce',1,'monero::monero_wallet']]],
['_7emonero_5fwallet_5ffull_346',['~monero_wallet_full',['../classmonero_1_1monero__wallet__full.html#a9a6863182173bb4701745afb9dacc6de',1,'monero::monero_wallet_full']]],
['_7emonero_5fwallet_5fkeys_347',['~monero_wallet_keys',['../classmonero_1_1monero__wallet__keys.html#a9a394861dde530e80add1949a130deb0',1,'monero::monero_wallet_keys']]]
];
| 74.142857 | 173 | 0.813102 |
b78e83632dd697d6b7c6c2e75e92fa940783f917 | 5,211 | js | JavaScript | routes/orders.js | vishalgaddam873/e-commerce_backend | d20a017a4646db3507b87b18148ad74bbb9d8e26 | [
"MIT"
] | null | null | null | routes/orders.js | vishalgaddam873/e-commerce_backend | d20a017a4646db3507b87b18148ad74bbb9d8e26 | [
"MIT"
] | null | null | null | routes/orders.js | vishalgaddam873/e-commerce_backend | d20a017a4646db3507b87b18148ad74bbb9d8e26 | [
"MIT"
] | 2 | 2019-05-28T11:03:00.000Z | 2019-07-07T15:20:20.000Z | module.exports = function (orders,knex){
// NOTE: First run all shopping cart endpoints
//Create orders
orders.post('/',(request, response, next)=>{
//Example for request body
`{
"cart_id" : "2slkvmfw9ww",
"product_id" : 1,
"customer_id" : 1,
"shipping_id" : 3,
"tax_id" : 1
}`
var hasTable = knex.schema.hasTable('order_placed').then((exists)=>{
if(!exists){
return knex.schema.createTable('order_placed',(table)=>{
table.integer('order_id');
table.string('cart_id');
table.integer('customer_id');
table.integer('product_id');
placeOrder();
});
}else{
placeOrder()
}
//Place order for any product
function placeOrder(){
var cart_id = request.body.cart_id;
var product_id = request.body.product_id;
var customer_id = request.body.customer_id;
var shipping_id = request.body.shipping_id;
var tax_id = request.body.tax_id;
var createOrder = knex('orders').insert({
customer_id : customer_id,
tax_id : tax_id,
shipping_id : shipping_id,
created_on : new Date()
}).then(()=>{
var selectQuery = knex.select('order_id').from('orders')
.then((order_id)=>{
var orderId = order_id[order_id.length -1];
var orderDetail = {
order_id : orderId.order_id,
cart_id : cart_id,
customer_id : customer_id,
product_id : product_id
};
var orderPlacedQuery = knex('order_placed').insert(orderDetail)
.then(()=>{
var selectQuery = knex.select(
'shopping_cart.product_id',
'price',
'quantity',
'shipping_cost',
'tax_percentage'
)
.from('shopping_cart')
.join('product','shopping_cart.product_id','=','product.product_id')
.join('shipping','shipping.shipping_id','=',shipping_id)
.join('tax','tax.tax_id','=',tax_id).where({
cart_id : cart_id,
'shopping_cart.product_id' : product_id
})
.then((total)=>{
var totalAmount = (total[0].price + total[0].shipping_cost + total[0].tax_percentage / 100 )* total[0].quantity
var totalInsert = knex('orders').where(orderId).update({total_amount:totalAmount}).then(()=>{
console.log("\nOrder Price Details:\n",total[0]);
return response.json(orderId)
});
});
});
});
});
};
});
});
//Get info about order
orders.get('/:order_id',(request, response, next)=>{
var order_id = request.params.order_id;
var query = knex.select(
'order_placed.order_id',
'shopping_cart.product_id',
'product.name as product_name',
'attributes',
'quantity',
'price as unit_cost'
).from('order_placed')
.join('shopping_cart',{'order_placed.cart_id':'shopping_cart.cart_id',
'order_placed.product_id' : 'shopping_cart.product_id'
})
.join('product','order_placed.product_id','=','product.product_id').where('order_id',order_id)
.then((oderDetails)=>{
console.log(oderDetails);
oderDetails[0]['subtotal'] = oderDetails[0].unit_cost * oderDetails[0].quantity;
console.log("\nOder details by oder id:\n", oderDetails[0]);
return response.json(oderDetails[0]);
});
});
//Get orders by customer
orders.get('/inCustomer/:customer_id',(request, response, next)=>{
var customer_id = request.params.customer_id;
var query = knex.select(
'order_placed.order_id',
'order_placed.product_id',
'product.name as product_name',
'shopping_cart.attributes',
'shopping_cart.quantity',
'product.price as unit_cost'
).from('order_placed')
.join('shopping_cart',
{
'order_placed.cart_id':'shopping_cart.cart_id',
'order_placed.product_id':'shopping_cart.product_id'
})
.join('product','order_placed.product_id','=','product.product_id')
.where('customer_id',customer_id)
.then((orders)=>{
orders.forEach((order)=>{
order['subtotal'] = order.unit_cost * order.quantity;
console.log("\nAll orders by customer:\n",orders);
return response.json(orders);
});
});
});
//Get info about order
orders.get('/shortDetail/:order_id',(request, response, next)=>{
var order_id = request.params.order_id;
var query = knex.select(
'orders.order_id',
'total_amount',
'created_on',
'shipped_on',
'status',
'product.name'
)
.from('orders')
.join('order_placed','orders.order_id','=','order_placed.order_id')
.join('product','order_placed.product_id','product.product_id')
.where('orders.order_id',order_id)
.then((shortDetails)=>{
console.log("\nShort details about order:\n",shortDetails[0]);
return response.json(shortDetails[0]);
})
});
};
| 34.74 | 129 | 0.572827 |
b78e842dd215539c3af179912893f68bb39b00c8 | 157,310 | js | JavaScript | docs/assets/js/search.js | tamuratak/latex-utensils | fe17e23c28106e838337f6d633f6ccae2fc64fcc | [
"MIT"
] | 31 | 2019-07-31T14:45:09.000Z | 2022-02-10T09:05:30.000Z | docs/assets/js/search.js | tamuratak/latex-utensils | fe17e23c28106e838337f6d633f6ccae2fc64fcc | [
"MIT"
] | 27 | 2019-08-07T08:41:55.000Z | 2022-03-22T21:15:36.000Z | docs/assets/js/search.js | tamuratak/latex-utensils | fe17e23c28106e838337f6d633f6ccae2fc64fcc | [
"MIT"
] | 5 | 2019-08-10T03:46:00.000Z | 2020-04-13T06:36:39.000Z | window.searchData = {"kinds":{"1":"Module","2":"Namespace","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias","16777216":"Reference"},"rows":[{"id":0,"kind":1,"name":"main","url":"modules/main.html","classes":"tsd-kind-module"},{"id":1,"kind":1,"name":"latex/latex_parser_types","url":"modules/latex_latex_parser_types.html","classes":"tsd-kind-module"},{"id":2,"kind":64,"name":"isTextString","url":"modules/latex_latex_parser_types.html#istextstring","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":3,"kind":64,"name":"isCommand","url":"modules/latex_latex_parser_types.html#iscommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":4,"kind":64,"name":"isAmsMathTextCommand","url":"modules/latex_latex_parser_types.html#isamsmathtextcommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":5,"kind":64,"name":"isDefCommand","url":"modules/latex_latex_parser_types.html#isdefcommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":6,"kind":64,"name":"isUrlCommand","url":"modules/latex_latex_parser_types.html#isurlcommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":7,"kind":64,"name":"isHrefCommand","url":"modules/latex_latex_parser_types.html#ishrefcommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":8,"kind":64,"name":"isLabelCommand","url":"modules/latex_latex_parser_types.html#islabelcommand","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":9,"kind":64,"name":"isEnvironment","url":"modules/latex_latex_parser_types.html#isenvironment","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":10,"kind":64,"name":"isMathEnv","url":"modules/latex_latex_parser_types.html#ismathenv","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":11,"kind":64,"name":"isMathEnvAligned","url":"modules/latex_latex_parser_types.html#ismathenvaligned","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":12,"kind":64,"name":"isGroup","url":"modules/latex_latex_parser_types.html#isgroup","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":13,"kind":64,"name":"isOptionalArg","url":"modules/latex_latex_parser_types.html#isoptionalarg","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":14,"kind":64,"name":"isParbreak","url":"modules/latex_latex_parser_types.html#isparbreak","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":15,"kind":64,"name":"isSpace","url":"modules/latex_latex_parser_types.html#isspace","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":16,"kind":64,"name":"isSoftbreak","url":"modules/latex_latex_parser_types.html#issoftbreak","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":17,"kind":64,"name":"isLinebreak","url":"modules/latex_latex_parser_types.html#islinebreak","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":18,"kind":64,"name":"isSuperscript","url":"modules/latex_latex_parser_types.html#issuperscript","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":19,"kind":64,"name":"isSubscript","url":"modules/latex_latex_parser_types.html#issubscript","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":20,"kind":64,"name":"isAlignmentTab","url":"modules/latex_latex_parser_types.html#isalignmenttab","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":21,"kind":64,"name":"isCommandParameter","url":"modules/latex_latex_parser_types.html#iscommandparameter","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":22,"kind":64,"name":"isActiveCharacter","url":"modules/latex_latex_parser_types.html#isactivecharacter","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":23,"kind":64,"name":"isIgnore","url":"modules/latex_latex_parser_types.html#isignore","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":24,"kind":64,"name":"isVerb","url":"modules/latex_latex_parser_types.html#isverb","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":25,"kind":64,"name":"isVerbatim","url":"modules/latex_latex_parser_types.html#isverbatim","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":26,"kind":64,"name":"isMinted","url":"modules/latex_latex_parser_types.html#isminted","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":27,"kind":64,"name":"isLstlisting","url":"modules/latex_latex_parser_types.html#islstlisting","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":28,"kind":64,"name":"isInlienMath","url":"modules/latex_latex_parser_types.html#isinlienmath","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":29,"kind":64,"name":"isDisplayMath","url":"modules/latex_latex_parser_types.html#isdisplaymath","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":30,"kind":64,"name":"isMathCharacter","url":"modules/latex_latex_parser_types.html#ismathcharacter","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":31,"kind":64,"name":"isMatchingDelimiters","url":"modules/latex_latex_parser_types.html#ismatchingdelimiters","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":32,"kind":64,"name":"isMathDelimiters","url":"modules/latex_latex_parser_types.html#ismathdelimiters","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":33,"kind":64,"name":"hasContent","url":"modules/latex_latex_parser_types.html#hascontent","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":34,"kind":64,"name":"hasContentArray","url":"modules/latex_latex_parser_types.html#hascontentarray","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":35,"kind":64,"name":"hasArgsArray","url":"modules/latex_latex_parser_types.html#hasargsarray","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":36,"kind":64,"name":"isElement","url":"modules/latex_latex_parser_types.html#iselement","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":37,"kind":64,"name":"isAstRoot","url":"modules/latex_latex_parser_types.html#isastroot","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":38,"kind":64,"name":"isAstPreamble","url":"modules/latex_latex_parser_types.html#isastpreamble","classes":"tsd-kind-function tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":39,"kind":4194304,"name":"TextString","url":"modules/latex_latex_parser_types.html#textstring","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":40,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#textstring.__type-30","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.TextString"},{"id":41,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#textstring.__type-30.kind-30","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.TextString.__type"},{"id":42,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#textstring.__type-30.content-16","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.TextString.__type"},{"id":43,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#textstring.__type-30.location-28","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.TextString.__type"},{"id":44,"kind":4194304,"name":"Command","url":"modules/latex_latex_parser_types.html#command","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":45,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#command.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Command"},{"id":46,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#command.__type-5.kind-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Command.__type"},{"id":47,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#command.__type-5.name","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Command.__type"},{"id":48,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#command.__type-5.args","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Command.__type"},{"id":49,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#command.__type-5.location-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Command.__type"},{"id":50,"kind":4194304,"name":"AmsMathTextCommand","url":"modules/latex_latex_parser_types.html#amsmathtextcommand","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":51,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#amsmathtextcommand.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.AmsMathTextCommand"},{"id":52,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#amsmathtextcommand.__type-2.kind-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AmsMathTextCommand.__type"},{"id":53,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#amsmathtextcommand.__type-2.arg","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AmsMathTextCommand.__type"},{"id":54,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#amsmathtextcommand.__type-2.location-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AmsMathTextCommand.__type"},{"id":55,"kind":4194304,"name":"DefCommand","url":"modules/latex_latex_parser_types.html#defcommand","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":56,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#defcommand.__type-8","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.DefCommand"},{"id":57,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#defcommand.__type-8.kind-8","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DefCommand.__type"},{"id":58,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#defcommand.__type-8.name-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DefCommand.__type"},{"id":59,"kind":1024,"name":"token","url":"modules/latex_latex_parser_types.html#defcommand.__type-8.token","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DefCommand.__type"},{"id":60,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#defcommand.__type-8.args-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DefCommand.__type"},{"id":61,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#defcommand.__type-8.location-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DefCommand.__type"},{"id":62,"kind":4194304,"name":"UrlCommand","url":"modules/latex_latex_parser_types.html#urlcommand","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":63,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#urlcommand.__type-31","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.UrlCommand"},{"id":64,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#urlcommand.__type-31.kind-31","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.UrlCommand.__type"},{"id":65,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#urlcommand.__type-31.name-10","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.UrlCommand.__type"},{"id":66,"kind":1024,"name":"url","url":"modules/latex_latex_parser_types.html#urlcommand.__type-31.url-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.UrlCommand.__type"},{"id":67,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#urlcommand.__type-31.location-29","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.UrlCommand.__type"},{"id":68,"kind":4194304,"name":"HrefCommand","url":"modules/latex_latex_parser_types.html#hrefcommand","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":69,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.HrefCommand"},{"id":70,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.kind-12","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":71,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.name-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":72,"kind":1024,"name":"url","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.url","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":73,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.arg-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":74,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.content-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":75,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#hrefcommand.__type-12.location-10","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.HrefCommand.__type"},{"id":76,"kind":4194304,"name":"LabelCommand","url":"modules/latex_latex_parser_types.html#labelcommand","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":77,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#labelcommand.__type-15","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.LabelCommand"},{"id":78,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#labelcommand.__type-15.kind-15","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.LabelCommand.__type"},{"id":79,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#labelcommand.__type-15.name-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.LabelCommand.__type"},{"id":80,"kind":1024,"name":"label","url":"modules/latex_latex_parser_types.html#labelcommand.__type-15.label","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.LabelCommand.__type"},{"id":81,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#labelcommand.__type-15.location-13","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.LabelCommand.__type"},{"id":82,"kind":4194304,"name":"Environment","url":"modules/latex_latex_parser_types.html#environment","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":83,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#environment.__type-10","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Environment"},{"id":84,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#environment.__type-10.kind-10","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Environment.__type"},{"id":85,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#environment.__type-10.name-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Environment.__type"},{"id":86,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#environment.__type-10.args-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Environment.__type"},{"id":87,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#environment.__type-10.content-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Environment.__type"},{"id":88,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#environment.__type-10.location-8","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Environment.__type"},{"id":89,"kind":4194304,"name":"MathEnv","url":"modules/latex_latex_parser_types.html#mathenv","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":90,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#mathenv.__type-21","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.MathEnv"},{"id":91,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#mathenv.__type-21.kind-21","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnv.__type"},{"id":92,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#mathenv.__type-21.name-7","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnv.__type"},{"id":93,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#mathenv.__type-21.args-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnv.__type"},{"id":94,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#mathenv.__type-21.content-12","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnv.__type"},{"id":95,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#mathenv.__type-21.location-19","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnv.__type"},{"id":96,"kind":4194304,"name":"MathEnvAligned","url":"modules/latex_latex_parser_types.html#mathenvaligned","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":97,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.MathEnvAligned"},{"id":98,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22.kind-22","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnvAligned.__type"},{"id":99,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22.name-8","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnvAligned.__type"},{"id":100,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22.args-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnvAligned.__type"},{"id":101,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22.content-13","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnvAligned.__type"},{"id":102,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#mathenvaligned.__type-22.location-20","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathEnvAligned.__type"},{"id":103,"kind":4194304,"name":"Group","url":"modules/latex_latex_parser_types.html#group","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":104,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#group.__type-11","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Group"},{"id":105,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#group.__type-11.kind-11","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Group.__type"},{"id":106,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#group.__type-11.content-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Group.__type"},{"id":107,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#group.__type-11.location-9","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Group.__type"},{"id":108,"kind":4194304,"name":"OptionalArg","url":"modules/latex_latex_parser_types.html#optionalarg","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":109,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#optionalarg.__type-24","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.OptionalArg"},{"id":110,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#optionalarg.__type-24.kind-24","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.OptionalArg.__type"},{"id":111,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#optionalarg.__type-24.content-15","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.OptionalArg.__type"},{"id":112,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#optionalarg.__type-24.location-22","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.OptionalArg.__type"},{"id":113,"kind":4194304,"name":"Parbreak","url":"modules/latex_latex_parser_types.html#parbreak","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":114,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#parbreak.__type-25","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Parbreak"},{"id":115,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#parbreak.__type-25.kind-25","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Parbreak.__type"},{"id":116,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#parbreak.__type-25.location-23","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Parbreak.__type"},{"id":117,"kind":4194304,"name":"Space","url":"modules/latex_latex_parser_types.html#space","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":118,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#space.__type-27","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Space"},{"id":119,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#space.__type-27.kind-27","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Space.__type"},{"id":120,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#space.__type-27.location-25","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Space.__type"},{"id":121,"kind":4194304,"name":"Softbreak","url":"modules/latex_latex_parser_types.html#softbreak","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":122,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#softbreak.__type-26","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Softbreak"},{"id":123,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#softbreak.__type-26.kind-26","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Softbreak.__type"},{"id":124,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#softbreak.__type-26.location-24","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Softbreak.__type"},{"id":125,"kind":4194304,"name":"Linebreak","url":"modules/latex_latex_parser_types.html#linebreak","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":126,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#linebreak.__type-16","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Linebreak"},{"id":127,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#linebreak.__type-16.kind-16","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Linebreak.__type"},{"id":128,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#linebreak.__type-16.name-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Linebreak.__type"},{"id":129,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#linebreak.__type-16.arg-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Linebreak.__type"},{"id":130,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#linebreak.__type-16.location-14","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Linebreak.__type"},{"id":131,"kind":4194304,"name":"Superscript","url":"modules/latex_latex_parser_types.html#superscript","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":132,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#superscript.__type-29","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Superscript"},{"id":133,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#superscript.__type-29.kind-29","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Superscript.__type"},{"id":134,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#superscript.__type-29.arg-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Superscript.__type"},{"id":135,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#superscript.__type-29.location-27","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Superscript.__type"},{"id":136,"kind":4194304,"name":"Subscript","url":"modules/latex_latex_parser_types.html#subscript","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":137,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#subscript.__type-28","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Subscript"},{"id":138,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#subscript.__type-28.kind-28","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Subscript.__type"},{"id":139,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#subscript.__type-28.arg-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Subscript.__type"},{"id":140,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#subscript.__type-28.location-26","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Subscript.__type"},{"id":141,"kind":4194304,"name":"AlignmentTab","url":"modules/latex_latex_parser_types.html#alignmenttab","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":142,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#alignmenttab.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.AlignmentTab"},{"id":143,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#alignmenttab.__type-1.kind-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AlignmentTab.__type"},{"id":144,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#alignmenttab.__type-1.location-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AlignmentTab.__type"},{"id":145,"kind":4194304,"name":"CommandParameter","url":"modules/latex_latex_parser_types.html#commandparameter","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":146,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#commandparameter.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.CommandParameter"},{"id":147,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#commandparameter.__type-6.kind-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.CommandParameter.__type"},{"id":148,"kind":1024,"name":"nargs","url":"modules/latex_latex_parser_types.html#commandparameter.__type-6.nargs","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.CommandParameter.__type"},{"id":149,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#commandparameter.__type-6.location-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.CommandParameter.__type"},{"id":150,"kind":4194304,"name":"ActiveCharacter","url":"modules/latex_latex_parser_types.html#activecharacter","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":151,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#activecharacter.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.ActiveCharacter"},{"id":152,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#activecharacter.__type.kind","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.ActiveCharacter.__type"},{"id":153,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#activecharacter.__type.location","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.ActiveCharacter.__type"},{"id":154,"kind":4194304,"name":"Ignore","url":"modules/latex_latex_parser_types.html#ignore","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":155,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#ignore.__type-13","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Ignore"},{"id":156,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#ignore.__type-13.kind-13","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Ignore.__type"},{"id":157,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#ignore.__type-13.location-11","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Ignore.__type"},{"id":158,"kind":4194304,"name":"Verb","url":"modules/latex_latex_parser_types.html#verb","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":159,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#verb.__type-32","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Verb"},{"id":160,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#verb.__type-32.kind-32","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verb.__type"},{"id":161,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#verb.__type-32.name-11","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verb.__type"},{"id":162,"kind":1024,"name":"escape","url":"modules/latex_latex_parser_types.html#verb.__type-32.escape","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verb.__type"},{"id":163,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#verb.__type-32.content-17","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verb.__type"},{"id":164,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#verb.__type-32.location-30","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verb.__type"},{"id":165,"kind":4194304,"name":"Verbatim","url":"modules/latex_latex_parser_types.html#verbatim","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":166,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#verbatim.__type-33","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Verbatim"},{"id":167,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#verbatim.__type-33.kind-33","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verbatim.__type"},{"id":168,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#verbatim.__type-33.name-12","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verbatim.__type"},{"id":169,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#verbatim.__type-33.content-18","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verbatim.__type"},{"id":170,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#verbatim.__type-33.location-31","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Verbatim.__type"},{"id":171,"kind":4194304,"name":"Minted","url":"modules/latex_latex_parser_types.html#minted","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":172,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#minted.__type-23","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Minted"},{"id":173,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#minted.__type-23.kind-23","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Minted.__type"},{"id":174,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#minted.__type-23.name-9","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Minted.__type"},{"id":175,"kind":1024,"name":"args","url":"modules/latex_latex_parser_types.html#minted.__type-23.args-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Minted.__type"},{"id":176,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#minted.__type-23.content-14","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Minted.__type"},{"id":177,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#minted.__type-23.location-21","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Minted.__type"},{"id":178,"kind":4194304,"name":"Lstlisting","url":"modules/latex_latex_parser_types.html#lstlisting","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":179,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Lstlisting"},{"id":180,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17.kind-17","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Lstlisting.__type"},{"id":181,"kind":1024,"name":"name","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17.name-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Lstlisting.__type"},{"id":182,"kind":1024,"name":"arg","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17.arg-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Lstlisting.__type"},{"id":183,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17.content-8","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Lstlisting.__type"},{"id":184,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#lstlisting.__type-17.location-15","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Lstlisting.__type"},{"id":185,"kind":4194304,"name":"InlienMath","url":"modules/latex_latex_parser_types.html#inlienmath","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":186,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#inlienmath.__type-14","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.InlienMath"},{"id":187,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#inlienmath.__type-14.kind-14","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.InlienMath.__type"},{"id":188,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#inlienmath.__type-14.content-7","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.InlienMath.__type"},{"id":189,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#inlienmath.__type-14.location-12","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.InlienMath.__type"},{"id":190,"kind":4194304,"name":"DisplayMath","url":"modules/latex_latex_parser_types.html#displaymath","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":191,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#displaymath.__type-9","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.DisplayMath"},{"id":192,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#displaymath.__type-9.kind-9","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DisplayMath.__type"},{"id":193,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#displaymath.__type-9.content-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DisplayMath.__type"},{"id":194,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#displaymath.__type-9.location-7","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.DisplayMath.__type"},{"id":195,"kind":4194304,"name":"MathCharacter","url":"modules/latex_latex_parser_types.html#mathcharacter","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":196,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#mathcharacter.__type-19","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.MathCharacter"},{"id":197,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#mathcharacter.__type-19.kind-19","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathCharacter.__type"},{"id":198,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#mathcharacter.__type-19.content-10","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathCharacter.__type"},{"id":199,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#mathcharacter.__type-19.location-17","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathCharacter.__type"},{"id":200,"kind":4194304,"name":"MatchingDelimiters","url":"modules/latex_latex_parser_types.html#matchingdelimiters","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":201,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.MatchingDelimiters"},{"id":202,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18.kind-18","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MatchingDelimiters.__type"},{"id":203,"kind":1024,"name":"left","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18.left","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MatchingDelimiters.__type"},{"id":204,"kind":1024,"name":"right","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18.right","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MatchingDelimiters.__type"},{"id":205,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18.content-9","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MatchingDelimiters.__type"},{"id":206,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#matchingdelimiters.__type-18.location-16","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MatchingDelimiters.__type"},{"id":207,"kind":4194304,"name":"MathDelimiters","url":"modules/latex_latex_parser_types.html#mathdelimiters","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":208,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.MathDelimiters"},{"id":209,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.kind-20","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":210,"kind":1024,"name":"lcommand","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.lcommand","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":211,"kind":1024,"name":"rcommand","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.rcommand","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":212,"kind":1024,"name":"left","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.left-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":213,"kind":1024,"name":"right","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.right-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":214,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.content-11","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":215,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#mathdelimiters.__type-20.location-18","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.MathDelimiters.__type"},{"id":216,"kind":4194304,"name":"Node","url":"modules/latex_latex_parser_types.html#node","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":217,"kind":4194304,"name":"Element","url":"modules/latex_latex_parser_types.html#element","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":218,"kind":4194304,"name":"Comment","url":"modules/latex_latex_parser_types.html#comment-2","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":219,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#comment-2.__type-7","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.Comment"},{"id":220,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#comment-2.__type-7.kind-7","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Comment.__type"},{"id":221,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#comment-2.__type-7.content-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Comment.__type"},{"id":222,"kind":1024,"name":"location","url":"modules/latex_latex_parser_types.html#comment-2.__type-7.location-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.Comment.__type"},{"id":223,"kind":4194304,"name":"AstRoot","url":"modules/latex_latex_parser_types.html#astroot","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":224,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#astroot.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.AstRoot"},{"id":225,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#astroot.__type-4.kind-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstRoot.__type"},{"id":226,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#astroot.__type-4.content-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstRoot.__type"},{"id":227,"kind":1024,"name":"comment","url":"modules/latex_latex_parser_types.html#astroot.__type-4.comment-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstRoot.__type"},{"id":228,"kind":4194304,"name":"AstPreamble","url":"modules/latex_latex_parser_types.html#astpreamble","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":229,"kind":65536,"name":"__type","url":"modules/latex_latex_parser_types.html#astpreamble.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"latex/latex_parser_types.AstPreamble"},{"id":230,"kind":1024,"name":"kind","url":"modules/latex_latex_parser_types.html#astpreamble.__type-3.kind-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstPreamble.__type"},{"id":231,"kind":1024,"name":"content","url":"modules/latex_latex_parser_types.html#astpreamble.__type-3.content","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstPreamble.__type"},{"id":232,"kind":1024,"name":"comment","url":"modules/latex_latex_parser_types.html#astpreamble.__type-3.comment","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstPreamble.__type"},{"id":233,"kind":1024,"name":"rest","url":"modules/latex_latex_parser_types.html#astpreamble.__type-3.rest","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"latex/latex_parser_types.AstPreamble.__type"},{"id":234,"kind":4194304,"name":"LatexAst","url":"modules/latex_latex_parser_types.html#latexast","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"latex/latex_parser_types"},{"id":235,"kind":1,"name":"pegjs/pegjs_types","url":"modules/pegjs_pegjs_types.html","classes":"tsd-kind-module"},{"id":236,"kind":64,"name":"isLocation","url":"modules/pegjs_pegjs_types.html#islocation","classes":"tsd-kind-function tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":237,"kind":64,"name":"isSyntaxError","url":"modules/pegjs_pegjs_types.html#issyntaxerror","classes":"tsd-kind-function tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":238,"kind":4194304,"name":"Location","url":"modules/pegjs_pegjs_types.html#location","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":239,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#location.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"pegjs/pegjs_types.Location"},{"id":240,"kind":1024,"name":"start","url":"modules/pegjs_pegjs_types.html#location.__type.start","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type"},{"id":241,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#location.__type.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type"},{"id":242,"kind":1024,"name":"offset","url":"modules/pegjs_pegjs_types.html#location.__type.__type-2.offset-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":243,"kind":1024,"name":"line","url":"modules/pegjs_pegjs_types.html#location.__type.__type-2.line-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":244,"kind":1024,"name":"column","url":"modules/pegjs_pegjs_types.html#location.__type.__type-2.column-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":245,"kind":1024,"name":"end","url":"modules/pegjs_pegjs_types.html#location.__type.end","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type"},{"id":246,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#location.__type.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type"},{"id":247,"kind":1024,"name":"offset","url":"modules/pegjs_pegjs_types.html#location.__type.__type-1.offset","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":248,"kind":1024,"name":"line","url":"modules/pegjs_pegjs_types.html#location.__type.__type-1.line","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":249,"kind":1024,"name":"column","url":"modules/pegjs_pegjs_types.html#location.__type.__type-1.column","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Location.__type.__type"},{"id":250,"kind":128,"name":"SyntaxErrorBase","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":251,"kind":65536,"name":"__type","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":252,"kind":512,"name":"constructor","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":253,"kind":1024,"name":"message","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":254,"kind":1024,"name":"expected","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#expected","classes":"tsd-kind-property tsd-parent-kind-class","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":255,"kind":1024,"name":"found","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#found","classes":"tsd-kind-property tsd-parent-kind-class","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":256,"kind":1024,"name":"location","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#location","classes":"tsd-kind-property tsd-parent-kind-class","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":257,"kind":1024,"name":"name","url":"classes/pegjs_pegjs_types.syntaxerrorbase.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"pegjs/pegjs_types.SyntaxErrorBase"},{"id":258,"kind":128,"name":"SyntaxError","url":"classes/pegjs_pegjs_types.syntaxerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":259,"kind":65536,"name":"__type","url":"classes/pegjs_pegjs_types.syntaxerror.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"pegjs/pegjs_types.SyntaxError"},{"id":260,"kind":512,"name":"constructor","url":"classes/pegjs_pegjs_types.syntaxerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":261,"kind":1024,"name":"message","url":"classes/pegjs_pegjs_types.syntaxerror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":262,"kind":1024,"name":"expected","url":"classes/pegjs_pegjs_types.syntaxerror.html#expected","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":263,"kind":1024,"name":"found","url":"classes/pegjs_pegjs_types.syntaxerror.html#found","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":264,"kind":1024,"name":"location","url":"classes/pegjs_pegjs_types.syntaxerror.html#location","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":265,"kind":1024,"name":"name","url":"classes/pegjs_pegjs_types.syntaxerror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"pegjs/pegjs_types.SyntaxError"},{"id":266,"kind":256,"name":"ParserOptions","url":"interfaces/pegjs_pegjs_types.parseroptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":267,"kind":1024,"name":"startRule","url":"interfaces/pegjs_pegjs_types.parseroptions.html#startrule","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"pegjs/pegjs_types.ParserOptions"},{"id":268,"kind":1024,"name":"tracer","url":"interfaces/pegjs_pegjs_types.parseroptions.html#tracer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"pegjs/pegjs_types.ParserOptions"},{"id":269,"kind":1024,"name":"timeout","url":"interfaces/pegjs_pegjs_types.parseroptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"pegjs/pegjs_types.ParserOptions"},{"id":270,"kind":4194304,"name":"TraceArg","url":"modules/pegjs_pegjs_types.html#tracearg","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":271,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#tracearg.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"pegjs/pegjs_types.TraceArg"},{"id":272,"kind":1024,"name":"type","url":"modules/pegjs_pegjs_types.html#tracearg.__type-3.type","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.TraceArg.__type"},{"id":273,"kind":1024,"name":"rule","url":"modules/pegjs_pegjs_types.html#tracearg.__type-3.rule","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.TraceArg.__type"},{"id":274,"kind":1024,"name":"result","url":"modules/pegjs_pegjs_types.html#tracearg.__type-3.result","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.TraceArg.__type"},{"id":275,"kind":1024,"name":"location","url":"modules/pegjs_pegjs_types.html#tracearg.__type-3.location-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.TraceArg.__type"},{"id":276,"kind":4194304,"name":"Tracer","url":"modules/pegjs_pegjs_types.html#tracer","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"pegjs/pegjs_types"},{"id":277,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#tracer.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"pegjs/pegjs_types.Tracer"},{"id":278,"kind":1024,"name":"trace","url":"modules/pegjs_pegjs_types.html#tracer.__type-4.trace","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Tracer.__type"},{"id":279,"kind":65536,"name":"__type","url":"modules/pegjs_pegjs_types.html#tracer.__type-4.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-type-literal","parent":"pegjs/pegjs_types.Tracer.__type"},{"id":280,"kind":2,"name":"bibtexParser","url":"modules/main.bibtexparser.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"main"},{"id":281,"kind":64,"name":"parse","url":"modules/main.bibtexparser.html#parse","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":282,"kind":16777216,"name":"isSyntaxError","url":"modules/main.bibtexparser.html#issyntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":283,"kind":16777216,"name":"ParserOptions","url":"modules/main.bibtexparser.html#parseroptions","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":284,"kind":16777216,"name":"SyntaxError","url":"modules/main.bibtexparser.html#syntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":285,"kind":64,"name":"isEntry","url":"modules/main.bibtexparser.html#isentry","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":286,"kind":64,"name":"isStringEntry","url":"modules/main.bibtexparser.html#isstringentry","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":287,"kind":64,"name":"isPreambleEntry","url":"modules/main.bibtexparser.html#ispreambleentry","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":288,"kind":64,"name":"isTextStringValue","url":"modules/main.bibtexparser.html#istextstringvalue","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":289,"kind":64,"name":"isNumberValue","url":"modules/main.bibtexparser.html#isnumbervalue","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":290,"kind":64,"name":"isAbbreviationValue","url":"modules/main.bibtexparser.html#isabbreviationvalue","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":291,"kind":64,"name":"isConcatValue","url":"modules/main.bibtexparser.html#isconcatvalue","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":292,"kind":4194304,"name":"Field","url":"modules/main.bibtexparser.html#field","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":293,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#field.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.Field"},{"id":294,"kind":1024,"name":"name","url":"modules/main.bibtexparser.html#field.__type-4.name","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Field.__type"},{"id":295,"kind":1024,"name":"value","url":"modules/main.bibtexparser.html#field.__type-4.value","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Field.__type"},{"id":296,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#field.__type-4.location-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Field.__type"},{"id":297,"kind":4194304,"name":"FieldValue","url":"modules/main.bibtexparser.html#fieldvalue","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":298,"kind":4194304,"name":"Entry","url":"modules/main.bibtexparser.html#entry","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":299,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#entry.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.Entry"},{"id":300,"kind":1024,"name":"entryType","url":"modules/main.bibtexparser.html#entry.__type-3.entrytype","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Entry.__type"},{"id":301,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#entry.__type-3.content-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Entry.__type"},{"id":302,"kind":1024,"name":"internalKey","url":"modules/main.bibtexparser.html#entry.__type-3.internalkey","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Entry.__type"},{"id":303,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#entry.__type-3.location-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.Entry.__type"},{"id":304,"kind":4194304,"name":"StringEntry","url":"modules/main.bibtexparser.html#stringentry","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":305,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#stringentry.__type-7","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.StringEntry"},{"id":306,"kind":1024,"name":"entryType","url":"modules/main.bibtexparser.html#stringentry.__type-7.entrytype-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.StringEntry.__type"},{"id":307,"kind":1024,"name":"abbreviation","url":"modules/main.bibtexparser.html#stringentry.__type-7.abbreviation","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.StringEntry.__type"},{"id":308,"kind":1024,"name":"value","url":"modules/main.bibtexparser.html#stringentry.__type-7.value-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.StringEntry.__type"},{"id":309,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#stringentry.__type-7.location-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.StringEntry.__type"},{"id":310,"kind":4194304,"name":"PreambleEntry","url":"modules/main.bibtexparser.html#preambleentry","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":311,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#preambleentry.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.PreambleEntry"},{"id":312,"kind":1024,"name":"entryType","url":"modules/main.bibtexparser.html#preambleentry.__type-6.entrytype-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.PreambleEntry.__type"},{"id":313,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#preambleentry.__type-6.content-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.PreambleEntry.__type"},{"id":314,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#preambleentry.__type-6.location-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.PreambleEntry.__type"},{"id":315,"kind":4194304,"name":"TextStringValue","url":"modules/main.bibtexparser.html#textstringvalue","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":316,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#textstringvalue.__type-8","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.TextStringValue"},{"id":317,"kind":1024,"name":"kind","url":"modules/main.bibtexparser.html#textstringvalue.__type-8.kind-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.TextStringValue.__type"},{"id":318,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#textstringvalue.__type-8.content-6","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.TextStringValue.__type"},{"id":319,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#textstringvalue.__type-8.location-7","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.TextStringValue.__type"},{"id":320,"kind":4194304,"name":"NumberValue","url":"modules/main.bibtexparser.html#numbervalue","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":321,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#numbervalue.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.NumberValue"},{"id":322,"kind":1024,"name":"kind","url":"modules/main.bibtexparser.html#numbervalue.__type-5.kind-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.NumberValue.__type"},{"id":323,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#numbervalue.__type-5.content-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.NumberValue.__type"},{"id":324,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#numbervalue.__type-5.location-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.NumberValue.__type"},{"id":325,"kind":4194304,"name":"AbbreviationValue","url":"modules/main.bibtexparser.html#abbreviationvalue","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":326,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#abbreviationvalue.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.AbbreviationValue"},{"id":327,"kind":1024,"name":"kind","url":"modules/main.bibtexparser.html#abbreviationvalue.__type.kind","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.AbbreviationValue.__type"},{"id":328,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#abbreviationvalue.__type.content","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.AbbreviationValue.__type"},{"id":329,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#abbreviationvalue.__type.location","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.AbbreviationValue.__type"},{"id":330,"kind":4194304,"name":"ConcatValue","url":"modules/main.bibtexparser.html#concatvalue","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":331,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#concatvalue.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.ConcatValue"},{"id":332,"kind":1024,"name":"kind","url":"modules/main.bibtexparser.html#concatvalue.__type-2.kind-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.ConcatValue.__type"},{"id":333,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#concatvalue.__type-2.content-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.ConcatValue.__type"},{"id":334,"kind":1024,"name":"location","url":"modules/main.bibtexparser.html#concatvalue.__type-2.location-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.ConcatValue.__type"},{"id":335,"kind":4194304,"name":"BibtexAst","url":"modules/main.bibtexparser.html#bibtexast","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.bibtexParser"},{"id":336,"kind":65536,"name":"__type","url":"modules/main.bibtexparser.html#bibtexast.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.bibtexParser.BibtexAst"},{"id":337,"kind":1024,"name":"content","url":"modules/main.bibtexparser.html#bibtexast.__type-1.content-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.bibtexParser.BibtexAst.__type"},{"id":338,"kind":2,"name":"latexLogParser","url":"modules/main.latexlogparser.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"main"},{"id":339,"kind":64,"name":"parse","url":"modules/main.latexlogparser.html#parse","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":340,"kind":16777216,"name":"isSyntaxError","url":"modules/main.latexlogparser.html#issyntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":341,"kind":16777216,"name":"ParserOptions","url":"modules/main.latexlogparser.html#parseroptions","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":342,"kind":16777216,"name":"SyntaxError","url":"modules/main.latexlogparser.html#syntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":343,"kind":64,"name":"isFileStack","url":"modules/main.latexlogparser.html#isfilestack","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":344,"kind":64,"name":"isTexError","url":"modules/main.latexlogparser.html#istexerror","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":345,"kind":64,"name":"isLatexmkError","url":"modules/main.latexlogparser.html#islatexmkerror","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":346,"kind":64,"name":"isLogText","url":"modules/main.latexlogparser.html#islogtext","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":347,"kind":64,"name":"isPageNumber","url":"modules/main.latexlogparser.html#ispagenumber","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":348,"kind":4194304,"name":"FileStack","url":"modules/main.latexlogparser.html#filestack","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":349,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#filestack.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.FileStack"},{"id":350,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#filestack.__type.kind","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.FileStack.__type"},{"id":351,"kind":1024,"name":"content","url":"modules/main.latexlogparser.html#filestack.__type.content","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.FileStack.__type"},{"id":352,"kind":4194304,"name":"TexError","url":"modules/main.latexlogparser.html#texerror","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":353,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#texerror.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.TexError"},{"id":354,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#texerror.__type-5.kind-5","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.TexError.__type"},{"id":355,"kind":1024,"name":"message","url":"modules/main.latexlogparser.html#texerror.__type-5.message-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.TexError.__type"},{"id":356,"kind":1024,"name":"line","url":"modules/main.latexlogparser.html#texerror.__type-5.line-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.TexError.__type"},{"id":357,"kind":1024,"name":"command","url":"modules/main.latexlogparser.html#texerror.__type-5.command-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.TexError.__type"},{"id":358,"kind":4194304,"name":"LatexmkError","url":"modules/main.latexlogparser.html#latexmkerror","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":359,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#latexmkerror.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.LatexmkError"},{"id":360,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#latexmkerror.__type-2.kind-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexmkError.__type"},{"id":361,"kind":1024,"name":"message","url":"modules/main.latexlogparser.html#latexmkerror.__type-2.message","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexmkError.__type"},{"id":362,"kind":1024,"name":"path","url":"modules/main.latexlogparser.html#latexmkerror.__type-2.path","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexmkError.__type"},{"id":363,"kind":1024,"name":"line","url":"modules/main.latexlogparser.html#latexmkerror.__type-2.line","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexmkError.__type"},{"id":364,"kind":1024,"name":"command","url":"modules/main.latexlogparser.html#latexmkerror.__type-2.command","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexmkError.__type"},{"id":365,"kind":4194304,"name":"LogText","url":"modules/main.latexlogparser.html#logtext","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":366,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#logtext.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.LogText"},{"id":367,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#logtext.__type-3.kind-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LogText.__type"},{"id":368,"kind":1024,"name":"content","url":"modules/main.latexlogparser.html#logtext.__type-3.content-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LogText.__type"},{"id":369,"kind":4194304,"name":"PageNumber","url":"modules/main.latexlogparser.html#pagenumber","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":370,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#pagenumber.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.PageNumber"},{"id":371,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#pagenumber.__type-4.kind-4","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.PageNumber.__type"},{"id":372,"kind":1024,"name":"page","url":"modules/main.latexlogparser.html#pagenumber.__type-4.page","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.PageNumber.__type"},{"id":373,"kind":1024,"name":"content","url":"modules/main.latexlogparser.html#pagenumber.__type-4.content-3","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.PageNumber.__type"},{"id":374,"kind":4194304,"name":"LatexLogElement","url":"modules/main.latexlogparser.html#latexlogelement","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":375,"kind":4194304,"name":"LatexLogAst","url":"modules/main.latexlogparser.html#latexlogast","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexLogParser"},{"id":376,"kind":65536,"name":"__type","url":"modules/main.latexlogparser.html#latexlogast.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexLogParser.LatexLogAst"},{"id":377,"kind":1024,"name":"kind","url":"modules/main.latexlogparser.html#latexlogast.__type-1.kind-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexLogAst.__type"},{"id":378,"kind":1024,"name":"content","url":"modules/main.latexlogparser.html#latexlogast.__type-1.content-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexLogParser.LatexLogAst.__type"},{"id":379,"kind":2,"name":"latexParser","url":"modules/main.latexparser.html","classes":"tsd-kind-namespace tsd-parent-kind-module","parent":"main"},{"id":380,"kind":64,"name":"parse","url":"modules/main.latexparser.html#parse","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":381,"kind":64,"name":"parsePreamble","url":"modules/main.latexparser.html#parsepreamble","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":382,"kind":64,"name":"find","url":"modules/main.latexparser.html#find","classes":"tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":383,"kind":64,"name":"findAll","url":"modules/main.latexparser.html#findall","classes":"tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":384,"kind":64,"name":"findAllSequences","url":"modules/main.latexparser.html#findallsequences","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":385,"kind":64,"name":"findNodeAt","url":"modules/main.latexparser.html#findnodeat","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":386,"kind":4194304,"name":"FindResult","url":"modules/main.latexparser.html#findresult","classes":"tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":387,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#findresult.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.FindResult"},{"id":388,"kind":1024,"name":"node","url":"modules/main.latexparser.html#findresult.__type.node-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.FindResult.__type"},{"id":389,"kind":1024,"name":"parent","url":"modules/main.latexparser.html#findresult.__type.parent","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.FindResult.__type"},{"id":390,"kind":4194304,"name":"Position","url":"modules/main.latexparser.html#position","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":391,"kind":4194304,"name":"PositionLc","url":"modules/main.latexparser.html#positionlc","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":392,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#positionlc.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.PositionLc"},{"id":393,"kind":1024,"name":"line","url":"modules/main.latexparser.html#positionlc.__type-3.line","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionLc.__type"},{"id":394,"kind":1024,"name":"column","url":"modules/main.latexparser.html#positionlc.__type-3.column","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionLc.__type"},{"id":395,"kind":1024,"name":"offset","url":"modules/main.latexparser.html#positionlc.__type-3.offset","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionLc.__type"},{"id":396,"kind":1024,"name":"includeStart","url":"modules/main.latexparser.html#positionlc.__type-3.includestart","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionLc.__type"},{"id":397,"kind":1024,"name":"includeEnd","url":"modules/main.latexparser.html#positionlc.__type-3.includeend","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionLc.__type"},{"id":398,"kind":4194304,"name":"PositionOs","url":"modules/main.latexparser.html#positionos","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":399,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#positionos.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.PositionOs"},{"id":400,"kind":1024,"name":"line","url":"modules/main.latexparser.html#positionos.__type-4.line-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionOs.__type"},{"id":401,"kind":1024,"name":"column","url":"modules/main.latexparser.html#positionos.__type-4.column-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionOs.__type"},{"id":402,"kind":1024,"name":"offset","url":"modules/main.latexparser.html#positionos.__type-4.offset-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionOs.__type"},{"id":403,"kind":1024,"name":"includeStart","url":"modules/main.latexparser.html#positionos.__type-4.includestart-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionOs.__type"},{"id":404,"kind":1024,"name":"includeEnd","url":"modules/main.latexparser.html#positionos.__type-4.includeend-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.PositionOs.__type"},{"id":405,"kind":4194304,"name":"SequenceResult","url":"modules/main.latexparser.html#sequenceresult","classes":"tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":406,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#sequenceresult.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.SequenceResult"},{"id":407,"kind":1024,"name":"nodes","url":"modules/main.latexparser.html#sequenceresult.__type-5.nodes","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.SequenceResult.__type"},{"id":408,"kind":1024,"name":"parent","url":"modules/main.latexparser.html#sequenceresult.__type-5.parent-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.SequenceResult.__type"},{"id":409,"kind":4194304,"name":"Typeguard","url":"modules/main.latexparser.html#typeguard","classes":"tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":410,"kind":64,"name":"pattern","url":"modules/main.latexparser.html#pattern-1","classes":"tsd-kind-function tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":411,"kind":4194304,"name":"MatchOptions","url":"modules/main.latexparser.html#matchoptions","classes":"tsd-kind-type-alias tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":412,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#matchoptions.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.MatchOptions"},{"id":413,"kind":1024,"name":"traverseAll","url":"modules/main.latexparser.html#matchoptions.__type-1.traverseall","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.MatchOptions.__type"},{"id":414,"kind":4194304,"name":"MatchResult","url":"modules/main.latexparser.html#matchresult","classes":"tsd-kind-type-alias tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":415,"kind":65536,"name":"__type","url":"modules/main.latexparser.html#matchresult.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"main.latexParser.MatchResult"},{"id":416,"kind":1024,"name":"node","url":"modules/main.latexparser.html#matchresult.__type-2.node-2","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.MatchResult.__type"},{"id":417,"kind":1024,"name":"parent","url":"modules/main.latexparser.html#matchresult.__type-2.parent-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"main.latexParser.MatchResult.__type"},{"id":418,"kind":128,"name":"Pattern","url":"classes/main.latexparser.pattern.html","classes":"tsd-kind-class tsd-parent-kind-namespace tsd-has-type-parameter","parent":"main.latexParser"},{"id":419,"kind":1024,"name":"typeguard","url":"classes/main.latexparser.pattern.html#typeguard","classes":"tsd-kind-property tsd-parent-kind-class","parent":"main.latexParser.Pattern"},{"id":420,"kind":1024,"name":"parentPattern","url":"classes/main.latexparser.pattern.html#parentpattern","classes":"tsd-kind-property tsd-parent-kind-class","parent":"main.latexParser.Pattern"},{"id":421,"kind":2048,"name":"child","url":"classes/main.latexparser.pattern.html#child","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"main.latexParser.Pattern"},{"id":422,"kind":2048,"name":"match","url":"classes/main.latexparser.pattern.html#match","classes":"tsd-kind-method tsd-parent-kind-class","parent":"main.latexParser.Pattern"},{"id":423,"kind":2048,"name":"matchAll","url":"classes/main.latexparser.pattern.html#matchall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"main.latexParser.Pattern"},{"id":424,"kind":64,"name":"stringify","url":"modules/main.latexparser.html#stringify","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":425,"kind":16777216,"name":"isSyntaxError","url":"modules/main.latexparser.html#issyntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":426,"kind":16777216,"name":"Location","url":"modules/main.latexparser.html#location","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":427,"kind":16777216,"name":"SyntaxError","url":"modules/main.latexparser.html#syntaxerror","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":428,"kind":256,"name":"ParserOptions","url":"interfaces/main.latexparser.parseroptions.html","classes":"tsd-kind-interface tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":429,"kind":1024,"name":"startRule","url":"interfaces/main.latexparser.parseroptions.html#startrule","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"main.latexParser.ParserOptions"},{"id":430,"kind":1024,"name":"enableComment","url":"interfaces/main.latexparser.parseroptions.html#enablecomment","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"main.latexParser.ParserOptions"},{"id":431,"kind":1024,"name":"enableMathCharacterLocation","url":"interfaces/main.latexparser.parseroptions.html#enablemathcharacterlocation","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"main.latexParser.ParserOptions"},{"id":432,"kind":1024,"name":"tracer","url":"interfaces/main.latexparser.parseroptions.html#tracer","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"main.latexParser.ParserOptions"},{"id":433,"kind":1024,"name":"timeout","url":"interfaces/main.latexparser.parseroptions.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"main.latexParser.ParserOptions"},{"id":434,"kind":16777216,"name":"isTextString","url":"modules/main.latexparser.html#istextstring","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":435,"kind":16777216,"name":"isCommand","url":"modules/main.latexparser.html#iscommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":436,"kind":16777216,"name":"isAmsMathTextCommand","url":"modules/main.latexparser.html#isamsmathtextcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":437,"kind":16777216,"name":"isDefCommand","url":"modules/main.latexparser.html#isdefcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":438,"kind":16777216,"name":"isUrlCommand","url":"modules/main.latexparser.html#isurlcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":439,"kind":16777216,"name":"isHrefCommand","url":"modules/main.latexparser.html#ishrefcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":440,"kind":16777216,"name":"isLabelCommand","url":"modules/main.latexparser.html#islabelcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":441,"kind":16777216,"name":"isEnvironment","url":"modules/main.latexparser.html#isenvironment","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":442,"kind":16777216,"name":"isMathEnv","url":"modules/main.latexparser.html#ismathenv","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":443,"kind":16777216,"name":"isMathEnvAligned","url":"modules/main.latexparser.html#ismathenvaligned","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":444,"kind":16777216,"name":"isGroup","url":"modules/main.latexparser.html#isgroup","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":445,"kind":16777216,"name":"isOptionalArg","url":"modules/main.latexparser.html#isoptionalarg","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":446,"kind":16777216,"name":"isParbreak","url":"modules/main.latexparser.html#isparbreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":447,"kind":16777216,"name":"isSpace","url":"modules/main.latexparser.html#isspace","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":448,"kind":16777216,"name":"isSoftbreak","url":"modules/main.latexparser.html#issoftbreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":449,"kind":16777216,"name":"isLinebreak","url":"modules/main.latexparser.html#islinebreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":450,"kind":16777216,"name":"isSuperscript","url":"modules/main.latexparser.html#issuperscript","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":451,"kind":16777216,"name":"isSubscript","url":"modules/main.latexparser.html#issubscript","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":452,"kind":16777216,"name":"isAlignmentTab","url":"modules/main.latexparser.html#isalignmenttab","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":453,"kind":16777216,"name":"isCommandParameter","url":"modules/main.latexparser.html#iscommandparameter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":454,"kind":16777216,"name":"isActiveCharacter","url":"modules/main.latexparser.html#isactivecharacter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":455,"kind":16777216,"name":"isIgnore","url":"modules/main.latexparser.html#isignore","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":456,"kind":16777216,"name":"isVerb","url":"modules/main.latexparser.html#isverb","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":457,"kind":16777216,"name":"isVerbatim","url":"modules/main.latexparser.html#isverbatim","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":458,"kind":16777216,"name":"isMinted","url":"modules/main.latexparser.html#isminted","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":459,"kind":16777216,"name":"isLstlisting","url":"modules/main.latexparser.html#islstlisting","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":460,"kind":16777216,"name":"isInlienMath","url":"modules/main.latexparser.html#isinlienmath","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":461,"kind":16777216,"name":"isDisplayMath","url":"modules/main.latexparser.html#isdisplaymath","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":462,"kind":16777216,"name":"isMathCharacter","url":"modules/main.latexparser.html#ismathcharacter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":463,"kind":16777216,"name":"isMatchingDelimiters","url":"modules/main.latexparser.html#ismatchingdelimiters","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":464,"kind":16777216,"name":"isMathDelimiters","url":"modules/main.latexparser.html#ismathdelimiters","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":465,"kind":16777216,"name":"hasContent","url":"modules/main.latexparser.html#hascontent","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":466,"kind":16777216,"name":"hasContentArray","url":"modules/main.latexparser.html#hascontentarray","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":467,"kind":16777216,"name":"hasArgsArray","url":"modules/main.latexparser.html#hasargsarray","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":468,"kind":16777216,"name":"isElement","url":"modules/main.latexparser.html#iselement","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":469,"kind":16777216,"name":"isAstRoot","url":"modules/main.latexparser.html#isastroot","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":470,"kind":16777216,"name":"isAstPreamble","url":"modules/main.latexparser.html#isastpreamble","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":471,"kind":16777216,"name":"TextString","url":"modules/main.latexparser.html#textstring","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":472,"kind":16777216,"name":"Command","url":"modules/main.latexparser.html#command","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":473,"kind":16777216,"name":"AmsMathTextCommand","url":"modules/main.latexparser.html#amsmathtextcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":474,"kind":16777216,"name":"DefCommand","url":"modules/main.latexparser.html#defcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":475,"kind":16777216,"name":"UrlCommand","url":"modules/main.latexparser.html#urlcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":476,"kind":16777216,"name":"HrefCommand","url":"modules/main.latexparser.html#hrefcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":477,"kind":16777216,"name":"LabelCommand","url":"modules/main.latexparser.html#labelcommand","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":478,"kind":16777216,"name":"Environment","url":"modules/main.latexparser.html#environment","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":479,"kind":16777216,"name":"MathEnv","url":"modules/main.latexparser.html#mathenv","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":480,"kind":16777216,"name":"MathEnvAligned","url":"modules/main.latexparser.html#mathenvaligned","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":481,"kind":16777216,"name":"Group","url":"modules/main.latexparser.html#group","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":482,"kind":16777216,"name":"OptionalArg","url":"modules/main.latexparser.html#optionalarg","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":483,"kind":16777216,"name":"Parbreak","url":"modules/main.latexparser.html#parbreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":484,"kind":16777216,"name":"Space","url":"modules/main.latexparser.html#space","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":485,"kind":16777216,"name":"Softbreak","url":"modules/main.latexparser.html#softbreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":486,"kind":16777216,"name":"Linebreak","url":"modules/main.latexparser.html#linebreak","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":487,"kind":16777216,"name":"Superscript","url":"modules/main.latexparser.html#superscript","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":488,"kind":16777216,"name":"Subscript","url":"modules/main.latexparser.html#subscript","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":489,"kind":16777216,"name":"AlignmentTab","url":"modules/main.latexparser.html#alignmenttab","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":490,"kind":16777216,"name":"CommandParameter","url":"modules/main.latexparser.html#commandparameter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":491,"kind":16777216,"name":"ActiveCharacter","url":"modules/main.latexparser.html#activecharacter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":492,"kind":16777216,"name":"Ignore","url":"modules/main.latexparser.html#ignore","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":493,"kind":16777216,"name":"Verb","url":"modules/main.latexparser.html#verb","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":494,"kind":16777216,"name":"Verbatim","url":"modules/main.latexparser.html#verbatim","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":495,"kind":16777216,"name":"Minted","url":"modules/main.latexparser.html#minted","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":496,"kind":16777216,"name":"Lstlisting","url":"modules/main.latexparser.html#lstlisting","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":497,"kind":16777216,"name":"InlienMath","url":"modules/main.latexparser.html#inlienmath","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":498,"kind":16777216,"name":"DisplayMath","url":"modules/main.latexparser.html#displaymath","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":499,"kind":16777216,"name":"MathCharacter","url":"modules/main.latexparser.html#mathcharacter","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":500,"kind":16777216,"name":"MatchingDelimiters","url":"modules/main.latexparser.html#matchingdelimiters","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":501,"kind":16777216,"name":"MathDelimiters","url":"modules/main.latexparser.html#mathdelimiters","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":502,"kind":16777216,"name":"Node","url":"modules/main.latexparser.html#node","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":503,"kind":16777216,"name":"Element","url":"modules/main.latexparser.html#element","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":504,"kind":16777216,"name":"Comment","url":"modules/main.latexparser.html#comment","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":505,"kind":16777216,"name":"AstRoot","url":"modules/main.latexparser.html#astroot","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":506,"kind":16777216,"name":"AstPreamble","url":"modules/main.latexparser.html#astpreamble","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"},{"id":507,"kind":16777216,"name":"LatexAst","url":"modules/main.latexparser.html#latexast","classes":"tsd-kind-reference tsd-parent-kind-namespace","parent":"main.latexParser"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,47.284]],["parent/0",[]],["name/1",[1,19.083]],["parent/1",[]],["name/2",[2,53.162]],["parent/2",[1,1.904]],["name/3",[3,53.162]],["parent/3",[1,1.904]],["name/4",[4,53.162]],["parent/4",[1,1.904]],["name/5",[5,53.162]],["parent/5",[1,1.904]],["name/6",[6,53.162]],["parent/6",[1,1.904]],["name/7",[7,53.162]],["parent/7",[1,1.904]],["name/8",[8,53.162]],["parent/8",[1,1.904]],["name/9",[9,53.162]],["parent/9",[1,1.904]],["name/10",[10,53.162]],["parent/10",[1,1.904]],["name/11",[11,53.162]],["parent/11",[1,1.904]],["name/12",[12,53.162]],["parent/12",[1,1.904]],["name/13",[13,53.162]],["parent/13",[1,1.904]],["name/14",[14,53.162]],["parent/14",[1,1.904]],["name/15",[15,53.162]],["parent/15",[1,1.904]],["name/16",[16,53.162]],["parent/16",[1,1.904]],["name/17",[17,53.162]],["parent/17",[1,1.904]],["name/18",[18,53.162]],["parent/18",[1,1.904]],["name/19",[19,53.162]],["parent/19",[1,1.904]],["name/20",[20,53.162]],["parent/20",[1,1.904]],["name/21",[21,53.162]],["parent/21",[1,1.904]],["name/22",[22,53.162]],["parent/22",[1,1.904]],["name/23",[23,53.162]],["parent/23",[1,1.904]],["name/24",[24,53.162]],["parent/24",[1,1.904]],["name/25",[25,53.162]],["parent/25",[1,1.904]],["name/26",[26,53.162]],["parent/26",[1,1.904]],["name/27",[27,53.162]],["parent/27",[1,1.904]],["name/28",[28,53.162]],["parent/28",[1,1.904]],["name/29",[29,53.162]],["parent/29",[1,1.904]],["name/30",[30,53.162]],["parent/30",[1,1.904]],["name/31",[31,53.162]],["parent/31",[1,1.904]],["name/32",[32,53.162]],["parent/32",[1,1.904]],["name/33",[33,53.162]],["parent/33",[1,1.904]],["name/34",[34,53.162]],["parent/34",[1,1.904]],["name/35",[35,53.162]],["parent/35",[1,1.904]],["name/36",[36,53.162]],["parent/36",[1,1.904]],["name/37",[37,53.162]],["parent/37",[1,1.904]],["name/38",[38,53.162]],["parent/38",[1,1.904]],["name/39",[39,53.162]],["parent/39",[1,1.904]],["name/40",[40,20.814]],["parent/40",[41,5.813]],["name/41",[42,24.37]],["parent/41",[43,4.968]],["name/42",[44,28.147]],["parent/42",[43,4.968]],["name/43",[45,24.147]],["parent/43",[43,4.968]],["name/44",[46,47.284]],["parent/44",[1,1.904]],["name/45",[40,20.814]],["parent/45",[47,5.813]],["name/46",[42,24.37]],["parent/46",[48,4.717]],["name/47",[49,34.291]],["parent/47",[48,4.717]],["name/48",[50,43.606]],["parent/48",[48,4.717]],["name/49",[45,24.147]],["parent/49",[48,4.717]],["name/50",[51,53.162]],["parent/50",[1,1.904]],["name/51",[40,20.814]],["parent/51",[52,5.813]],["name/52",[42,24.37]],["parent/52",[53,4.968]],["name/53",[54,43.606]],["parent/53",[53,4.968]],["name/54",[45,24.147]],["parent/54",[53,4.968]],["name/55",[55,53.162]],["parent/55",[1,1.904]],["name/56",[40,20.814]],["parent/56",[56,5.813]],["name/57",[42,24.37]],["parent/57",[57,4.517]],["name/58",[49,34.291]],["parent/58",[57,4.517]],["name/59",[58,58.27]],["parent/59",[57,4.517]],["name/60",[50,43.606]],["parent/60",[57,4.517]],["name/61",[45,24.147]],["parent/61",[57,4.517]],["name/62",[59,53.162]],["parent/62",[1,1.904]],["name/63",[40,20.814]],["parent/63",[60,5.813]],["name/64",[42,24.37]],["parent/64",[61,4.717]],["name/65",[49,34.291]],["parent/65",[61,4.717]],["name/66",[62,53.162]],["parent/66",[61,4.717]],["name/67",[45,24.147]],["parent/67",[61,4.717]],["name/68",[63,53.162]],["parent/68",[1,1.904]],["name/69",[40,20.814]],["parent/69",[64,5.813]],["name/70",[42,24.37]],["parent/70",[65,4.35]],["name/71",[49,34.291]],["parent/71",[65,4.35]],["name/72",[62,53.162]],["parent/72",[65,4.35]],["name/73",[54,43.606]],["parent/73",[65,4.35]],["name/74",[44,28.147]],["parent/74",[65,4.35]],["name/75",[45,24.147]],["parent/75",[65,4.35]],["name/76",[66,53.162]],["parent/76",[1,1.904]],["name/77",[40,20.814]],["parent/77",[67,5.813]],["name/78",[42,24.37]],["parent/78",[68,4.717]],["name/79",[49,34.291]],["parent/79",[68,4.717]],["name/80",[69,58.27]],["parent/80",[68,4.717]],["name/81",[45,24.147]],["parent/81",[68,4.717]],["name/82",[70,53.162]],["parent/82",[1,1.904]],["name/83",[40,20.814]],["parent/83",[71,5.813]],["name/84",[42,24.37]],["parent/84",[72,4.517]],["name/85",[49,34.291]],["parent/85",[72,4.517]],["name/86",[50,43.606]],["parent/86",[72,4.517]],["name/87",[44,28.147]],["parent/87",[72,4.517]],["name/88",[45,24.147]],["parent/88",[72,4.517]],["name/89",[73,53.162]],["parent/89",[1,1.904]],["name/90",[40,20.814]],["parent/90",[74,5.813]],["name/91",[42,24.37]],["parent/91",[75,4.517]],["name/92",[49,34.291]],["parent/92",[75,4.517]],["name/93",[50,43.606]],["parent/93",[75,4.517]],["name/94",[44,28.147]],["parent/94",[75,4.517]],["name/95",[45,24.147]],["parent/95",[75,4.517]],["name/96",[76,53.162]],["parent/96",[1,1.904]],["name/97",[40,20.814]],["parent/97",[77,5.813]],["name/98",[42,24.37]],["parent/98",[78,4.517]],["name/99",[49,34.291]],["parent/99",[78,4.517]],["name/100",[50,43.606]],["parent/100",[78,4.517]],["name/101",[44,28.147]],["parent/101",[78,4.517]],["name/102",[45,24.147]],["parent/102",[78,4.517]],["name/103",[79,53.162]],["parent/103",[1,1.904]],["name/104",[40,20.814]],["parent/104",[80,5.813]],["name/105",[42,24.37]],["parent/105",[81,4.968]],["name/106",[44,28.147]],["parent/106",[81,4.968]],["name/107",[45,24.147]],["parent/107",[81,4.968]],["name/108",[82,53.162]],["parent/108",[1,1.904]],["name/109",[40,20.814]],["parent/109",[83,5.813]],["name/110",[42,24.37]],["parent/110",[84,4.968]],["name/111",[44,28.147]],["parent/111",[84,4.968]],["name/112",[45,24.147]],["parent/112",[84,4.968]],["name/113",[85,53.162]],["parent/113",[1,1.904]],["name/114",[40,20.814]],["parent/114",[86,5.813]],["name/115",[42,24.37]],["parent/115",[87,5.303]],["name/116",[45,24.147]],["parent/116",[87,5.303]],["name/117",[88,53.162]],["parent/117",[1,1.904]],["name/118",[40,20.814]],["parent/118",[89,5.813]],["name/119",[42,24.37]],["parent/119",[90,5.303]],["name/120",[45,24.147]],["parent/120",[90,5.303]],["name/121",[91,53.162]],["parent/121",[1,1.904]],["name/122",[40,20.814]],["parent/122",[92,5.813]],["name/123",[42,24.37]],["parent/123",[93,5.303]],["name/124",[45,24.147]],["parent/124",[93,5.303]],["name/125",[94,53.162]],["parent/125",[1,1.904]],["name/126",[40,20.814]],["parent/126",[95,5.813]],["name/127",[42,24.37]],["parent/127",[96,4.717]],["name/128",[49,34.291]],["parent/128",[96,4.717]],["name/129",[54,43.606]],["parent/129",[96,4.717]],["name/130",[45,24.147]],["parent/130",[96,4.717]],["name/131",[97,53.162]],["parent/131",[1,1.904]],["name/132",[40,20.814]],["parent/132",[98,5.813]],["name/133",[42,24.37]],["parent/133",[99,4.968]],["name/134",[54,43.606]],["parent/134",[99,4.968]],["name/135",[45,24.147]],["parent/135",[99,4.968]],["name/136",[100,53.162]],["parent/136",[1,1.904]],["name/137",[40,20.814]],["parent/137",[101,5.813]],["name/138",[42,24.37]],["parent/138",[102,4.968]],["name/139",[54,43.606]],["parent/139",[102,4.968]],["name/140",[45,24.147]],["parent/140",[102,4.968]],["name/141",[103,53.162]],["parent/141",[1,1.904]],["name/142",[40,20.814]],["parent/142",[104,5.813]],["name/143",[42,24.37]],["parent/143",[105,5.303]],["name/144",[45,24.147]],["parent/144",[105,5.303]],["name/145",[106,53.162]],["parent/145",[1,1.904]],["name/146",[40,20.814]],["parent/146",[107,5.813]],["name/147",[42,24.37]],["parent/147",[108,4.968]],["name/148",[109,58.27]],["parent/148",[108,4.968]],["name/149",[45,24.147]],["parent/149",[108,4.968]],["name/150",[110,53.162]],["parent/150",[1,1.904]],["name/151",[40,20.814]],["parent/151",[111,5.813]],["name/152",[42,24.37]],["parent/152",[112,5.303]],["name/153",[45,24.147]],["parent/153",[112,5.303]],["name/154",[113,53.162]],["parent/154",[1,1.904]],["name/155",[40,20.814]],["parent/155",[114,5.813]],["name/156",[42,24.37]],["parent/156",[115,5.303]],["name/157",[45,24.147]],["parent/157",[115,5.303]],["name/158",[116,53.162]],["parent/158",[1,1.904]],["name/159",[40,20.814]],["parent/159",[117,5.813]],["name/160",[42,24.37]],["parent/160",[118,4.517]],["name/161",[49,34.291]],["parent/161",[118,4.517]],["name/162",[119,58.27]],["parent/162",[118,4.517]],["name/163",[44,28.147]],["parent/163",[118,4.517]],["name/164",[45,24.147]],["parent/164",[118,4.517]],["name/165",[120,53.162]],["parent/165",[1,1.904]],["name/166",[40,20.814]],["parent/166",[121,5.813]],["name/167",[42,24.37]],["parent/167",[122,4.717]],["name/168",[49,34.291]],["parent/168",[122,4.717]],["name/169",[44,28.147]],["parent/169",[122,4.717]],["name/170",[45,24.147]],["parent/170",[122,4.717]],["name/171",[123,53.162]],["parent/171",[1,1.904]],["name/172",[40,20.814]],["parent/172",[124,5.813]],["name/173",[42,24.37]],["parent/173",[125,4.517]],["name/174",[49,34.291]],["parent/174",[125,4.517]],["name/175",[50,43.606]],["parent/175",[125,4.517]],["name/176",[44,28.147]],["parent/176",[125,4.517]],["name/177",[45,24.147]],["parent/177",[125,4.517]],["name/178",[126,53.162]],["parent/178",[1,1.904]],["name/179",[40,20.814]],["parent/179",[127,5.813]],["name/180",[42,24.37]],["parent/180",[128,4.517]],["name/181",[49,34.291]],["parent/181",[128,4.517]],["name/182",[54,43.606]],["parent/182",[128,4.517]],["name/183",[44,28.147]],["parent/183",[128,4.517]],["name/184",[45,24.147]],["parent/184",[128,4.517]],["name/185",[129,53.162]],["parent/185",[1,1.904]],["name/186",[40,20.814]],["parent/186",[130,5.813]],["name/187",[42,24.37]],["parent/187",[131,4.968]],["name/188",[44,28.147]],["parent/188",[131,4.968]],["name/189",[45,24.147]],["parent/189",[131,4.968]],["name/190",[132,53.162]],["parent/190",[1,1.904]],["name/191",[40,20.814]],["parent/191",[133,5.813]],["name/192",[42,24.37]],["parent/192",[134,4.968]],["name/193",[44,28.147]],["parent/193",[134,4.968]],["name/194",[45,24.147]],["parent/194",[134,4.968]],["name/195",[135,53.162]],["parent/195",[1,1.904]],["name/196",[40,20.814]],["parent/196",[136,5.813]],["name/197",[42,24.37]],["parent/197",[137,4.968]],["name/198",[44,28.147]],["parent/198",[137,4.968]],["name/199",[45,24.147]],["parent/199",[137,4.968]],["name/200",[138,53.162]],["parent/200",[1,1.904]],["name/201",[40,20.814]],["parent/201",[139,5.813]],["name/202",[42,24.37]],["parent/202",[140,4.517]],["name/203",[141,53.162]],["parent/203",[140,4.517]],["name/204",[142,53.162]],["parent/204",[140,4.517]],["name/205",[44,28.147]],["parent/205",[140,4.517]],["name/206",[45,24.147]],["parent/206",[140,4.517]],["name/207",[143,53.162]],["parent/207",[1,1.904]],["name/208",[40,20.814]],["parent/208",[144,5.813]],["name/209",[42,24.37]],["parent/209",[145,4.207]],["name/210",[146,58.27]],["parent/210",[145,4.207]],["name/211",[147,58.27]],["parent/211",[145,4.207]],["name/212",[141,53.162]],["parent/212",[145,4.207]],["name/213",[142,53.162]],["parent/213",[145,4.207]],["name/214",[44,28.147]],["parent/214",[145,4.207]],["name/215",[45,24.147]],["parent/215",[145,4.207]],["name/216",[148,47.284]],["parent/216",[1,1.904]],["name/217",[149,53.162]],["parent/217",[1,1.904]],["name/218",[150,47.284]],["parent/218",[1,1.904]],["name/219",[40,20.814]],["parent/219",[151,5.813]],["name/220",[42,24.37]],["parent/220",[152,4.968]],["name/221",[44,28.147]],["parent/221",[152,4.968]],["name/222",[45,24.147]],["parent/222",[152,4.968]],["name/223",[153,53.162]],["parent/223",[1,1.904]],["name/224",[40,20.814]],["parent/224",[154,5.813]],["name/225",[42,24.37]],["parent/225",[155,4.968]],["name/226",[44,28.147]],["parent/226",[155,4.968]],["name/227",[150,47.284]],["parent/227",[155,4.968]],["name/228",[156,53.162]],["parent/228",[1,1.904]],["name/229",[40,20.814]],["parent/229",[157,5.813]],["name/230",[42,24.37]],["parent/230",[158,4.717]],["name/231",[44,28.147]],["parent/231",[158,4.717]],["name/232",[150,47.284]],["parent/232",[158,4.717]],["name/233",[159,58.27]],["parent/233",[158,4.717]],["name/234",[160,53.162]],["parent/234",[1,1.904]],["name/235",[161,39.812]],["parent/235",[]],["name/236",[162,58.27]],["parent/236",[161,3.972]],["name/237",[163,47.284]],["parent/237",[161,3.972]],["name/238",[45,24.147]],["parent/238",[161,3.972]],["name/239",[40,20.814]],["parent/239",[164,5.813]],["name/240",[165,58.27]],["parent/240",[166,4.717]],["name/241",[40,20.814]],["parent/241",[166,4.717]],["name/242",[167,47.284]],["parent/242",[168,4.35]],["name/243",[169,43.606]],["parent/243",[168,4.35]],["name/244",[170,47.284]],["parent/244",[168,4.35]],["name/245",[171,58.27]],["parent/245",[166,4.717]],["name/246",[40,20.814]],["parent/246",[166,4.717]],["name/247",[167,47.284]],["parent/247",[168,4.35]],["name/248",[169,43.606]],["parent/248",[168,4.35]],["name/249",[170,47.284]],["parent/249",[168,4.35]],["name/250",[172,58.27]],["parent/250",[161,3.972]],["name/251",[40,20.814]],["parent/251",[173,4.207]],["name/252",[174,53.162]],["parent/252",[173,4.207]],["name/253",[175,47.284]],["parent/253",[173,4.207]],["name/254",[176,53.162]],["parent/254",[173,4.207]],["name/255",[177,53.162]],["parent/255",[173,4.207]],["name/256",[45,24.147]],["parent/256",[173,4.207]],["name/257",[49,34.291]],["parent/257",[173,4.207]],["name/258",[178,47.284]],["parent/258",[161,3.972]],["name/259",[40,20.814]],["parent/259",[179,4.207]],["name/260",[174,53.162]],["parent/260",[179,4.207]],["name/261",[175,47.284]],["parent/261",[179,4.207]],["name/262",[176,53.162]],["parent/262",[179,4.207]],["name/263",[177,53.162]],["parent/263",[179,4.207]],["name/264",[45,24.147]],["parent/264",[179,4.207]],["name/265",[49,34.291]],["parent/265",[179,4.207]],["name/266",[180,47.284]],["parent/266",[161,3.972]],["name/267",[181,53.162]],["parent/267",[182,4.968]],["name/268",[183,49.797]],["parent/268",[182,4.968]],["name/269",[184,53.162]],["parent/269",[182,4.968]],["name/270",[185,58.27]],["parent/270",[161,3.972]],["name/271",[40,20.814]],["parent/271",[186,5.813]],["name/272",[187,58.27]],["parent/272",[188,4.717]],["name/273",[189,58.27]],["parent/273",[188,4.717]],["name/274",[190,58.27]],["parent/274",[188,4.717]],["name/275",[45,24.147]],["parent/275",[188,4.717]],["name/276",[183,49.797]],["parent/276",[161,3.972]],["name/277",[40,20.814]],["parent/277",[191,5.813]],["name/278",[192,58.27]],["parent/278",[193,5.303]],["name/279",[40,20.814]],["parent/279",[193,5.303]],["name/280",[194,58.27]],["parent/280",[0,4.717]],["name/281",[195,49.797]],["parent/281",[196,3.157]],["name/282",[163,47.284]],["parent/282",[196,3.157]],["name/283",[180,47.284]],["parent/283",[196,3.157]],["name/284",[178,47.284]],["parent/284",[196,3.157]],["name/285",[197,58.27]],["parent/285",[196,3.157]],["name/286",[198,58.27]],["parent/286",[196,3.157]],["name/287",[199,58.27]],["parent/287",[196,3.157]],["name/288",[200,58.27]],["parent/288",[196,3.157]],["name/289",[201,58.27]],["parent/289",[196,3.157]],["name/290",[202,58.27]],["parent/290",[196,3.157]],["name/291",[203,58.27]],["parent/291",[196,3.157]],["name/292",[204,58.27]],["parent/292",[196,3.157]],["name/293",[40,20.814]],["parent/293",[205,5.813]],["name/294",[49,34.291]],["parent/294",[206,4.968]],["name/295",[207,53.162]],["parent/295",[206,4.968]],["name/296",[45,24.147]],["parent/296",[206,4.968]],["name/297",[208,58.27]],["parent/297",[196,3.157]],["name/298",[209,58.27]],["parent/298",[196,3.157]],["name/299",[40,20.814]],["parent/299",[210,5.813]],["name/300",[211,49.797]],["parent/300",[212,4.717]],["name/301",[44,28.147]],["parent/301",[212,4.717]],["name/302",[213,58.27]],["parent/302",[212,4.717]],["name/303",[45,24.147]],["parent/303",[212,4.717]],["name/304",[214,58.27]],["parent/304",[196,3.157]],["name/305",[40,20.814]],["parent/305",[215,5.813]],["name/306",[211,49.797]],["parent/306",[216,4.717]],["name/307",[217,58.27]],["parent/307",[216,4.717]],["name/308",[207,53.162]],["parent/308",[216,4.717]],["name/309",[45,24.147]],["parent/309",[216,4.717]],["name/310",[218,58.27]],["parent/310",[196,3.157]],["name/311",[40,20.814]],["parent/311",[219,5.813]],["name/312",[211,49.797]],["parent/312",[220,4.968]],["name/313",[44,28.147]],["parent/313",[220,4.968]],["name/314",[45,24.147]],["parent/314",[220,4.968]],["name/315",[221,58.27]],["parent/315",[196,3.157]],["name/316",[40,20.814]],["parent/316",[222,5.813]],["name/317",[42,24.37]],["parent/317",[223,4.968]],["name/318",[44,28.147]],["parent/318",[223,4.968]],["name/319",[45,24.147]],["parent/319",[223,4.968]],["name/320",[224,58.27]],["parent/320",[196,3.157]],["name/321",[40,20.814]],["parent/321",[225,5.813]],["name/322",[42,24.37]],["parent/322",[226,4.968]],["name/323",[44,28.147]],["parent/323",[226,4.968]],["name/324",[45,24.147]],["parent/324",[226,4.968]],["name/325",[227,58.27]],["parent/325",[196,3.157]],["name/326",[40,20.814]],["parent/326",[228,5.813]],["name/327",[42,24.37]],["parent/327",[229,4.968]],["name/328",[44,28.147]],["parent/328",[229,4.968]],["name/329",[45,24.147]],["parent/329",[229,4.968]],["name/330",[230,58.27]],["parent/330",[196,3.157]],["name/331",[40,20.814]],["parent/331",[231,5.813]],["name/332",[42,24.37]],["parent/332",[232,4.968]],["name/333",[44,28.147]],["parent/333",[232,4.968]],["name/334",[45,24.147]],["parent/334",[232,4.968]],["name/335",[233,58.27]],["parent/335",[196,3.157]],["name/336",[40,20.814]],["parent/336",[234,5.813]],["name/337",[44,28.147]],["parent/337",[235,5.813]],["name/338",[236,58.27]],["parent/338",[0,4.717]],["name/339",[195,49.797]],["parent/339",[237,3.421]],["name/340",[163,47.284]],["parent/340",[237,3.421]],["name/341",[180,47.284]],["parent/341",[237,3.421]],["name/342",[178,47.284]],["parent/342",[237,3.421]],["name/343",[238,58.27]],["parent/343",[237,3.421]],["name/344",[239,58.27]],["parent/344",[237,3.421]],["name/345",[240,58.27]],["parent/345",[237,3.421]],["name/346",[241,58.27]],["parent/346",[237,3.421]],["name/347",[242,58.27]],["parent/347",[237,3.421]],["name/348",[243,58.27]],["parent/348",[237,3.421]],["name/349",[40,20.814]],["parent/349",[244,5.813]],["name/350",[42,24.37]],["parent/350",[245,5.303]],["name/351",[44,28.147]],["parent/351",[245,5.303]],["name/352",[246,58.27]],["parent/352",[237,3.421]],["name/353",[40,20.814]],["parent/353",[247,5.813]],["name/354",[42,24.37]],["parent/354",[248,4.717]],["name/355",[175,47.284]],["parent/355",[248,4.717]],["name/356",[169,43.606]],["parent/356",[248,4.717]],["name/357",[46,47.284]],["parent/357",[248,4.717]],["name/358",[249,58.27]],["parent/358",[237,3.421]],["name/359",[40,20.814]],["parent/359",[250,5.813]],["name/360",[42,24.37]],["parent/360",[251,4.517]],["name/361",[175,47.284]],["parent/361",[251,4.517]],["name/362",[252,58.27]],["parent/362",[251,4.517]],["name/363",[169,43.606]],["parent/363",[251,4.517]],["name/364",[46,47.284]],["parent/364",[251,4.517]],["name/365",[253,58.27]],["parent/365",[237,3.421]],["name/366",[40,20.814]],["parent/366",[254,5.813]],["name/367",[42,24.37]],["parent/367",[255,5.303]],["name/368",[44,28.147]],["parent/368",[255,5.303]],["name/369",[256,58.27]],["parent/369",[237,3.421]],["name/370",[40,20.814]],["parent/370",[257,5.813]],["name/371",[42,24.37]],["parent/371",[258,4.968]],["name/372",[259,58.27]],["parent/372",[258,4.968]],["name/373",[44,28.147]],["parent/373",[258,4.968]],["name/374",[260,58.27]],["parent/374",[237,3.421]],["name/375",[261,58.27]],["parent/375",[237,3.421]],["name/376",[40,20.814]],["parent/376",[262,5.813]],["name/377",[42,24.37]],["parent/377",[263,5.303]],["name/378",[44,28.147]],["parent/378",[263,5.303]],["name/379",[264,58.27]],["parent/379",[0,4.717]],["name/380",[195,49.797]],["parent/380",[265,1.669]],["name/381",[266,58.27]],["parent/381",[265,1.669]],["name/382",[267,58.27]],["parent/382",[265,1.669]],["name/383",[268,58.27]],["parent/383",[265,1.669]],["name/384",[269,58.27]],["parent/384",[265,1.669]],["name/385",[270,58.27]],["parent/385",[265,1.669]],["name/386",[271,58.27]],["parent/386",[265,1.669]],["name/387",[40,20.814]],["parent/387",[272,5.813]],["name/388",[148,47.284]],["parent/388",[273,5.303]],["name/389",[274,49.797]],["parent/389",[273,5.303]],["name/390",[275,58.27]],["parent/390",[265,1.669]],["name/391",[276,58.27]],["parent/391",[265,1.669]],["name/392",[40,20.814]],["parent/392",[277,5.813]],["name/393",[169,43.606]],["parent/393",[278,4.517]],["name/394",[170,47.284]],["parent/394",[278,4.517]],["name/395",[167,47.284]],["parent/395",[278,4.517]],["name/396",[279,53.162]],["parent/396",[278,4.517]],["name/397",[280,53.162]],["parent/397",[278,4.517]],["name/398",[281,58.27]],["parent/398",[265,1.669]],["name/399",[40,20.814]],["parent/399",[282,5.813]],["name/400",[169,43.606]],["parent/400",[283,4.517]],["name/401",[170,47.284]],["parent/401",[283,4.517]],["name/402",[167,47.284]],["parent/402",[283,4.517]],["name/403",[279,53.162]],["parent/403",[283,4.517]],["name/404",[280,53.162]],["parent/404",[283,4.517]],["name/405",[284,58.27]],["parent/405",[265,1.669]],["name/406",[40,20.814]],["parent/406",[285,5.813]],["name/407",[286,58.27]],["parent/407",[287,5.303]],["name/408",[274,49.797]],["parent/408",[287,5.303]],["name/409",[288,53.162]],["parent/409",[265,1.669]],["name/410",[289,53.162]],["parent/410",[265,1.669]],["name/411",[290,58.27]],["parent/411",[265,1.669]],["name/412",[40,20.814]],["parent/412",[291,5.813]],["name/413",[292,58.27]],["parent/413",[293,5.813]],["name/414",[294,58.27]],["parent/414",[265,1.669]],["name/415",[40,20.814]],["parent/415",[295,5.813]],["name/416",[148,47.284]],["parent/416",[296,5.303]],["name/417",[274,49.797]],["parent/417",[296,5.303]],["name/418",[289,53.162]],["parent/418",[265,1.669]],["name/419",[288,53.162]],["parent/419",[297,4.517]],["name/420",[298,58.27]],["parent/420",[297,4.517]],["name/421",[299,58.27]],["parent/421",[297,4.517]],["name/422",[300,58.27]],["parent/422",[297,4.517]],["name/423",[301,58.27]],["parent/423",[297,4.517]],["name/424",[302,58.27]],["parent/424",[265,1.669]],["name/425",[163,47.284]],["parent/425",[265,1.669]],["name/426",[45,24.147]],["parent/426",[265,1.669]],["name/427",[178,47.284]],["parent/427",[265,1.669]],["name/428",[180,47.284]],["parent/428",[265,1.669]],["name/429",[181,53.162]],["parent/429",[303,4.517]],["name/430",[304,58.27]],["parent/430",[303,4.517]],["name/431",[305,58.27]],["parent/431",[303,4.517]],["name/432",[183,49.797]],["parent/432",[303,4.517]],["name/433",[184,53.162]],["parent/433",[303,4.517]],["name/434",[2,53.162]],["parent/434",[265,1.669]],["name/435",[3,53.162]],["parent/435",[265,1.669]],["name/436",[4,53.162]],["parent/436",[265,1.669]],["name/437",[5,53.162]],["parent/437",[265,1.669]],["name/438",[6,53.162]],["parent/438",[265,1.669]],["name/439",[7,53.162]],["parent/439",[265,1.669]],["name/440",[8,53.162]],["parent/440",[265,1.669]],["name/441",[9,53.162]],["parent/441",[265,1.669]],["name/442",[10,53.162]],["parent/442",[265,1.669]],["name/443",[11,53.162]],["parent/443",[265,1.669]],["name/444",[12,53.162]],["parent/444",[265,1.669]],["name/445",[13,53.162]],["parent/445",[265,1.669]],["name/446",[14,53.162]],["parent/446",[265,1.669]],["name/447",[15,53.162]],["parent/447",[265,1.669]],["name/448",[16,53.162]],["parent/448",[265,1.669]],["name/449",[17,53.162]],["parent/449",[265,1.669]],["name/450",[18,53.162]],["parent/450",[265,1.669]],["name/451",[19,53.162]],["parent/451",[265,1.669]],["name/452",[20,53.162]],["parent/452",[265,1.669]],["name/453",[21,53.162]],["parent/453",[265,1.669]],["name/454",[22,53.162]],["parent/454",[265,1.669]],["name/455",[23,53.162]],["parent/455",[265,1.669]],["name/456",[24,53.162]],["parent/456",[265,1.669]],["name/457",[25,53.162]],["parent/457",[265,1.669]],["name/458",[26,53.162]],["parent/458",[265,1.669]],["name/459",[27,53.162]],["parent/459",[265,1.669]],["name/460",[28,53.162]],["parent/460",[265,1.669]],["name/461",[29,53.162]],["parent/461",[265,1.669]],["name/462",[30,53.162]],["parent/462",[265,1.669]],["name/463",[31,53.162]],["parent/463",[265,1.669]],["name/464",[32,53.162]],["parent/464",[265,1.669]],["name/465",[33,53.162]],["parent/465",[265,1.669]],["name/466",[34,53.162]],["parent/466",[265,1.669]],["name/467",[35,53.162]],["parent/467",[265,1.669]],["name/468",[36,53.162]],["parent/468",[265,1.669]],["name/469",[37,53.162]],["parent/469",[265,1.669]],["name/470",[38,53.162]],["parent/470",[265,1.669]],["name/471",[39,53.162]],["parent/471",[265,1.669]],["name/472",[46,47.284]],["parent/472",[265,1.669]],["name/473",[51,53.162]],["parent/473",[265,1.669]],["name/474",[55,53.162]],["parent/474",[265,1.669]],["name/475",[59,53.162]],["parent/475",[265,1.669]],["name/476",[63,53.162]],["parent/476",[265,1.669]],["name/477",[66,53.162]],["parent/477",[265,1.669]],["name/478",[70,53.162]],["parent/478",[265,1.669]],["name/479",[73,53.162]],["parent/479",[265,1.669]],["name/480",[76,53.162]],["parent/480",[265,1.669]],["name/481",[79,53.162]],["parent/481",[265,1.669]],["name/482",[82,53.162]],["parent/482",[265,1.669]],["name/483",[85,53.162]],["parent/483",[265,1.669]],["name/484",[88,53.162]],["parent/484",[265,1.669]],["name/485",[91,53.162]],["parent/485",[265,1.669]],["name/486",[94,53.162]],["parent/486",[265,1.669]],["name/487",[97,53.162]],["parent/487",[265,1.669]],["name/488",[100,53.162]],["parent/488",[265,1.669]],["name/489",[103,53.162]],["parent/489",[265,1.669]],["name/490",[106,53.162]],["parent/490",[265,1.669]],["name/491",[110,53.162]],["parent/491",[265,1.669]],["name/492",[113,53.162]],["parent/492",[265,1.669]],["name/493",[116,53.162]],["parent/493",[265,1.669]],["name/494",[120,53.162]],["parent/494",[265,1.669]],["name/495",[123,53.162]],["parent/495",[265,1.669]],["name/496",[126,53.162]],["parent/496",[265,1.669]],["name/497",[129,53.162]],["parent/497",[265,1.669]],["name/498",[132,53.162]],["parent/498",[265,1.669]],["name/499",[135,53.162]],["parent/499",[265,1.669]],["name/500",[138,53.162]],["parent/500",[265,1.669]],["name/501",[143,53.162]],["parent/501",[265,1.669]],["name/502",[148,47.284]],["parent/502",[265,1.669]],["name/503",[149,53.162]],["parent/503",[265,1.669]],["name/504",[150,47.284]],["parent/504",[265,1.669]],["name/505",[153,53.162]],["parent/505",[265,1.669]],["name/506",[156,53.162]],["parent/506",[265,1.669]],["name/507",[160,53.162]],["parent/507",[265,1.669]]],"invertedIndex":[["__type",{"_index":40,"name":{"40":{},"45":{},"51":{},"56":{},"63":{},"69":{},"77":{},"83":{},"90":{},"97":{},"104":{},"109":{},"114":{},"118":{},"122":{},"126":{},"132":{},"137":{},"142":{},"146":{},"151":{},"155":{},"159":{},"166":{},"172":{},"179":{},"186":{},"191":{},"196":{},"201":{},"208":{},"219":{},"224":{},"229":{},"239":{},"241":{},"246":{},"251":{},"259":{},"271":{},"277":{},"279":{},"293":{},"299":{},"305":{},"311":{},"316":{},"321":{},"326":{},"331":{},"336":{},"349":{},"353":{},"359":{},"366":{},"370":{},"376":{},"387":{},"392":{},"399":{},"406":{},"412":{},"415":{}},"parent":{}}],["abbreviation",{"_index":217,"name":{"307":{}},"parent":{}}],["abbreviationvalue",{"_index":227,"name":{"325":{}},"parent":{}}],["activecharacter",{"_index":110,"name":{"150":{},"491":{}},"parent":{}}],["alignmenttab",{"_index":103,"name":{"141":{},"489":{}},"parent":{}}],["amsmathtextcommand",{"_index":51,"name":{"50":{},"473":{}},"parent":{}}],["arg",{"_index":54,"name":{"53":{},"73":{},"129":{},"134":{},"139":{},"182":{}},"parent":{}}],["args",{"_index":50,"name":{"48":{},"60":{},"86":{},"93":{},"100":{},"175":{}},"parent":{}}],["astpreamble",{"_index":156,"name":{"228":{},"506":{}},"parent":{}}],["astroot",{"_index":153,"name":{"223":{},"505":{}},"parent":{}}],["bibtexast",{"_index":233,"name":{"335":{}},"parent":{}}],["bibtexparser",{"_index":194,"name":{"280":{}},"parent":{}}],["child",{"_index":299,"name":{"421":{}},"parent":{}}],["column",{"_index":170,"name":{"244":{},"249":{},"394":{},"401":{}},"parent":{}}],["command",{"_index":46,"name":{"44":{},"357":{},"364":{},"472":{}},"parent":{}}],["commandparameter",{"_index":106,"name":{"145":{},"490":{}},"parent":{}}],["comment",{"_index":150,"name":{"218":{},"227":{},"232":{},"504":{}},"parent":{}}],["concatvalue",{"_index":230,"name":{"330":{}},"parent":{}}],["constructor",{"_index":174,"name":{"252":{},"260":{}},"parent":{}}],["content",{"_index":44,"name":{"42":{},"74":{},"87":{},"94":{},"101":{},"106":{},"111":{},"163":{},"169":{},"176":{},"183":{},"188":{},"193":{},"198":{},"205":{},"214":{},"221":{},"226":{},"231":{},"301":{},"313":{},"318":{},"323":{},"328":{},"333":{},"337":{},"351":{},"368":{},"373":{},"378":{}},"parent":{}}],["defcommand",{"_index":55,"name":{"55":{},"474":{}},"parent":{}}],["displaymath",{"_index":132,"name":{"190":{},"498":{}},"parent":{}}],["element",{"_index":149,"name":{"217":{},"503":{}},"parent":{}}],["enablecomment",{"_index":304,"name":{"430":{}},"parent":{}}],["enablemathcharacterlocation",{"_index":305,"name":{"431":{}},"parent":{}}],["end",{"_index":171,"name":{"245":{}},"parent":{}}],["entry",{"_index":209,"name":{"298":{}},"parent":{}}],["entrytype",{"_index":211,"name":{"300":{},"306":{},"312":{}},"parent":{}}],["environment",{"_index":70,"name":{"82":{},"478":{}},"parent":{}}],["escape",{"_index":119,"name":{"162":{}},"parent":{}}],["expected",{"_index":176,"name":{"254":{},"262":{}},"parent":{}}],["field",{"_index":204,"name":{"292":{}},"parent":{}}],["fieldvalue",{"_index":208,"name":{"297":{}},"parent":{}}],["filestack",{"_index":243,"name":{"348":{}},"parent":{}}],["find",{"_index":267,"name":{"382":{}},"parent":{}}],["findall",{"_index":268,"name":{"383":{}},"parent":{}}],["findallsequences",{"_index":269,"name":{"384":{}},"parent":{}}],["findnodeat",{"_index":270,"name":{"385":{}},"parent":{}}],["findresult",{"_index":271,"name":{"386":{}},"parent":{}}],["found",{"_index":177,"name":{"255":{},"263":{}},"parent":{}}],["group",{"_index":79,"name":{"103":{},"481":{}},"parent":{}}],["hasargsarray",{"_index":35,"name":{"35":{},"467":{}},"parent":{}}],["hascontent",{"_index":33,"name":{"33":{},"465":{}},"parent":{}}],["hascontentarray",{"_index":34,"name":{"34":{},"466":{}},"parent":{}}],["hrefcommand",{"_index":63,"name":{"68":{},"476":{}},"parent":{}}],["ignore",{"_index":113,"name":{"154":{},"492":{}},"parent":{}}],["includeend",{"_index":280,"name":{"397":{},"404":{}},"parent":{}}],["includestart",{"_index":279,"name":{"396":{},"403":{}},"parent":{}}],["inlienmath",{"_index":129,"name":{"185":{},"497":{}},"parent":{}}],["internalkey",{"_index":213,"name":{"302":{}},"parent":{}}],["isabbreviationvalue",{"_index":202,"name":{"290":{}},"parent":{}}],["isactivecharacter",{"_index":22,"name":{"22":{},"454":{}},"parent":{}}],["isalignmenttab",{"_index":20,"name":{"20":{},"452":{}},"parent":{}}],["isamsmathtextcommand",{"_index":4,"name":{"4":{},"436":{}},"parent":{}}],["isastpreamble",{"_index":38,"name":{"38":{},"470":{}},"parent":{}}],["isastroot",{"_index":37,"name":{"37":{},"469":{}},"parent":{}}],["iscommand",{"_index":3,"name":{"3":{},"435":{}},"parent":{}}],["iscommandparameter",{"_index":21,"name":{"21":{},"453":{}},"parent":{}}],["isconcatvalue",{"_index":203,"name":{"291":{}},"parent":{}}],["isdefcommand",{"_index":5,"name":{"5":{},"437":{}},"parent":{}}],["isdisplaymath",{"_index":29,"name":{"29":{},"461":{}},"parent":{}}],["iselement",{"_index":36,"name":{"36":{},"468":{}},"parent":{}}],["isentry",{"_index":197,"name":{"285":{}},"parent":{}}],["isenvironment",{"_index":9,"name":{"9":{},"441":{}},"parent":{}}],["isfilestack",{"_index":238,"name":{"343":{}},"parent":{}}],["isgroup",{"_index":12,"name":{"12":{},"444":{}},"parent":{}}],["ishrefcommand",{"_index":7,"name":{"7":{},"439":{}},"parent":{}}],["isignore",{"_index":23,"name":{"23":{},"455":{}},"parent":{}}],["isinlienmath",{"_index":28,"name":{"28":{},"460":{}},"parent":{}}],["islabelcommand",{"_index":8,"name":{"8":{},"440":{}},"parent":{}}],["islatexmkerror",{"_index":240,"name":{"345":{}},"parent":{}}],["islinebreak",{"_index":17,"name":{"17":{},"449":{}},"parent":{}}],["islocation",{"_index":162,"name":{"236":{}},"parent":{}}],["islogtext",{"_index":241,"name":{"346":{}},"parent":{}}],["islstlisting",{"_index":27,"name":{"27":{},"459":{}},"parent":{}}],["ismatchingdelimiters",{"_index":31,"name":{"31":{},"463":{}},"parent":{}}],["ismathcharacter",{"_index":30,"name":{"30":{},"462":{}},"parent":{}}],["ismathdelimiters",{"_index":32,"name":{"32":{},"464":{}},"parent":{}}],["ismathenv",{"_index":10,"name":{"10":{},"442":{}},"parent":{}}],["ismathenvaligned",{"_index":11,"name":{"11":{},"443":{}},"parent":{}}],["isminted",{"_index":26,"name":{"26":{},"458":{}},"parent":{}}],["isnumbervalue",{"_index":201,"name":{"289":{}},"parent":{}}],["isoptionalarg",{"_index":13,"name":{"13":{},"445":{}},"parent":{}}],["ispagenumber",{"_index":242,"name":{"347":{}},"parent":{}}],["isparbreak",{"_index":14,"name":{"14":{},"446":{}},"parent":{}}],["ispreambleentry",{"_index":199,"name":{"287":{}},"parent":{}}],["issoftbreak",{"_index":16,"name":{"16":{},"448":{}},"parent":{}}],["isspace",{"_index":15,"name":{"15":{},"447":{}},"parent":{}}],["isstringentry",{"_index":198,"name":{"286":{}},"parent":{}}],["issubscript",{"_index":19,"name":{"19":{},"451":{}},"parent":{}}],["issuperscript",{"_index":18,"name":{"18":{},"450":{}},"parent":{}}],["issyntaxerror",{"_index":163,"name":{"237":{},"282":{},"340":{},"425":{}},"parent":{}}],["istexerror",{"_index":239,"name":{"344":{}},"parent":{}}],["istextstring",{"_index":2,"name":{"2":{},"434":{}},"parent":{}}],["istextstringvalue",{"_index":200,"name":{"288":{}},"parent":{}}],["isurlcommand",{"_index":6,"name":{"6":{},"438":{}},"parent":{}}],["isverb",{"_index":24,"name":{"24":{},"456":{}},"parent":{}}],["isverbatim",{"_index":25,"name":{"25":{},"457":{}},"parent":{}}],["kind",{"_index":42,"name":{"41":{},"46":{},"52":{},"57":{},"64":{},"70":{},"78":{},"84":{},"91":{},"98":{},"105":{},"110":{},"115":{},"119":{},"123":{},"127":{},"133":{},"138":{},"143":{},"147":{},"152":{},"156":{},"160":{},"167":{},"173":{},"180":{},"187":{},"192":{},"197":{},"202":{},"209":{},"220":{},"225":{},"230":{},"317":{},"322":{},"327":{},"332":{},"350":{},"354":{},"360":{},"367":{},"371":{},"377":{}},"parent":{}}],["label",{"_index":69,"name":{"80":{}},"parent":{}}],["labelcommand",{"_index":66,"name":{"76":{},"477":{}},"parent":{}}],["latex/latex_parser_types",{"_index":1,"name":{"1":{}},"parent":{"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"44":{},"50":{},"55":{},"62":{},"68":{},"76":{},"82":{},"89":{},"96":{},"103":{},"108":{},"113":{},"117":{},"121":{},"125":{},"131":{},"136":{},"141":{},"145":{},"150":{},"154":{},"158":{},"165":{},"171":{},"178":{},"185":{},"190":{},"195":{},"200":{},"207":{},"216":{},"217":{},"218":{},"223":{},"228":{},"234":{}}}],["latex/latex_parser_types.activecharacter",{"_index":111,"name":{},"parent":{"151":{}}}],["latex/latex_parser_types.activecharacter.__type",{"_index":112,"name":{},"parent":{"152":{},"153":{}}}],["latex/latex_parser_types.alignmenttab",{"_index":104,"name":{},"parent":{"142":{}}}],["latex/latex_parser_types.alignmenttab.__type",{"_index":105,"name":{},"parent":{"143":{},"144":{}}}],["latex/latex_parser_types.amsmathtextcommand",{"_index":52,"name":{},"parent":{"51":{}}}],["latex/latex_parser_types.amsmathtextcommand.__type",{"_index":53,"name":{},"parent":{"52":{},"53":{},"54":{}}}],["latex/latex_parser_types.astpreamble",{"_index":157,"name":{},"parent":{"229":{}}}],["latex/latex_parser_types.astpreamble.__type",{"_index":158,"name":{},"parent":{"230":{},"231":{},"232":{},"233":{}}}],["latex/latex_parser_types.astroot",{"_index":154,"name":{},"parent":{"224":{}}}],["latex/latex_parser_types.astroot.__type",{"_index":155,"name":{},"parent":{"225":{},"226":{},"227":{}}}],["latex/latex_parser_types.command",{"_index":47,"name":{},"parent":{"45":{}}}],["latex/latex_parser_types.command.__type",{"_index":48,"name":{},"parent":{"46":{},"47":{},"48":{},"49":{}}}],["latex/latex_parser_types.commandparameter",{"_index":107,"name":{},"parent":{"146":{}}}],["latex/latex_parser_types.commandparameter.__type",{"_index":108,"name":{},"parent":{"147":{},"148":{},"149":{}}}],["latex/latex_parser_types.comment",{"_index":151,"name":{},"parent":{"219":{}}}],["latex/latex_parser_types.comment.__type",{"_index":152,"name":{},"parent":{"220":{},"221":{},"222":{}}}],["latex/latex_parser_types.defcommand",{"_index":56,"name":{},"parent":{"56":{}}}],["latex/latex_parser_types.defcommand.__type",{"_index":57,"name":{},"parent":{"57":{},"58":{},"59":{},"60":{},"61":{}}}],["latex/latex_parser_types.displaymath",{"_index":133,"name":{},"parent":{"191":{}}}],["latex/latex_parser_types.displaymath.__type",{"_index":134,"name":{},"parent":{"192":{},"193":{},"194":{}}}],["latex/latex_parser_types.environment",{"_index":71,"name":{},"parent":{"83":{}}}],["latex/latex_parser_types.environment.__type",{"_index":72,"name":{},"parent":{"84":{},"85":{},"86":{},"87":{},"88":{}}}],["latex/latex_parser_types.group",{"_index":80,"name":{},"parent":{"104":{}}}],["latex/latex_parser_types.group.__type",{"_index":81,"name":{},"parent":{"105":{},"106":{},"107":{}}}],["latex/latex_parser_types.hrefcommand",{"_index":64,"name":{},"parent":{"69":{}}}],["latex/latex_parser_types.hrefcommand.__type",{"_index":65,"name":{},"parent":{"70":{},"71":{},"72":{},"73":{},"74":{},"75":{}}}],["latex/latex_parser_types.ignore",{"_index":114,"name":{},"parent":{"155":{}}}],["latex/latex_parser_types.ignore.__type",{"_index":115,"name":{},"parent":{"156":{},"157":{}}}],["latex/latex_parser_types.inlienmath",{"_index":130,"name":{},"parent":{"186":{}}}],["latex/latex_parser_types.inlienmath.__type",{"_index":131,"name":{},"parent":{"187":{},"188":{},"189":{}}}],["latex/latex_parser_types.labelcommand",{"_index":67,"name":{},"parent":{"77":{}}}],["latex/latex_parser_types.labelcommand.__type",{"_index":68,"name":{},"parent":{"78":{},"79":{},"80":{},"81":{}}}],["latex/latex_parser_types.linebreak",{"_index":95,"name":{},"parent":{"126":{}}}],["latex/latex_parser_types.linebreak.__type",{"_index":96,"name":{},"parent":{"127":{},"128":{},"129":{},"130":{}}}],["latex/latex_parser_types.lstlisting",{"_index":127,"name":{},"parent":{"179":{}}}],["latex/latex_parser_types.lstlisting.__type",{"_index":128,"name":{},"parent":{"180":{},"181":{},"182":{},"183":{},"184":{}}}],["latex/latex_parser_types.matchingdelimiters",{"_index":139,"name":{},"parent":{"201":{}}}],["latex/latex_parser_types.matchingdelimiters.__type",{"_index":140,"name":{},"parent":{"202":{},"203":{},"204":{},"205":{},"206":{}}}],["latex/latex_parser_types.mathcharacter",{"_index":136,"name":{},"parent":{"196":{}}}],["latex/latex_parser_types.mathcharacter.__type",{"_index":137,"name":{},"parent":{"197":{},"198":{},"199":{}}}],["latex/latex_parser_types.mathdelimiters",{"_index":144,"name":{},"parent":{"208":{}}}],["latex/latex_parser_types.mathdelimiters.__type",{"_index":145,"name":{},"parent":{"209":{},"210":{},"211":{},"212":{},"213":{},"214":{},"215":{}}}],["latex/latex_parser_types.mathenv",{"_index":74,"name":{},"parent":{"90":{}}}],["latex/latex_parser_types.mathenv.__type",{"_index":75,"name":{},"parent":{"91":{},"92":{},"93":{},"94":{},"95":{}}}],["latex/latex_parser_types.mathenvaligned",{"_index":77,"name":{},"parent":{"97":{}}}],["latex/latex_parser_types.mathenvaligned.__type",{"_index":78,"name":{},"parent":{"98":{},"99":{},"100":{},"101":{},"102":{}}}],["latex/latex_parser_types.minted",{"_index":124,"name":{},"parent":{"172":{}}}],["latex/latex_parser_types.minted.__type",{"_index":125,"name":{},"parent":{"173":{},"174":{},"175":{},"176":{},"177":{}}}],["latex/latex_parser_types.optionalarg",{"_index":83,"name":{},"parent":{"109":{}}}],["latex/latex_parser_types.optionalarg.__type",{"_index":84,"name":{},"parent":{"110":{},"111":{},"112":{}}}],["latex/latex_parser_types.parbreak",{"_index":86,"name":{},"parent":{"114":{}}}],["latex/latex_parser_types.parbreak.__type",{"_index":87,"name":{},"parent":{"115":{},"116":{}}}],["latex/latex_parser_types.softbreak",{"_index":92,"name":{},"parent":{"122":{}}}],["latex/latex_parser_types.softbreak.__type",{"_index":93,"name":{},"parent":{"123":{},"124":{}}}],["latex/latex_parser_types.space",{"_index":89,"name":{},"parent":{"118":{}}}],["latex/latex_parser_types.space.__type",{"_index":90,"name":{},"parent":{"119":{},"120":{}}}],["latex/latex_parser_types.subscript",{"_index":101,"name":{},"parent":{"137":{}}}],["latex/latex_parser_types.subscript.__type",{"_index":102,"name":{},"parent":{"138":{},"139":{},"140":{}}}],["latex/latex_parser_types.superscript",{"_index":98,"name":{},"parent":{"132":{}}}],["latex/latex_parser_types.superscript.__type",{"_index":99,"name":{},"parent":{"133":{},"134":{},"135":{}}}],["latex/latex_parser_types.textstring",{"_index":41,"name":{},"parent":{"40":{}}}],["latex/latex_parser_types.textstring.__type",{"_index":43,"name":{},"parent":{"41":{},"42":{},"43":{}}}],["latex/latex_parser_types.urlcommand",{"_index":60,"name":{},"parent":{"63":{}}}],["latex/latex_parser_types.urlcommand.__type",{"_index":61,"name":{},"parent":{"64":{},"65":{},"66":{},"67":{}}}],["latex/latex_parser_types.verb",{"_index":117,"name":{},"parent":{"159":{}}}],["latex/latex_parser_types.verb.__type",{"_index":118,"name":{},"parent":{"160":{},"161":{},"162":{},"163":{},"164":{}}}],["latex/latex_parser_types.verbatim",{"_index":121,"name":{},"parent":{"166":{}}}],["latex/latex_parser_types.verbatim.__type",{"_index":122,"name":{},"parent":{"167":{},"168":{},"169":{},"170":{}}}],["latexast",{"_index":160,"name":{"234":{},"507":{}},"parent":{}}],["latexlogast",{"_index":261,"name":{"375":{}},"parent":{}}],["latexlogelement",{"_index":260,"name":{"374":{}},"parent":{}}],["latexlogparser",{"_index":236,"name":{"338":{}},"parent":{}}],["latexmkerror",{"_index":249,"name":{"358":{}},"parent":{}}],["latexparser",{"_index":264,"name":{"379":{}},"parent":{}}],["lcommand",{"_index":146,"name":{"210":{}},"parent":{}}],["left",{"_index":141,"name":{"203":{},"212":{}},"parent":{}}],["line",{"_index":169,"name":{"243":{},"248":{},"356":{},"363":{},"393":{},"400":{}},"parent":{}}],["linebreak",{"_index":94,"name":{"125":{},"486":{}},"parent":{}}],["location",{"_index":45,"name":{"43":{},"49":{},"54":{},"61":{},"67":{},"75":{},"81":{},"88":{},"95":{},"102":{},"107":{},"112":{},"116":{},"120":{},"124":{},"130":{},"135":{},"140":{},"144":{},"149":{},"153":{},"157":{},"164":{},"170":{},"177":{},"184":{},"189":{},"194":{},"199":{},"206":{},"215":{},"222":{},"238":{},"256":{},"264":{},"275":{},"296":{},"303":{},"309":{},"314":{},"319":{},"324":{},"329":{},"334":{},"426":{}},"parent":{}}],["logtext",{"_index":253,"name":{"365":{}},"parent":{}}],["lstlisting",{"_index":126,"name":{"178":{},"496":{}},"parent":{}}],["main",{"_index":0,"name":{"0":{}},"parent":{"280":{},"338":{},"379":{}}}],["main.bibtexparser",{"_index":196,"name":{},"parent":{"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"291":{},"292":{},"297":{},"298":{},"304":{},"310":{},"315":{},"320":{},"325":{},"330":{},"335":{}}}],["main.bibtexparser.abbreviationvalue",{"_index":228,"name":{},"parent":{"326":{}}}],["main.bibtexparser.abbreviationvalue.__type",{"_index":229,"name":{},"parent":{"327":{},"328":{},"329":{}}}],["main.bibtexparser.bibtexast",{"_index":234,"name":{},"parent":{"336":{}}}],["main.bibtexparser.bibtexast.__type",{"_index":235,"name":{},"parent":{"337":{}}}],["main.bibtexparser.concatvalue",{"_index":231,"name":{},"parent":{"331":{}}}],["main.bibtexparser.concatvalue.__type",{"_index":232,"name":{},"parent":{"332":{},"333":{},"334":{}}}],["main.bibtexparser.entry",{"_index":210,"name":{},"parent":{"299":{}}}],["main.bibtexparser.entry.__type",{"_index":212,"name":{},"parent":{"300":{},"301":{},"302":{},"303":{}}}],["main.bibtexparser.field",{"_index":205,"name":{},"parent":{"293":{}}}],["main.bibtexparser.field.__type",{"_index":206,"name":{},"parent":{"294":{},"295":{},"296":{}}}],["main.bibtexparser.numbervalue",{"_index":225,"name":{},"parent":{"321":{}}}],["main.bibtexparser.numbervalue.__type",{"_index":226,"name":{},"parent":{"322":{},"323":{},"324":{}}}],["main.bibtexparser.preambleentry",{"_index":219,"name":{},"parent":{"311":{}}}],["main.bibtexparser.preambleentry.__type",{"_index":220,"name":{},"parent":{"312":{},"313":{},"314":{}}}],["main.bibtexparser.stringentry",{"_index":215,"name":{},"parent":{"305":{}}}],["main.bibtexparser.stringentry.__type",{"_index":216,"name":{},"parent":{"306":{},"307":{},"308":{},"309":{}}}],["main.bibtexparser.textstringvalue",{"_index":222,"name":{},"parent":{"316":{}}}],["main.bibtexparser.textstringvalue.__type",{"_index":223,"name":{},"parent":{"317":{},"318":{},"319":{}}}],["main.latexlogparser",{"_index":237,"name":{},"parent":{"339":{},"340":{},"341":{},"342":{},"343":{},"344":{},"345":{},"346":{},"347":{},"348":{},"352":{},"358":{},"365":{},"369":{},"374":{},"375":{}}}],["main.latexlogparser.filestack",{"_index":244,"name":{},"parent":{"349":{}}}],["main.latexlogparser.filestack.__type",{"_index":245,"name":{},"parent":{"350":{},"351":{}}}],["main.latexlogparser.latexlogast",{"_index":262,"name":{},"parent":{"376":{}}}],["main.latexlogparser.latexlogast.__type",{"_index":263,"name":{},"parent":{"377":{},"378":{}}}],["main.latexlogparser.latexmkerror",{"_index":250,"name":{},"parent":{"359":{}}}],["main.latexlogparser.latexmkerror.__type",{"_index":251,"name":{},"parent":{"360":{},"361":{},"362":{},"363":{},"364":{}}}],["main.latexlogparser.logtext",{"_index":254,"name":{},"parent":{"366":{}}}],["main.latexlogparser.logtext.__type",{"_index":255,"name":{},"parent":{"367":{},"368":{}}}],["main.latexlogparser.pagenumber",{"_index":257,"name":{},"parent":{"370":{}}}],["main.latexlogparser.pagenumber.__type",{"_index":258,"name":{},"parent":{"371":{},"372":{},"373":{}}}],["main.latexlogparser.texerror",{"_index":247,"name":{},"parent":{"353":{}}}],["main.latexlogparser.texerror.__type",{"_index":248,"name":{},"parent":{"354":{},"355":{},"356":{},"357":{}}}],["main.latexparser",{"_index":265,"name":{},"parent":{"380":{},"381":{},"382":{},"383":{},"384":{},"385":{},"386":{},"390":{},"391":{},"398":{},"405":{},"409":{},"410":{},"411":{},"414":{},"418":{},"424":{},"425":{},"426":{},"427":{},"428":{},"434":{},"435":{},"436":{},"437":{},"438":{},"439":{},"440":{},"441":{},"442":{},"443":{},"444":{},"445":{},"446":{},"447":{},"448":{},"449":{},"450":{},"451":{},"452":{},"453":{},"454":{},"455":{},"456":{},"457":{},"458":{},"459":{},"460":{},"461":{},"462":{},"463":{},"464":{},"465":{},"466":{},"467":{},"468":{},"469":{},"470":{},"471":{},"472":{},"473":{},"474":{},"475":{},"476":{},"477":{},"478":{},"479":{},"480":{},"481":{},"482":{},"483":{},"484":{},"485":{},"486":{},"487":{},"488":{},"489":{},"490":{},"491":{},"492":{},"493":{},"494":{},"495":{},"496":{},"497":{},"498":{},"499":{},"500":{},"501":{},"502":{},"503":{},"504":{},"505":{},"506":{},"507":{}}}],["main.latexparser.findresult",{"_index":272,"name":{},"parent":{"387":{}}}],["main.latexparser.findresult.__type",{"_index":273,"name":{},"parent":{"388":{},"389":{}}}],["main.latexparser.matchoptions",{"_index":291,"name":{},"parent":{"412":{}}}],["main.latexparser.matchoptions.__type",{"_index":293,"name":{},"parent":{"413":{}}}],["main.latexparser.matchresult",{"_index":295,"name":{},"parent":{"415":{}}}],["main.latexparser.matchresult.__type",{"_index":296,"name":{},"parent":{"416":{},"417":{}}}],["main.latexparser.parseroptions",{"_index":303,"name":{},"parent":{"429":{},"430":{},"431":{},"432":{},"433":{}}}],["main.latexparser.pattern",{"_index":297,"name":{},"parent":{"419":{},"420":{},"421":{},"422":{},"423":{}}}],["main.latexparser.positionlc",{"_index":277,"name":{},"parent":{"392":{}}}],["main.latexparser.positionlc.__type",{"_index":278,"name":{},"parent":{"393":{},"394":{},"395":{},"396":{},"397":{}}}],["main.latexparser.positionos",{"_index":282,"name":{},"parent":{"399":{}}}],["main.latexparser.positionos.__type",{"_index":283,"name":{},"parent":{"400":{},"401":{},"402":{},"403":{},"404":{}}}],["main.latexparser.sequenceresult",{"_index":285,"name":{},"parent":{"406":{}}}],["main.latexparser.sequenceresult.__type",{"_index":287,"name":{},"parent":{"407":{},"408":{}}}],["match",{"_index":300,"name":{"422":{}},"parent":{}}],["matchall",{"_index":301,"name":{"423":{}},"parent":{}}],["matchingdelimiters",{"_index":138,"name":{"200":{},"500":{}},"parent":{}}],["matchoptions",{"_index":290,"name":{"411":{}},"parent":{}}],["matchresult",{"_index":294,"name":{"414":{}},"parent":{}}],["mathcharacter",{"_index":135,"name":{"195":{},"499":{}},"parent":{}}],["mathdelimiters",{"_index":143,"name":{"207":{},"501":{}},"parent":{}}],["mathenv",{"_index":73,"name":{"89":{},"479":{}},"parent":{}}],["mathenvaligned",{"_index":76,"name":{"96":{},"480":{}},"parent":{}}],["message",{"_index":175,"name":{"253":{},"261":{},"355":{},"361":{}},"parent":{}}],["minted",{"_index":123,"name":{"171":{},"495":{}},"parent":{}}],["name",{"_index":49,"name":{"47":{},"58":{},"65":{},"71":{},"79":{},"85":{},"92":{},"99":{},"128":{},"161":{},"168":{},"174":{},"181":{},"257":{},"265":{},"294":{}},"parent":{}}],["nargs",{"_index":109,"name":{"148":{}},"parent":{}}],["node",{"_index":148,"name":{"216":{},"388":{},"416":{},"502":{}},"parent":{}}],["nodes",{"_index":286,"name":{"407":{}},"parent":{}}],["numbervalue",{"_index":224,"name":{"320":{}},"parent":{}}],["offset",{"_index":167,"name":{"242":{},"247":{},"395":{},"402":{}},"parent":{}}],["optionalarg",{"_index":82,"name":{"108":{},"482":{}},"parent":{}}],["page",{"_index":259,"name":{"372":{}},"parent":{}}],["pagenumber",{"_index":256,"name":{"369":{}},"parent":{}}],["parbreak",{"_index":85,"name":{"113":{},"483":{}},"parent":{}}],["parent",{"_index":274,"name":{"389":{},"408":{},"417":{}},"parent":{}}],["parentpattern",{"_index":298,"name":{"420":{}},"parent":{}}],["parse",{"_index":195,"name":{"281":{},"339":{},"380":{}},"parent":{}}],["parsepreamble",{"_index":266,"name":{"381":{}},"parent":{}}],["parseroptions",{"_index":180,"name":{"266":{},"283":{},"341":{},"428":{}},"parent":{}}],["path",{"_index":252,"name":{"362":{}},"parent":{}}],["pattern",{"_index":289,"name":{"410":{},"418":{}},"parent":{}}],["pegjs/pegjs_types",{"_index":161,"name":{"235":{}},"parent":{"236":{},"237":{},"238":{},"250":{},"258":{},"266":{},"270":{},"276":{}}}],["pegjs/pegjs_types.location",{"_index":164,"name":{},"parent":{"239":{}}}],["pegjs/pegjs_types.location.__type",{"_index":166,"name":{},"parent":{"240":{},"241":{},"245":{},"246":{}}}],["pegjs/pegjs_types.location.__type.__type",{"_index":168,"name":{},"parent":{"242":{},"243":{},"244":{},"247":{},"248":{},"249":{}}}],["pegjs/pegjs_types.parseroptions",{"_index":182,"name":{},"parent":{"267":{},"268":{},"269":{}}}],["pegjs/pegjs_types.syntaxerror",{"_index":179,"name":{},"parent":{"259":{},"260":{},"261":{},"262":{},"263":{},"264":{},"265":{}}}],["pegjs/pegjs_types.syntaxerrorbase",{"_index":173,"name":{},"parent":{"251":{},"252":{},"253":{},"254":{},"255":{},"256":{},"257":{}}}],["pegjs/pegjs_types.tracearg",{"_index":186,"name":{},"parent":{"271":{}}}],["pegjs/pegjs_types.tracearg.__type",{"_index":188,"name":{},"parent":{"272":{},"273":{},"274":{},"275":{}}}],["pegjs/pegjs_types.tracer",{"_index":191,"name":{},"parent":{"277":{}}}],["pegjs/pegjs_types.tracer.__type",{"_index":193,"name":{},"parent":{"278":{},"279":{}}}],["position",{"_index":275,"name":{"390":{}},"parent":{}}],["positionlc",{"_index":276,"name":{"391":{}},"parent":{}}],["positionos",{"_index":281,"name":{"398":{}},"parent":{}}],["preambleentry",{"_index":218,"name":{"310":{}},"parent":{}}],["rcommand",{"_index":147,"name":{"211":{}},"parent":{}}],["rest",{"_index":159,"name":{"233":{}},"parent":{}}],["result",{"_index":190,"name":{"274":{}},"parent":{}}],["right",{"_index":142,"name":{"204":{},"213":{}},"parent":{}}],["rule",{"_index":189,"name":{"273":{}},"parent":{}}],["sequenceresult",{"_index":284,"name":{"405":{}},"parent":{}}],["softbreak",{"_index":91,"name":{"121":{},"485":{}},"parent":{}}],["space",{"_index":88,"name":{"117":{},"484":{}},"parent":{}}],["start",{"_index":165,"name":{"240":{}},"parent":{}}],["startrule",{"_index":181,"name":{"267":{},"429":{}},"parent":{}}],["stringentry",{"_index":214,"name":{"304":{}},"parent":{}}],["stringify",{"_index":302,"name":{"424":{}},"parent":{}}],["subscript",{"_index":100,"name":{"136":{},"488":{}},"parent":{}}],["superscript",{"_index":97,"name":{"131":{},"487":{}},"parent":{}}],["syntaxerror",{"_index":178,"name":{"258":{},"284":{},"342":{},"427":{}},"parent":{}}],["syntaxerrorbase",{"_index":172,"name":{"250":{}},"parent":{}}],["texerror",{"_index":246,"name":{"352":{}},"parent":{}}],["textstring",{"_index":39,"name":{"39":{},"471":{}},"parent":{}}],["textstringvalue",{"_index":221,"name":{"315":{}},"parent":{}}],["timeout",{"_index":184,"name":{"269":{},"433":{}},"parent":{}}],["token",{"_index":58,"name":{"59":{}},"parent":{}}],["trace",{"_index":192,"name":{"278":{}},"parent":{}}],["tracearg",{"_index":185,"name":{"270":{}},"parent":{}}],["tracer",{"_index":183,"name":{"268":{},"276":{},"432":{}},"parent":{}}],["traverseall",{"_index":292,"name":{"413":{}},"parent":{}}],["type",{"_index":187,"name":{"272":{}},"parent":{}}],["typeguard",{"_index":288,"name":{"409":{},"419":{}},"parent":{}}],["url",{"_index":62,"name":{"66":{},"72":{}},"parent":{}}],["urlcommand",{"_index":59,"name":{"62":{},"475":{}},"parent":{}}],["value",{"_index":207,"name":{"295":{},"308":{}},"parent":{}}],["verb",{"_index":116,"name":{"158":{},"493":{}},"parent":{}}],["verbatim",{"_index":120,"name":{"165":{},"494":{}},"parent":{}}]],"pipeline":[]}} | 157,310 | 157,310 | 0.68974 |
b78eb725882d0c2c1e37fd8d02cd1c7256b70842 | 364 | js | JavaScript | src/swapLegacy/redux/index.js | bdcorps/airswap.js | 1d8391d50c46d3d2e981c8da58315e72a7c8b2d3 | [
"Apache-2.0"
] | 24 | 2019-06-01T06:50:47.000Z | 2021-11-08T23:49:55.000Z | src/swapLegacy/redux/index.js | panda6853/BSwap.js | e5fe4c5a01f743dd8a995812fd112625b668ae5f | [
"Apache-2.0"
] | 42 | 2019-06-12T17:10:26.000Z | 2020-10-07T16:20:57.000Z | src/swapLegacy/redux/index.js | panda6853/BSwap.js | e5fe4c5a01f743dd8a995812fd112625b668ae5f | [
"Apache-2.0"
] | 20 | 2019-05-16T05:40:51.000Z | 2021-12-06T22:36:40.000Z | import middleware from './middleware'
import reducers, { selectors as reducerSelectors } from './reducers'
import * as eventTrackingSelectors from './eventTrackingSelectors'
import * as derivedSelectors from './selectors'
const selectors = {
...derivedSelectors,
...eventTrackingSelectors,
...reducerSelectors,
}
export { middleware, reducers, selectors }
| 28 | 68 | 0.760989 |
b78efe5e5b359221412e38eba44303ec0183e4ba | 19,696 | js | JavaScript | Chapter12/Start/server/test/app.test.js | PacktPublishing/-Mastering-React-Test-Driven-Development-Second-Edition | 655afd6ef28c2b3e19304e1455ace651a780a594 | [
"MIT"
] | 5 | 2021-11-17T17:49:48.000Z | 2022-01-02T16:21:49.000Z | Chapter12/Start/server/test/app.test.js | PacktPublishing/-Mastering-React-Test-Driven-Development-Second-Edition | 655afd6ef28c2b3e19304e1455ace651a780a594 | [
"MIT"
] | null | null | null | Chapter12/Start/server/test/app.test.js | PacktPublishing/-Mastering-React-Test-Driven-Development-Second-Edition | 655afd6ef28c2b3e19304e1455ace651a780a594 | [
"MIT"
] | 4 | 2022-01-02T16:22:02.000Z | 2022-03-31T18:19:34.000Z | import request from "supertest";
import { buildApp } from "../src/app";
import { Appointments } from "../src/appointments";
import { Customers } from "../src/customers";
describe("app", () => {
let originalFunctions = {};
function app(customers = [], appointments = []) {
return buildApp(customers, appointments);
}
function spyOn(object, method, spy) {
originalFunctions[object] = originalFunctions[object] || {};
originalFunctions[object][method] = object[method];
object[method] = spy;
}
function removeSpy(object, method) {
object[method] = originalFunctions[object][method];
}
const appointment = {
startsAt: new Date().setHours(9, 0, 0, 0),
service: "Blow-dry",
};
it("serves an index page", async () => {
await request(app()).get("/").expect(200);
});
describe("POST customers", () => {
let addSpy = jest.fn();
let isValidSpy = jest.fn();
beforeEach(() => {
spyOn(Customers.prototype, "add", addSpy);
spyOn(Customers.prototype, "isValid", isValidSpy);
isValidSpy.mockReturnValue(true);
});
afterEach(() => {
removeSpy(Customers.prototype, "add");
removeSpy(Customers.prototype, "isValidSpy");
});
const customer = {
firstName: "Ashley",
lastName: "Jones",
phoneNumber: "123456789",
};
it("saves a customer", async () => {
await request(app())
.post("/customers")
.send(customer)
.expect(201);
});
it("passes customer to customer module", async () => {
await request(app()).post("/customers").send(customer);
expect(addSpy).toBeCalledWith(customer);
});
it("returns the result of the add call", async () => {
const result = { id: 123 };
addSpy.mockReturnValue(result);
await request(app())
.post("/customers")
.then((response) => {
expect(response.body).toEqual(result);
});
});
describe("invalid customer", () => {
let error = { field: "error" };
let errorsSpy = jest.fn();
beforeEach(() => {
spyOn(Customers.prototype, "errors", errorsSpy);
isValidSpy.mockReturnValue(false);
errorsSpy.mockReturnValue(error);
});
afterEach(() => {
removeSpy(Customers.prototype, "errors");
});
it("returns 422 for an invalid customer", async () => {
await request(app())
.post("/customers")
.send(customer)
.expect(422);
});
it("calls errors for an invalid customer", async () => {
await request(app()).post("/customers").send(customer);
expect(errorsSpy).toBeCalledWith(customer);
});
it("returns errors", async () => {
await request(app())
.post("/customers")
.send(customer)
.then((response) =>
expect(response.body).toEqual({
errors: { field: "error" },
})
);
});
});
});
describe("availableTimeSlots", () => {
let timeSlotSpy = jest.fn();
beforeEach(() => {
spyOn(
Appointments.prototype,
"getTimeSlots",
timeSlotSpy
);
});
afterEach(() => {
removeSpy(Appointments.prototype, "getTimeSlots");
});
it("gets appointments", async () => {
await request(app())
.get("/availableTimeSlots")
.expect(200);
});
it("returns all time slots from appointments", async () => {
const timeSlots = [1, 2, 3];
timeSlotSpy.mockReturnValueOnce(timeSlots);
await request(app())
.get("/availableTimeSlots")
.then((response) => {
expect(response.body).toEqual(timeSlots);
});
});
});
describe("POST appointments", () => {
let addSpy = jest.fn();
let isValidSpy = jest.fn();
let errorsSpy = jest.fn();
beforeEach(() => {
spyOn(Appointments.prototype, "add", addSpy);
spyOn(Appointments.prototype, "isValid", isValidSpy);
isValidSpy.mockReturnValue(true);
});
afterEach(() => {
removeSpy(Appointments.prototype, "add");
removeSpy(Appointments.prototype, "isValid");
});
it("saves an appointment", async () => {
await request(app())
.post("/appointments")
.send(appointment)
.expect(201);
});
it("passes appointment request to appointments module", async () => {
await request(app())
.post("/appointments")
.send(appointment);
expect(addSpy).toBeCalledWith(appointment);
});
it("validates appointment requests", async () => {
await request(app())
.post("/appointments")
.send(appointment);
expect(isValidSpy).toBeCalledWith(appointment);
});
describe("invalid appointment", () => {
let error = { field: "error" };
beforeEach(() => {
spyOn(Appointments.prototype, "errors", errorsSpy);
isValidSpy.mockReturnValue(false);
errorsSpy.mockReturnValue(error);
});
afterEach(() => {
removeSpy(Appointments.prototype, "errors");
});
it("returns 422 for an invalid appointment", async () => {
await request(app())
.post("/appointments")
.send(appointment)
.expect(422);
});
it("calls errors for an invalid appointment", async () => {
await request(app())
.post("/appointments")
.send(appointment);
expect(errorsSpy).toBeCalledWith(appointment);
});
it("returns errors", async () => {
await request(app())
.post("/appointments")
.send(appointment)
.then((response) =>
expect(response.body).toEqual({
errors: { field: "error" },
})
);
});
});
});
describe("GET appointments", () => {
let appointmentsSpy = jest.fn();
let customersSpy = jest.fn();
beforeEach(() => {
spyOn(
Appointments.prototype,
"getAppointments",
appointmentsSpy
);
spyOn(Customers.prototype, "all", customersSpy);
});
afterEach(() => {
removeSpy(Appointments.prototype, "getAppointments");
removeSpy(Customers.prototype, "all");
});
it("get appointments", async () => {
await request(app())
.get("/appointments/123-456")
.send(appointment)
.expect(200);
});
it("passes from and to times through to appointments when retrieving appointments", async () => {
const allCustomers = [{ id: 0 }, { id: 1 }];
customersSpy.mockReturnValue(allCustomers);
await request(app()).get("/appointments/123-456");
expect(appointmentsSpy).toBeCalledWith(
123,
456,
allCustomers
);
});
it("returns the result of calling getAppointments", async () => {
const allAppointments = [
{ startsAt: 123 },
{ startsAt: 456 },
];
appointmentsSpy.mockReturnValue(allAppointments);
await request(app())
.get("/appointments/123-456")
.then((response) => {
expect(response.body).toEqual(allAppointments);
});
});
});
describe("GET /customers", () => {
let searchSpy = jest.fn();
beforeEach(() => {
spyOn(Customers.prototype, "search", searchSpy);
});
afterEach(() => {
removeSpy(Customers.prototype, "search");
});
it("passes parameters on to customer search", async () => {
await request(app()).get(
"/customers?limit=10&after=6&searchTerm=A&orderBy=firstName&orderDirection=asc"
);
expect(searchSpy).toBeCalledWith({
limit: 10,
after: 6,
searchTerms: ["A"],
orderBy: "firstName",
orderDirection: "asc",
});
});
it("does not pass unknown search terms", async () => {
await request(app()).get("/customers?test=test");
expect(searchSpy).toBeCalledWith({});
});
it("passes multiple search terms", async () => {
await request(app()).get(
"/customers?searchTerm=A&searchTerm=B"
);
expect(searchSpy).toBeCalledWith({
searchTerms: ["A", "B"],
});
});
it("passes result back to user", async () => {
const results = [{ id: 0 }, { id: 1 }];
searchSpy.mockReturnValue(results);
await request(app())
.get("/customers")
.expect(200)
.then((response) => {
expect(response.body).toEqual(results);
});
});
});
describe("POST graphql", () => {
describe("customers query", () => {
let searchSpy = jest.fn();
let appointmentsSpy = jest.fn();
beforeEach(() => {
spyOn(
Appointments.prototype,
"forCustomer",
appointmentsSpy
);
spyOn(Customers.prototype, "search", searchSpy);
});
afterEach(() => {
removeSpy(Appointments.prototype, "forCustomer");
removeSpy(Customers.prototype, "search");
});
it("returns all customers", async () => {
searchSpy.mockReturnValue([
{ id: "123", firstName: "test", lastName: "test" },
{
id: "234",
firstName: "another",
lastName: "another",
},
]);
await request(app())
.post("/graphql?")
.send({
query: "\n\n{ customers { id firstName } }\n\n",
})
.then((response) => {
const data = response.body.data;
expect(data.customers).toEqual([
{ id: "123", firstName: "test" },
{ id: "234", firstName: "another" },
]);
});
});
it("appends appointment information to customers", async () => {
searchSpy.mockReturnValue([
{ id: "123", firstName: "test", lastName: "test" },
]);
appointmentsSpy.mockReturnValue([{ startsAt: 123456 }]);
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ customers { appointments { startsAt } } }\n\n",
})
.then((response) => {
const data = response.body.data;
expect(data.customers).toEqual([
{ appointments: [{ startsAt: "123456" }] },
]);
});
});
it("calls forCustomer for each customer id", async () => {
searchSpy.mockReturnValue([
{ id: "123", firstName: "test", lastName: "test" },
{
id: "234",
firstName: "another",
lastName: "another",
},
]);
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ customers { appointments { startsAt } } }\n\n",
})
.then(() => {
expect(appointmentsSpy).toBeCalledWith("123");
expect(appointmentsSpy).toHaveBeenLastCalledWith(
"234"
);
});
});
});
describe("customer query", () => {
let customersSpy = jest.fn();
let appointmentsSpy = jest.fn();
beforeEach(() => {
spyOn(
Appointments.prototype,
"forCustomer",
appointmentsSpy
);
spyOn(Customers.prototype, "all", customersSpy);
customersSpy.mockReturnValue({
5: { firstName: "Daniel", id: "5" },
});
});
afterEach(() => {
removeSpy(Appointments.prototype, "forCustomer");
removeSpy(Customers.prototype, "all");
});
it("call customers.all", async () => {
await request(app())
.post("/graphql?")
.send({ query: "\n\n{ customer(id: 5) { id } }\n\n" })
.then(() => {
expect(customersSpy).toBeCalled();
});
});
it("selects the customer with the given id", async () => {
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ customer(id: 5) { id firstName } }\n\n",
})
.then((response) => {
const data = response.body.data;
expect(data.customer.id).toEqual("5");
expect(data.customer.firstName).toEqual("Daniel");
});
});
it("calls appointments.forCustomer for the given customer", async () => {
await request(app())
.post("/graphql?")
.send({ query: "\n\n{ customer(id: 5) { id } }\n\n" })
.then(() => {
expect(appointmentsSpy).toBeCalledWith("5");
});
});
it("appends the appointment to the customer", async () => {
appointmentsSpy.mockReturnValue([{ startsAt: 123 }]);
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ customer(id: 5) { appointments { startsAt } } }\n\n",
})
.then((response) => {
const data = response.body.data;
expect(data.customer.appointments).toEqual([
{ startsAt: "123" },
]);
});
});
});
describe("availableTimeSlots query", () => {
let getTimeSlotsSpy = jest.fn(() => [{ startsAt: 123 }]);
beforeEach(() => {
spyOn(
Appointments.prototype,
"getTimeSlots",
getTimeSlotsSpy
);
});
afterEach(() => {
removeSpy(Appointments.prototype, "getTimeSlots");
});
it("calls appointments.getTimeSlots", async () => {
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ availableTimeSlots { startsAt } }\n\n",
})
.then(() => {
expect(getTimeSlotsSpy).toBeCalled();
});
});
it("returns the time slot data", async () => {
await request(app())
.post("/graphql?")
.send({
query:
"\n\n{ availableTimeSlots { startsAt } }\n\n",
})
.then((response) => {
const data = response.body.data;
expect(data.availableTimeSlots).toEqual([
{ startsAt: "123" },
]);
});
});
});
describe("appointments query", () => {
const allCustomers = [{ id: 1 }, { id: 2 }];
let appointmentsSlotsSpy = jest.fn(() => [
{ startsAt: 123 },
]);
let customerSpy = jest.fn(() => allCustomers);
beforeEach(() => {
spyOn(Customers.prototype, "all", customerSpy);
spyOn(
Appointments.prototype,
"getAppointments",
appointmentsSlotsSpy
);
});
afterEach(() => {
removeSpy(Appointments.prototype, "getAppointments");
removeSpy(Customers.prototype, "all");
});
it("calls appointments.getAppointments", async () => {
await request(app())
.post("/graphql?")
.send({
query:
'\n\n{ appointments(from: "123", to: "234") { startsAt } }\n\n',
})
.then(() => {
expect(appointmentsSlotsSpy).toBeCalledWith(
123,
234,
allCustomers
);
});
});
it("returns the appointment data", async () => {
await request(app())
.post("/graphql?")
.send({
query:
'\n\n{ appointments(from: "123", to: "234") { startsAt } }\n\n',
})
.then((response) => {
const data = response.body.data;
expect(data.appointments).toEqual([
{ startsAt: "123" },
]);
});
});
});
describe("addAppointment mutation", () => {
let validSpy = jest.fn(() => true);
let addSpy = jest.fn(() => ({
startsAt: 123,
customer: 1,
}));
let errorsSpy = jest.fn();
beforeEach(() => {
spyOn(Appointments.prototype, "isValid", validSpy);
spyOn(Appointments.prototype, "errors", errorsSpy);
spyOn(Appointments.prototype, "add", addSpy);
});
afterEach(() => {
removeSpy(Appointments.prototype, "isValid");
removeSpy(Appointments.prototype, "errors");
removeSpy(Appointments.prototype, "add");
});
const query = `mutation {
addAppointment(appointment: { startsAt: "123", customer: 1 }) {
startsAt
}
}`;
it("saves the appointment if it is valid", async () => {
await request(app())
.post("/graphql?")
.send({ query })
.then(() => {
expect(addSpy).toHaveBeenLastCalledWith({
startsAt: 123,
customer: "1",
});
});
});
it("returns the same appointment", async () => {
await request(app())
.post("/graphql?")
.send({ query })
.then((response) => {
const data = response.body.data;
expect(data.addAppointment).toEqual({
startsAt: "123",
});
});
});
it("returns errors if appointment is not valid", async () => {
validSpy.mockReturnValue(false);
errorsSpy.mockReturnValue({ field: "desc" });
await request(app())
.post("/graphql?")
.send({ query })
.then((response) => {
expect(response.body).toEqual({
errors: [
{
message: "desc",
path: ["addAppointment", "field"],
},
],
});
});
});
});
describe("addCustomer mutation", () => {
let validSpy = jest.fn(() => true);
let addSpy = jest.fn(() => ({ id: "123" }));
let errorsSpy = jest.fn();
beforeEach(() => {
spyOn(Customers.prototype, "isValid", validSpy);
spyOn(Customers.prototype, "errors", errorsSpy);
spyOn(Customers.prototype, "add", addSpy);
});
afterEach(() => {
removeSpy(Customers.prototype, "isValid");
removeSpy(Customers.prototype, "errors");
removeSpy(Customers.prototype, "add");
});
const query = `mutation {
addCustomer(customer: {
firstName: "Ashley",
lastName: "Jones",
phoneNumber: "123" }) {
id
}
}`;
it("saves the customer if it is valid", async () => {
await request(app())
.post("/graphql?")
.send({ query })
.then(() => {
expect(addSpy).toHaveBeenLastCalledWith({
firstName: "Ashley",
lastName: "Jones",
phoneNumber: "123",
});
});
});
it("returns the customer id", async () => {
await request(app())
.post("/graphql?")
.send({ query })
.then((response) => {
const data = response.body.data;
expect(data.addCustomer).toEqual({ id: "123" });
});
});
it("returns errors if customer is not valid", async () => {
validSpy.mockReturnValue(false);
errorsSpy.mockReturnValue({ field: "desc" });
await request(app())
.post("/graphql?")
.send({ query })
.then((response) => {
expect(response.body).toEqual({
errors: [
{
message: "desc",
path: ["addCustomer", "field"],
},
],
});
});
});
});
});
});
| 27.279778 | 101 | 0.49802 |
b78fc8ab4a0b6def50c86fd0e080783d4395031f | 922 | js | JavaScript | src/js/modules/common/flex-slider/wheelEvent.js | youhe/assets-js | ed1e190b1cfb401cf7399b94f0e4bddccb683e46 | [
"MIT"
] | null | null | null | src/js/modules/common/flex-slider/wheelEvent.js | youhe/assets-js | ed1e190b1cfb401cf7399b94f0e4bddccb683e46 | [
"MIT"
] | 3 | 2021-03-09T13:01:33.000Z | 2022-02-10T18:46:25.000Z | src/js/modules/common/flex-slider/wheelEvent.js | youhe/assets-js | ed1e190b1cfb401cf7399b94f0e4bddccb683e46 | [
"MIT"
] | null | null | null | const THRESHOLD_X = 50;
export default class ScrollEvent {
constructor(app, wrap, slideItems) {
this._app = app;
this._wrap = wrap;
this._slideItems = slideItems;
this._init();
this._wrap.addEventListener('wheel', (e)=> {this._wheel(e)}, false);
window.RenderWatch.register(this);
}
_init() {
this.isAnimation = false;
this.wheelY = 0;
this.ty = 0;
this.dy = 0;
this.moveDX = 0;
}
_wheel(e) {
// console.log(e);
this.wheelY = e.deltaY;
}
render() {
this.ty = this.dy;
this.dy = (this.wheelY - this.ty) * 0.15 + this.ty;
if (this.dy == this.ty) {
this.dy = this.dy * 0.8;
}
if (-0.4 < this.dy && this.dy < 0.4) {
this.dy = 0;
}
if (this.dy == 0) {
this.isAnimation = false;
} else {
this.isAnimation = true;
}
this.moveDX = this.dy * 10;
console.log(this.dy);
}
}
| 14.870968 | 73 | 0.534707 |
b790be544b978a50ead429073f64115aa20c0cdb | 2,305 | js | JavaScript | src/genui/components/tasks/TaskBadge.js | martin-sicho/genui-gui | 34c44ae25a9bb4758586b252204b9c7f5abfa8bc | [
"MIT"
] | 8 | 2021-09-29T03:21:32.000Z | 2022-03-23T03:07:46.000Z | src/genui/components/tasks/TaskBadge.js | martin-sicho/genui-gui | 34c44ae25a9bb4758586b252204b9c7f5abfa8bc | [
"MIT"
] | 2 | 2022-03-22T10:12:41.000Z | 2022-03-22T15:33:53.000Z | src/genui/components/tasks/TaskBadge.js | martin-sicho/genui-gui | 34c44ae25a9bb4758586b252204b9c7f5abfa8bc | [
"MIT"
] | 2 | 2021-09-28T04:37:17.000Z | 2021-09-29T03:21:33.000Z | import {
Badge,
Button,
Card,
CardBody,
Modal,
ModalBody,
ModalFooter,
ModalHeader,
UncontrolledCollapse,
} from 'reactstrap';
import React from 'react';
import TaskResult from "./TaskResult";
function TaskBadge(props) {
const [open, setOpen] = React.useState(false);
const toggle = e => {e.preventDefault();setOpen(!open)};
if (props.tasks.length === 0) return null;
return (
<React.Fragment>
<Badge href="#" color={props.color} onClick={toggle}>{props.tasks.length} {props.children}</Badge>
<Modal isOpen={open} toggle={toggle} size="lg" scrollable="true" className="unDraggable">
<ModalHeader toggle={toggle}>Tasks</ModalHeader>
<ModalBody>
{
props.tasks.map((task, index) => {
return (
<div key={task.task_id}>
<Button color="primary" id={`toggler-${index}`} style={{ marginBottom: '1rem' }}>
{task.task_name}
</Button>
<UncontrolledCollapse toggler={`#toggler-${index}`}>
<Card>
<CardBody>
<ul>
<li>
<strong>ID:</strong> {task.task_id}
</li>
<li>
<strong>Status:</strong> {task.status}
</li>
<li>
<strong>Result:</strong>
<TaskResult {...props} result={task.result}/>
</li>
{task.traceback ? (
<li>
<strong>Traceback:</strong> {task.traceback}
</li>
) : null}
</ul>
</CardBody>
</Card>
</UncontrolledCollapse>
</div>
)
})
}
</ModalBody>
<ModalFooter>
<Button color="primary" onClick={toggle}>Close</Button>{' '}
{/*<Button color="secondary" onClick={toggle}>Cancel</Button>*/}
</ModalFooter>
</Modal>
</React.Fragment>
)
}
export default TaskBadge; | 32.464789 | 104 | 0.438612 |
b790c95a26ec864d66eec4563bf92d721f7c6bf0 | 1,863 | js | JavaScript | src/pages/About/indexData.js | iKooot/cra-simple-2022 | 556afa229ab3f21476b8f35599196fbe0e1c4fca | [
"MIT"
] | null | null | null | src/pages/About/indexData.js | iKooot/cra-simple-2022 | 556afa229ab3f21476b8f35599196fbe0e1c4fca | [
"MIT"
] | null | null | null | src/pages/About/indexData.js | iKooot/cra-simple-2022 | 556afa229ab3f21476b8f35599196fbe0e1c4fca | [
"MIT"
] | null | null | null | import img1 from "../../assets/img1-min.jpeg";
import img2 from "../../assets/img2-min.jpeg";
import img3 from "../../assets/img3-min.jpeg";
import img4 from "../../assets/img4-min.jpeg";
import BuildIcon from "@mui/icons-material/Build";
export const itemData = [
{
img: img1,
title: "Breakfast",
rows: 2,
cols: 2,
},
{
img: img2,
title: "Burger",
},
{
img: img3,
title: "Burger",
},
{
img: img4,
title: "Coffee",
cols: 2,
},
];
export const featureData = [
{
title: "Feature 1",
text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aspernatur debitis natus nulla omnis quaerat tempore voluptatibus! Accusantium adipisci deserunt eius minima molestias porro quos, repellat, repudiandae, rerum sint ut.",
icon: BuildIcon,
},
{
title: "Feature 2",
text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aspernatur debitis natus nulla omnis quaerat tempore voluptatibus! Accusantium adipisci deserunt eius minima molestias porro quos, repellat, repudiandae, rerum sint ut.",
icon: BuildIcon,
},
{
title: "Feature 3",
text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aspernatur debitis natus nulla omnis quaerat tempore voluptatibus! Accusantium adipisci deserunt eius minima molestias porro quos, repellat, repudiandae, rerum sint ut.",
icon: BuildIcon,
},
{
title: "Feature 4",
text: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aspernatur debitis natus nulla omnis quaerat tempore voluptatibus! Accusantium adipisci deserunt eius minima molestias porro quos, repellat, repudiandae, rerum sint ut.",
icon: BuildIcon,
},
]; | 37.26 | 253 | 0.652174 |
b7914494b3f5b550fcc0cdd13a29a376a93d9574 | 491,950 | js | JavaScript | Annotator1/data12.js | annotator21/annotator21.github.io | e6b3056d74622ee9db0112c72c426a664d8a7ce4 | [
"MIT"
] | null | null | null | Annotator1/data12.js | annotator21/annotator21.github.io | e6b3056d74622ee9db0112c72c426a664d8a7ce4 | [
"MIT"
] | null | null | null | Annotator1/data12.js | annotator21/annotator21.github.io | e6b3056d74622ee9db0112c72c426a664d8a7ce4 | [
"MIT"
] | null | null | null | data1={"phrases": [{"id": "cneir52", "body": "That is an incredibly optimistic perspective."}, {"id": "cneh8ag", "body": "It's mostly for new doctors and nurses. To harden them. To make them ready for the horrors they'll face in their line of duty. (Support from me)\n\nAlso to jerk off to if you're that kind of person. (Wut from me)"}, {"id": "cneildi", "body": "> It's mostly for new doctors and nurses. To harden them. To make them ready for the horrors they'll face in their line of duty. (Support from me)\n\nThat's certainly an interesting viewpoint to hold. Did you infer that or did someone from the sub explain to you? "}, {"id": "cneildi", "body": "> It's mostly for new doctors and nurses. To harden them. To make them ready for the horrors they'll face in their line of duty. (Support from me)\n\nThat's certainly an interesting viewpoint to hold. Did you infer that or did someone from the sub explain to you? "}, {"id": "cneixc0", "body": "From time to time, you'll see nurses, or doctors commenting on pictures in that subreddit. They'll be debating causes of death, etc. I witnessed one of those debates and realized the good this subreddit is doing to the world."}, {"id": "cneixc0", "body": "From time to time, you'll see nurses, or doctors commenting on pictures in that subreddit. They'll be debating causes of death, etc. I witnessed one of those debates and realized the good this subreddit is doing to the world."}, {"id": "cnekkmu", "body": "They were probably just roleplaying to get off harder."}, {"id": "cneixc0", "body": "From time to time, you'll see nurses, or doctors commenting on pictures in that subreddit. They'll be debating causes of death, etc. I witnessed one of those debates and realized the good this subreddit is doing to the world."}, {"id": "cnf2coo", "body": "\"Nurses\", or \"doctors\".\n\nSource: Am dog"}, {"id": "cnecekp", "body": "Hm... It depends on the person. For me, the worse subreddit is this.\n\nhttp://www.reddit.com/r/picsofdeadkids\n\nI understand the purpose behind that subreddit, I'm not against it. But I would be lying if I said that it didn't make me to feel anything. "}, {"id": "cneszut", "body": "/r/cutefemalecorpses"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnea1x1", "body": "OP might say /r/4chan "}, {"id": "cnea1x1", "body": "OP might say /r/4chan "}, {"id": "cneaevf", "body": "It's definitely more of a \"best of\" type sub though, I love it even though I've never visited 4chan, but I could completely understand why people like OP would be adverse to what gets said in terms of how it affects you as a person. I find the additional perspectives that no one in their right mind would say aloud really interesting/funny because you would never actually say it, considering the stances society takes on certain issues.\n\nThere's far worse subreddits that I don't think need to be posted"}, {"id": "cnea1x1", "body": "OP might say /r/4chan "}, {"id": "cnekmwf", "body": "Very late to this thread, but if you order /r/4chan by Top it works against OP, as there's some ggreaat humour but very little that's offensive."}, {"id": "cnea1x1", "body": "OP might say /r/4chan "}, {"id": "cneigac", "body": "Hmm, I think I agree with OP's argument but I actually quite like reading a bit of /r/4chan from time to time. It's often fun to read the top posts of the month each month (without reading their comment sections, which are normally full of in jokes and the toxicity OP is talking about)."}, {"id": "cneigac", "body": "Hmm, I think I agree with OP's argument but I actually quite like reading a bit of /r/4chan from time to time. It's often fun to read the top posts of the month each month (without reading their comment sections, which are normally full of in jokes and the toxicity OP is talking about)."}, {"id": "cnesx0x", "body": "* tips fedora\n\nAren't you an enlightened and selective Reddit reader?"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneh64t", "body": "/r/sexyabortions (NSFL) comes to mind"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cne8uj4", "body": "Depends, there are subs like /r/theredpill that breed hatred, subs like /r/PicsOfDeadKids which have disgusting implications, /r/jailbait used to be a sub. Those are ones I could think of off the top of my head, and that says nothing about private subs or subs that only have a few members and no recognizable name."}, {"id": "cne8uj4", "body": "Depends, there are subs like /r/theredpill that breed hatred, subs like /r/PicsOfDeadKids which have disgusting implications, /r/jailbait used to be a sub. Those are ones I could think of off the top of my head, and that says nothing about private subs or subs that only have a few members and no recognizable name."}, {"id": "cne95bx", "body": "There's a black hate sub (forgot the name) with a header that says \"thanks ebola\" or something to that effect. It was the first time I was completely taken back by a sub since signing up (barring the /r/jailbait shitfest which I'd only read about). \"Is this a joke? This can't be real\" was my first reaction."}, {"id": "cne95bx", "body": "There's a black hate sub (forgot the name) with a header that says \"thanks ebola\" or something to that effect. It was the first time I was completely taken back by a sub since signing up (barring the /r/jailbait shitfest which I'd only read about). \"Is this a joke? This can't be real\" was my first reaction."}, {"id": "cne9s8s", "body": "/r/greatapes is the place. Used to just be /r/niggers.\n\nEdit: It seems they're slowly moving again to /r/coontown. Just in case anyone wanted to follow them for some reason.\n\nAs others have said, I think it's for the best that these \"toxic\" communities are allowed to exist, but certainly don't extrapolate the vitriol you find there across all of reddit."}, {"id": "cne9s8s", "body": "/r/greatapes is the place. Used to just be /r/niggers.\n\nEdit: It seems they're slowly moving again to /r/coontown. Just in case anyone wanted to follow them for some reason.\n\nAs others have said, I think it's for the best that these \"toxic\" communities are allowed to exist, but certainly don't extrapolate the vitriol you find there across all of reddit."}, {"id": "cneas53", "body": "I think they are moving because occasionally another sub will rally a few members to flood r/greatapes with pictures of actual apes. It doesn't stop or change anything but it is funny watching them try hold back the tide and there bitching about being discriminated against. When they are settled in there new sub I look forward to seeing it spammed with raccoon pictures"}, {"id": "cneas53", "body": "I think they are moving because occasionally another sub will rally a few members to flood r/greatapes with pictures of actual apes. It doesn't stop or change anything but it is funny watching them try hold back the tide and there bitching about being discriminated against. When they are settled in there new sub I look forward to seeing it spammed with raccoon pictures"}, {"id": "cneb88v", "body": "/r/stormfront, after the revolt and mod overthrowing, is pretty funny too. (Stormfront is a xenophobic, extreme right wing organization in Europe)"}, {"id": "cneb88v", "body": "/r/stormfront, after the revolt and mod overthrowing, is pretty funny too. (Stormfront is a xenophobic, extreme right wing organization in Europe)"}, {"id": "cneer1j", "body": "This and the \"flooding /r/greatapes with pictures of actual apes\" thing is hilarious and refreshing. It's nice to see hatred combated with humor so well."}, {"id": "cneb88v", "body": "/r/stormfront, after the revolt and mod overthrowing, is pretty funny too. (Stormfront is a xenophobic, extreme right wing organization in Europe)"}, {"id": "cnela97", "body": "> in Europe\n\nHuh. I never realized it was \"based\" in europe. "}, {"id": "cne9s8s", "body": "/r/greatapes is the place. Used to just be /r/niggers.\n\nEdit: It seems they're slowly moving again to /r/coontown. Just in case anyone wanted to follow them for some reason.\n\nAs others have said, I think it's for the best that these \"toxic\" communities are allowed to exist, but certainly don't extrapolate the vitriol you find there across all of reddit."}, {"id": "cnen718", "body": ">/r/CoonTown \n\nAs is my habit, I clicked a few links. Mostly it was shit, but what the fuck is [this](https://www.youtube.com/watch?v=yJtGKb_bZyc) about?\n\nDid actual, appointed judges seriously take \"black hole\" as a racist comment? Like, actual people and not racist caricatures of people?"}, {"id": "cnen718", "body": ">/r/CoonTown \n\nAs is my habit, I clicked a few links. Mostly it was shit, but what the fuck is [this](https://www.youtube.com/watch?v=yJtGKb_bZyc) about?\n\nDid actual, appointed judges seriously take \"black hole\" as a racist comment? Like, actual people and not racist caricatures of people?"}, {"id": "cneq8s5", "body": "I think what you have their is stupid people on reddit and real life saying \"see there is a conspiracy against us!\""}, {"id": "cne9s8s", "body": "/r/greatapes is the place. Used to just be /r/niggers.\n\nEdit: It seems they're slowly moving again to /r/coontown. Just in case anyone wanted to follow them for some reason.\n\nAs others have said, I think it's for the best that these \"toxic\" communities are allowed to exist, but certainly don't extrapolate the vitriol you find there across all of reddit."}, {"id": "cnel90c", "body": "You know what's really sad?\n\n1. the original meaning of coon. Came from the word \"baracoos\" - which is a... slavic? word for \"pen\" - aka, people kept in pens. \n\n2. Coontown could be a super cute cuddly cartoon city full of cartoon raccoons where you went on fantastical adventures. Just like Great Apes could be a sub all about Gorillaz and monkeys! :D OH MY GOD I'M DYING FROM THE CUTENESS IN MY IMAGINATION!!!\n\n... but no. It's not :("}, {"id": "cne9s8s", "body": "/r/greatapes is the place. Used to just be /r/niggers.\n\nEdit: It seems they're slowly moving again to /r/coontown. Just in case anyone wanted to follow them for some reason.\n\nAs others have said, I think it's for the best that these \"toxic\" communities are allowed to exist, but certainly don't extrapolate the vitriol you find there across all of reddit."}, {"id": "cneex0t", "body": "Holy shit, how is a explicitly bigoted sub like coontown aloud to exist?!?"}, {"id": "cneex0t", "body": "Holy shit, how is a explicitly bigoted sub like coontown aloud to exist?!?"}, {"id": "cnefmeb", "body": "Same way any other sub is allowed to exist. You have two choices here. Either the bigots be allowed to have their community and discuss whatever they want in their own little corner of reddit, or reddit is allowed to close subs at will for being full of bigots. In societies with freedom of speech, the second option is generally considered to be *more* harmful overall than the first, because it is open to abuse. Abuse affects everybody in a negative way. Bigots having a corner to discuss their bigotry does not."}, {"id": "cnefmeb", "body": "Same way any other sub is allowed to exist. You have two choices here. Either the bigots be allowed to have their community and discuss whatever they want in their own little corner of reddit, or reddit is allowed to close subs at will for being full of bigots. In societies with freedom of speech, the second option is generally considered to be *more* harmful overall than the first, because it is open to abuse. Abuse affects everybody in a negative way. Bigots having a corner to discuss their bigotry does not."}, {"id": "cneqnqc", "body": "The problem is someone could make the argument that by allowing bigots a ground to build a propaganda machine, and also raid other subs which they do regardless of how emotionally they deny it, you are harming everyone they are bigoted against. Essentially arming them with virtual weapons and saying \"we gave everyone else virtual weapons to.\" Ya but nobody else is hunting people with those virtual weapons."}, {"id": "cne95bx", "body": "There's a black hate sub (forgot the name) with a header that says \"thanks ebola\" or something to that effect. It was the first time I was completely taken back by a sub since signing up (barring the /r/jailbait shitfest which I'd only read about). \"Is this a joke? This can't be real\" was my first reaction."}, {"id": "cnegb03", "body": "Don't forget /r/starvinmarvin or something like that.\n\nLaughing at the kids starving in Africa. What in the actual fuck, people?"}, {"id": "cne95bx", "body": "There's a black hate sub (forgot the name) with a header that says \"thanks ebola\" or something to that effect. It was the first time I was completely taken back by a sub since signing up (barring the /r/jailbait shitfest which I'd only read about). \"Is this a joke? This can't be real\" was my first reaction."}, {"id": "cnevgs5", "body": "What does the general public thing of /r/fatpeoplehate?"}, {"id": "cne95bx", "body": "There's a black hate sub (forgot the name) with a header that says \"thanks ebola\" or something to that effect. It was the first time I was completely taken back by a sub since signing up (barring the /r/jailbait shitfest which I'd only read about). \"Is this a joke? This can't be real\" was my first reaction."}, {"id": "cneb4x1", "body": "That doesn't surprise me at all. Of course I was already pretty desensitized before I started using reddit a lot, so that might be why."}, {"id": "cne8uj4", "body": "Depends, there are subs like /r/theredpill that breed hatred, subs like /r/PicsOfDeadKids which have disgusting implications, /r/jailbait used to be a sub. Those are ones I could think of off the top of my head, and that says nothing about private subs or subs that only have a few members and no recognizable name."}, {"id": "cnedeco", "body": "/r/cutefemalecorpses\n\nNSFW/NSFL"}, {"id": "cnedeco", "body": "/r/cutefemalecorpses\n\nNSFW/NSFL"}, {"id": "cnee28u", "body": "Basically the same as pics of dead kids."}, {"id": "cnee28u", "body": "Basically the same as pics of dead kids."}, {"id": "cnef6el", "body": "\u0ca0\u203f\u0ca0"}, {"id": "cnedeco", "body": "/r/cutefemalecorpses\n\nNSFW/NSFL"}, {"id": "cnelr2n", "body": "This sub showed up on random once. That was not okay. "}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneiyxx", "body": "/r/news"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneklwl", "body": ">What is the worst sub on reddit?\n\n/r/greatapes currently gets my vote..."}, {"id": "cneklwl", "body": ">What is the worst sub on reddit?\n\n/r/greatapes currently gets my vote..."}, {"id": "cneqghq", "body": "I vote /r/rapingwomen as the worst.\n\nEdit: I've never visited this sub before but I just read a few posts and comments and now feel a little sick to my stomach. These people are disgusting individual. "}, {"id": "cneqghq", "body": "I vote /r/rapingwomen as the worst.\n\nEdit: I've never visited this sub before but I just read a few posts and comments and now feel a little sick to my stomach. These people are disgusting individual. "}, {"id": "cnewljo", "body": "Meh, they're trying *way* too hard to be edgy."}, {"id": "cneklwl", "body": ">What is the worst sub on reddit?\n\n/r/greatapes currently gets my vote..."}, {"id": "cnemeob", "body": "clicked and for some reason was expecting pictures of orangutans and chimpanzees."}, {"id": "cnemeob", "body": "clicked and for some reason was expecting pictures of orangutans and chimpanzees."}, {"id": "cnep6re", "body": "i miss read it as great tapes."}, {"id": "cneklwl", "body": ">What is the worst sub on reddit?\n\n/r/greatapes currently gets my vote..."}, {"id": "cnep70v", "body": "Yeah, they have a whole bunch of them too:\n\nhttp://www.reddit.com/r/GreatApes/comments/29zzoy/introducing_the_chimpire_a_network_of_nigger/"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnegptt", "body": "cutefemalecorpses is up there. Philosophyofrape is definitely the worst, but it seems like it's just one or two guys."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneij2g", "body": "my vote is torn between the racist subreddits and sexist ones like /r/TheRedPill \n\n/r/Holocaust is pretty bad to, party because you would think from the name it's a historical sub, but it's actually neo-nazis who deny the Holocaust every happened "}, {"id": "cneij2g", "body": "my vote is torn between the racist subreddits and sexist ones like /r/TheRedPill \n\n/r/Holocaust is pretty bad to, party because you would think from the name it's a historical sub, but it's actually neo-nazis who deny the Holocaust every happened "}, {"id": "cnem7lc", "body": "> /r/Holocaust\n\nIt's good to see the top posts are pictures of tattoos from the holocaust and anger at the sub, just like SRS"}, {"id": "cnem7lc", "body": "> /r/Holocaust\n\nIt's good to see the top posts are pictures of tattoos from the holocaust and anger at the sub, just like SRS"}, {"id": "cnfd99y", "body": "It's a minor detail but I can't stand how in the sidebar in that sub they don't say The Holocaust, it's \"The Holocaust\". \n\n"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnekorq", "body": "/r/shitredditsays is bad in a \"it makes me want to have never been born\" sort of way."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneesng", "body": "/r/bestiality \n/r/theredpill \n/r/shitredditsays \n\n\nOr any of the many nazi and racist skinhead subreddits."}, {"id": "cneesng", "body": "/r/bestiality \n/r/theredpill \n/r/shitredditsays \n\n\nOr any of the many nazi and racist skinhead subreddits."}, {"id": "cneh9uf", "body": "/r/bestiality and /r/shitredditsays are the worst because they think you're a hatemonger if you disagree with them (Was actually called homophobic because I told a guy to stop fucking horses)."}, {"id": "cneh9uf", "body": "/r/bestiality and /r/shitredditsays are the worst because they think you're a hatemonger if you disagree with them (Was actually called homophobic because I told a guy to stop fucking horses)."}, {"id": "cnep8if", "body": "same goes for theredpill."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnekcim", "body": "/r/spaceclop"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnel6c0", "body": "[/r/PicsOfDeadKids](/r/PicsOfHorseDicks) - **NSFW LINK**"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnem8d3", "body": "/r/sexyabortions is pretty bad."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnen00g", "body": "There's ones devoted to racism. I can't believe they don't violate some reddit term of agreement. I'm all for free speech but reddit shouldn't be a bastion for multiple groups that just hate black people."}, {"id": "cnen00g", "body": "There's ones devoted to racism. I can't believe they don't violate some reddit term of agreement. I'm all for free speech but reddit shouldn't be a bastion for multiple groups that just hate black people."}, {"id": "cney08m", "body": "That's the thing about free speech, it is most important for those things which the majority of people don't want to hear."}, {"id": "cney08m", "body": "That's the thing about free speech, it is most important for those things which the majority of people don't want to hear."}, {"id": "cnf4fss", "body": "The thing about free speech is that you don't have to offer every privately owned business as a venue for it though. They can be racist in their homes or on the street our they can make their own site for racist bullshit."}, {"id": "cnf4fss", "body": "The thing about free speech is that you don't have to offer every privately owned business as a venue for it though. They can be racist in their homes or on the street our they can make their own site for racist bullshit."}, {"id": "cnfaqgr", "body": "I understand free speech doesn't mean everyone has to allow free speech on their sites but you said you support free speech (reddit has said the same). If you and reddit really do believe in free speech then you wouldn't stifle these communities you consider vile. Free speech is meaningless if it doesn't apply to the people who are saying the things that make people want them to shut up."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnen0mv", "body": "/r/sexwithdogs "}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnendjp", "body": "/r/conspiracy regularly talks about how the Sandy Hook massacre was a hoax.\n\nThey've got my vote."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnenzp0", "body": "There's a whole network of racist subs."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cneoyhk", "body": "Probably /r/watchpeopledie. No NOT watch the top posts on that. There's children involved."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnh2l2y", "body": "/r/sexyabortions"}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnee4qz", "body": "/r/cutedeadcorpses"}, {"id": "cnee4qz", "body": "/r/cutedeadcorpses"}, {"id": "cnem08y", "body": "as opposed to /r/cutealivecorpses"}, {"id": "cnem08y", "body": "as opposed to /r/cutealivecorpses"}, {"id": "cnem8af", "body": "oops was meant to be female.\n"}, {"id": "cnem8af", "body": "oops was meant to be female.\n"}, {"id": "cnemc5z", "body": "Haha I figured."}, {"id": "cne8py6", "body": "[deleted]"}, {"id": "cnecksq", "body": "There are some that are blatantly bad that other people have already pointed out, but a lot of defaults are kind of cesspools. Like /r/atheism or the comment section in /r/videos or /r/worldnews are often pretty bad for differing reasons. "}, {"id": "cnecksq", "body": "There are some that are blatantly bad that other people have already pointed out, but a lot of defaults are kind of cesspools. Like /r/atheism or the comment section in /r/videos or /r/worldnews are often pretty bad for differing reasons. "}, {"id": "cnedkxk", "body": "I think that's part of the appeal of the 4chan approach to sensitive issues. The world is so filled with people who deny discriminating against anyone at all just because they don't do it in severe and obvious ways. We've all got biases and perceive people as belonging to certain groups. Might as well make a joke out of it rather than be the holier-than-thou yet oblivious average person."}, {"id": "cne8fsx", "body": "To be fair /r/spacedicks is far from the worst sub on reddit."}, {"id": "cnesivi", "body": "/r/deadkids is pretty rough terrible thing to random into. Yes it's exactly what it sounds like. \n\nEdit: Looks like it may have (thankfully) been removed. "}, {"id": "cne8fsx", "body": "To be fair /r/spacedicks is far from the worst sub on reddit."}, {"id": "cnezqwn", "body": "OK fine I'm clicking it.\n\nEdit: Why did you do this to me"}, {"id": "cne7pb0", "body": "To be fair /pol/ has been spilling into the other boards for awhile, and m00t's drunken attack recently didn't help things."}, {"id": "cneci2i", "body": "I didn't hear about moot's uproar. What happened?"}, {"id": "cneci2i", "body": "I didn't hear about moot's uproar. What happened?"}, {"id": "cneft9x", "body": "Post tits or I'll delete the /pol/ board?"}, {"id": "cneft9x", "body": "Post tits or I'll delete the /pol/ board?"}, {"id": "cnega19", "body": "Is that what happened? Moot got drunk, demanded tits to not delete pol?"}, {"id": "cneci2i", "body": "I didn't hear about moot's uproar. What happened?"}, {"id": "cnehv5p", "body": "m00t went crazy, i posted what he did to another commenter\n\nedit: http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnehteb"}, {"id": "cnehv5p", "body": "m00t went crazy, i posted what he did to another commenter\n\nedit: http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnehteb"}, {"id": "cneqmt5", "body": "Thanks for the link! That's not so bad. Better than the treatment /b/ got a while back. Not that I think it was unwarranted, mind you. /b/ is a cesspool, as is /pol/. Just saying moot was light-handed considering the things he's done to the site in the past."}, {"id": "cneqmt5", "body": "Thanks for the link! That's not so bad. Better than the treatment /b/ got a while back. Not that I think it was unwarranted, mind you. /b/ is a cesspool, as is /pol/. Just saying moot was light-handed considering the things he's done to the site in the past."}, {"id": "cnermrk", "body": "Well it was enough to cause alot of /pol/ browsers to run off to other boards for awhile. The lack of their quarantine was really apparent."}, {"id": "cne7pb0", "body": "To be fair /pol/ has been spilling into the other boards for awhile, and m00t's drunken attack recently didn't help things."}, {"id": "cne8e12", "body": "/pol/ spills, yeah. But a stray comment about THE JEWS or THE HAPPENING is usually met with a chorus of \"fuck off back to /pol/\". There will be distasteful comments on any site, reddit is home to people like /r/theredpill and it occasionally leaks as well. But mootles has been awful lately, I'll give you that."}, {"id": "cne8e12", "body": "/pol/ spills, yeah. But a stray comment about THE JEWS or THE HAPPENING is usually met with a chorus of \"fuck off back to /pol/\". There will be distasteful comments on any site, reddit is home to people like /r/theredpill and it occasionally leaks as well. But mootles has been awful lately, I'll give you that."}, {"id": "cnkfglu", "body": ">THE JEWS or THE HAPPENING is usually met with a chorus of \"fuck off back to /pol/\"\n\nthat never happens"}, {"id": "cne7pb0", "body": "To be fair /pol/ has been spilling into the other boards for awhile, and m00t's drunken attack recently didn't help things."}, {"id": "cneo2bs", "body": "moot's drunken attack? What did he do?"}, {"id": "cneo2bs", "body": "moot's drunken attack? What did he do?"}, {"id": "cnep2ff", "body": "http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnehteb"}, {"id": "cne7pb0", "body": "To be fair /pol/ has been spilling into the other boards for awhile, and m00t's drunken attack recently didn't help things."}, {"id": "cneef8w", "body": "What happened with M00t? Haven't been on in years. "}, {"id": "cneef8w", "body": "What happened with M00t? Haven't been on in years. "}, {"id": "cnehteb", "body": "m00t turned off captcha, \"[trigger warning]\" flies above every post, and for like a month m00t had the audio of [this](https://www.youtube.com/watch?v=JPM6LKIaopk) **(NSFW)** playing every time you visited /pol/"}, {"id": "cnehteb", "body": "m00t turned off captcha, \"[trigger warning]\" flies above every post, and for like a month m00t had the audio of [this](https://www.youtube.com/watch?v=JPM6LKIaopk) **(NSFW)** playing every time you visited /pol/"}, {"id": "cneqzaj", "body": "[deleted]"}, {"id": "cneqzaj", "body": "[deleted]"}, {"id": "cnetb1e", "body": "Sorry JManRomania, your comment has been removed: \n\n> Comment Rule 5\\. \"No low effort comments. Comments that are only jokes or 'written upvotes', for example. Humor and affirmations of agreement can be contained within more substantial comments.\" [See the wiki page for more information.](http://www.reddit.com/r/changemyview/wiki/rules#wiki_rule_5)\n\nIf you would like to appeal, please [message the moderators by clicking this link.](http://www.reddit.com/message/compose?to=%2Fr%2Fchangemyview&subject=Removed+Comment+Rule+5+Post+Appeal&message=JManRomania+would+like+to+appeal+the+removal+of+[his/her+post](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneqzaj\\))"}, {"id": "cne7pb0", "body": "To be fair /pol/ has been spilling into the other boards for awhile, and m00t's drunken attack recently didn't help things."}, {"id": "cneoq9q", "body": "[deleted]"}, {"id": "cneoq9q", "body": "[deleted]"}, {"id": "cnep2l1", "body": "http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnehteb"}, {"id": "cne6gtr", "body": "My counterpoint to this is that you're describing /b/, /v/, and /pol/. Not 4chan. If I were to make a post here and say \"CMV: I believe that regularly browsing reddit will make you a worse person\" and then cited /r/spacedicks as my source, I'd be laughed out of the thread. You're doing the exact same thing.\n"}, {"id": "cne8x81", "body": "I've mostly browsed /v/, /co/ and previously /int/, so my experiences are based on those boards.\n\nThere's different culture to each board, but most people browse more than one board. Culture spills over, otherwise you wouldn't have /sp/ memes in /v/ and 4chan memes on Reddit.\n\nIn the same way attitudes and mentality spill over and you get a pessimist attitude all-around on 4chan.\n\nReddit has bad boards, but it doesn't work the same way that 4chan does because of how the sites are built differently and users communicate differently as a result."}, {"id": "cne8x81", "body": "I've mostly browsed /v/, /co/ and previously /int/, so my experiences are based on those boards.\n\nThere's different culture to each board, but most people browse more than one board. Culture spills over, otherwise you wouldn't have /sp/ memes in /v/ and 4chan memes on Reddit.\n\nIn the same way attitudes and mentality spill over and you get a pessimist attitude all-around on 4chan.\n\nReddit has bad boards, but it doesn't work the same way that 4chan does because of how the sites are built differently and users communicate differently as a result."}, {"id": "cnefgpo", "body": "Yes, that's all true. But you have to understand that 4chan is buy and large full of people who have a use for the anonymity it offers. Some people use it to call people names online without consequence, some people use it to ERP, some people use it to complain about how much they hate their life and want to die. But a lot of these things are simply expressed here so much because they can't express them anywhere else safely. I don't think that the people on 4chan are really all that bad in real life. On /vg/, I frequent League of Legends generals and I often play with people from those generals. League of Legends general is a place where we can't go six posts without arguing with eachother about which waifus are shit or which tripfag deserves to be decapitated or how much we want to stick a fork in eachothers eyes for building the wrong item on the wrong character. But when I get into Skype with these people to play games with them, they're totally normal. They're just regular people who blow off steam by calling other people cuckolds on 4chan. If anything, I'd say that 4chan's environment is pretty healthy. There's something to be said about a place where you can go to blow off steam and say basically whatever you want without consequence. If you go into the experience thinking \"I wanna fit in with everyone else here on 4chan and be angry and upset all the time!\", then yeah, your life will change for the worse. But I don't think 4chan did this to any of these people. I think they're just letting go of baggage they've been carrying long before arriving here, and can now finally drop."}, {"id": "cne8x81", "body": "I've mostly browsed /v/, /co/ and previously /int/, so my experiences are based on those boards.\n\nThere's different culture to each board, but most people browse more than one board. Culture spills over, otherwise you wouldn't have /sp/ memes in /v/ and 4chan memes on Reddit.\n\nIn the same way attitudes and mentality spill over and you get a pessimist attitude all-around on 4chan.\n\nReddit has bad boards, but it doesn't work the same way that 4chan does because of how the sites are built differently and users communicate differently as a result."}, {"id": "cnebddt", "body": "So you've browsed 4chan, do you think you're a worse person than before?"}, {"id": "cnebddt", "body": "So you've browsed 4chan, do you think you're a worse person than before?"}, {"id": "cneccld", "body": "Not worse, just more dank memes."}, {"id": "cnebddt", "body": "So you've browsed 4chan, do you think you're a worse person than before?"}, {"id": "cnedc0p", "body": "I think his argument is that people who browse it to a certain extent become worse people. You have to internalize the attitude of the board and the argument style of the commenters. "}, {"id": "cnebddt", "body": "So you've browsed 4chan, do you think you're a worse person than before?"}, {"id": "cnel25s", "body": "Depends how you define \"worse\". Is it a lot harder to make me feel repulsed at something vile? Yes. Am I more \"meh\" about \"nasty\" things due to overexposure to them? Yes. Am I any more likely to *do* nasty things? Hell no."}, {"id": "cnel25s", "body": "Depends how you define \"worse\". Is it a lot harder to make me feel repulsed at something vile? Yes. Am I more \"meh\" about \"nasty\" things due to overexposure to them? Yes. Am I any more likely to *do* nasty things? Hell no."}, {"id": "cnhmzdh", "body": "This is the answer I was going to give op. 4chan can desensitize you and give you thicker skin, but it doesn't make you any worse than you already are. \n\n\nWhat it can do is loosen some unhealthily strict views that might be the only things hiding whatever demons you already have. I find that healthy. Knowing how much of an asshole you are can be good and help you improve. \n\n\ncan only make you as bad a person as you already are, it just makes you less inclined to hide it from others. "}, {"id": "cne8x81", "body": "I've mostly browsed /v/, /co/ and previously /int/, so my experiences are based on those boards.\n\nThere's different culture to each board, but most people browse more than one board. Culture spills over, otherwise you wouldn't have /sp/ memes in /v/ and 4chan memes on Reddit.\n\nIn the same way attitudes and mentality spill over and you get a pessimist attitude all-around on 4chan.\n\nReddit has bad boards, but it doesn't work the same way that 4chan does because of how the sites are built differently and users communicate differently as a result."}, {"id": "cnes25c", "body": "Posting culture =/= people's personalities. \n\nAre you honestly so affected by random people posting on an imageboard? \n\nPosts there trend towards that style due to hivemind, but that does not necessarily mean it affects them as people. \n\nDoes your personality change based on what subreddits you browse? If you go to /r/games do you yell at people about DRM and preordering in real life? If you go to /r/pcmasterrace do you shout to random people in gamestop about accepting the glory of gaben and leaving their peasant status behind? \n\nOf course you don't. You are severely overrating how much a hivemind on a website changes a personality. "}, {"id": "cnes25c", "body": "Posting culture =/= people's personalities. \n\nAre you honestly so affected by random people posting on an imageboard? \n\nPosts there trend towards that style due to hivemind, but that does not necessarily mean it affects them as people. \n\nDoes your personality change based on what subreddits you browse? If you go to /r/games do you yell at people about DRM and preordering in real life? If you go to /r/pcmasterrace do you shout to random people in gamestop about accepting the glory of gaben and leaving their peasant status behind? \n\nOf course you don't. You are severely overrating how much a hivemind on a website changes a personality. "}, {"id": "cnetj25", "body": "Every situation will be different but I think you're under stating how much people can be influenced by groups. A better example would be a sub like theredpill. Browsing that sub can absolutely lead to you internalize a lot of fucked up ideas. "}, {"id": "cne6gtr", "body": "My counterpoint to this is that you're describing /b/, /v/, and /pol/. Not 4chan. If I were to make a post here and say \"CMV: I believe that regularly browsing reddit will make you a worse person\" and then cited /r/spacedicks as my source, I'd be laughed out of the thread. You're doing the exact same thing.\n"}, {"id": "cnejwee", "body": "not to mention people browsing those places already find enjoyment in shit. They aren't gaining that perspective, but rather, at worst, learning about it. "}, {"id": "cne6gtr", "body": "My counterpoint to this is that you're describing /b/, /v/, and /pol/. Not 4chan. If I were to make a post here and say \"CMV: I believe that regularly browsing reddit will make you a worse person\" and then cited /r/spacedicks as my source, I'd be laughed out of the thread. You're doing the exact same thing.\n"}, {"id": "cnewijp", "body": "Imagine 4chan like an orchard of [apple] trees (hereby referred to as the [4]chard)while I tell you a story: \n\nLong ago, when the [4]chard was but a few trees, a powerful poison was used to exterminate a pest that seemed particular to a couple of the trees. It was used most importantly(to the story) on the oldest, most central tree. The first tree. The tree that provided the seeds which eventually became the entire rest of the [4]chard.\n\nThis tree, and those similarly doused with pesticide, began to produce rotten [apple]s each harvest. It began with only a small number of [apple]s per harvest, and the rot seemed to be exclusive to those trees. In a short time however, it was evident that not only had the poison began to spread via the old trees' central root systems to the rest of the ever-expanding [4]chard, but that the pesticide was ultimately ineffective at eradicating it's intended target. Ironically the pest would prove to be *so* persistent that it eventually developed a taste for the fruit of the poisoned trees in particular. So while ever-present throughout the rest of the [4]chard, the insignificant pest that was deemed capitally offensive to the young garden in it's infancy eventually took up primary residence in the very trees that drastic measures had been taken to protect. \n\nOver time, while the [4]chard continued to grow in the number of trees and overall quantity of [apple]s produced, each harvest produced more and more rotten fruit and less and less quality, refreshingly unique [apple]s. A symptom of the original poisoning invading the root system of the entire [4]chard, it wasn't long before trees throughout, even those planted years later, would begin to exhibit signs of the same ills. \n\nToday the [4]chard has massively increased in the number of trees on the plot, but the the overall quality of the fruit has experienced a noticeable and rapid decline over the years, with the discovery of truly fantastic and deserving [apple]s becoming more infrequent overall. The trees that were originally exposed to the toxicity are mere husks, crawling with parasites and very rarely producing fruit worth eating. They can't be cut down now for the same reason they were praised and admired long ago. They're integral to the root system of the entire [4]chard, and representative of the great and original idea that was the foundation for the [4]chard itself. \n\n\nIf you've the time and patience to sort through all of the semi-fermented garbage hanging about and don't mind trying to ignore all of the annoying insects who've invaded the place, a brilliantly creative or otherwise distinguished specimen of an [apple] can still be gleaned from this hopeful collective that once seemed to have limitless potential. Unfortunately it's rarely worth the effort to look anymore. \n\ntl;dr: OP's right."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cne6y7d", "body": "Another example is /x/. \n\nI feel like 4chan is also a place for people to share alternative views, those that are not accepted by the regular hivemind. That's why you can hold such extreme views there, because there is no trace to who you are, and holding bad views there won't hurt you. \n\nOn top of that, because everyone is free to express themselves, we come up with a lot of original content, as no one cares how it is received (no karma points or anything to hurt them). \n\nPlaces like /tv/ or /sci/ are also areas I visited in the past, and they are fun too. \n\nI also think OP is considering what he heard about /b/ as what represents the entirety of 4chan, when that isn't even true about /b/ itself. "}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cneapdc", "body": "i browse /fa/ pretty regularly and there's plenty of over-the-top and casual racism, homophobia and sexism (eg. responding to every post by a black person with \"shitskin\" or \"nigger\" without fail, asking asian posters \"why do you even bother?\"). /fit/ almost always has a \"fat people hate\" thread up and is also pretty racist. yesterday there was an entire thread of people seeking validation that their \"race\" was a superior one.\n\nthere are people that browse those threads ironically, then there are people who genuinely get feedback on there that makes them think that being nordic with blue eyes means that they've got zyzz's blessing.\n\ni'm not saying everyone on 4chan is a shitty person, just that there's definitely a plurality of people on there who take other people's ironic posts seriously and have their views shaped by them - especially when it feels validating or assuages their insecurities."}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cnec5i4", "body": "/c/ reporting in, nothing but cute anime and for the most part some of the more polite people of the internet. What most people seem to be saying is right /b/ and /pol/ are horrible if you don't \"get the joke\" but for the most part the rest of the boards are reasonable. That being said /fit/ has become /r9k/'s slightly more well adjusted brother. "}, {"id": "cnec5i4", "body": "/c/ reporting in, nothing but cute anime and for the most part some of the more polite people of the internet. What most people seem to be saying is right /b/ and /pol/ are horrible if you don't \"get the joke\" but for the most part the rest of the boards are reasonable. That being said /fit/ has become /r9k/'s slightly more well adjusted brother. "}, {"id": "cnehvvd", "body": "/c/ board best board"}, {"id": "cnec5i4", "body": "/c/ reporting in, nothing but cute anime and for the most part some of the more polite people of the internet. What most people seem to be saying is right /b/ and /pol/ are horrible if you don't \"get the joke\" but for the most part the rest of the boards are reasonable. That being said /fit/ has become /r9k/'s slightly more well adjusted brother. "}, {"id": "cnehs4j", "body": "If /c/ were a cafe I'd go to it. I only go there to beef up my picture stashes and to discuss the best girl in the world without the constant rape fan fic on /a/, I don't think it's a board you could claim to be your main board though. Really nice community though, only rivaled by the overly nice folks over on /ck/, they creep me out, I think they secretly eat people. Half of the boards in the Japanese Culture section are just satellites of /a/."}, {"id": "cnehs4j", "body": "If /c/ were a cafe I'd go to it. I only go there to beef up my picture stashes and to discuss the best girl in the world without the constant rape fan fic on /a/, I don't think it's a board you could claim to be your main board though. Really nice community though, only rivaled by the overly nice folks over on /ck/, they creep me out, I think they secretly eat people. Half of the boards in the Japanese Culture section are just satellites of /a/."}, {"id": "cnelvo7", "body": "I've heard /ck/ is nice, but I don't know enough about cooking to check for myself. I think a lot of the smaller boards tend to be nicer. A lot of folks are saying it's the anonymity that makes 4chan disturbing, but I think it's the speed of the larger boards like /pol/ or /b/ or /a/ or /v/. On the crowded boards a lot of what people say is meant for a quick laugh or shock before it 404s and you don't have much time to think about what you have to say, but for some people on the smaller boards the thread you posted in can be up for weeks with people reading and responding. The anonymity helps but I think it's the speed that makes /b/ retarded. I've checked in on /pol/ a few times, after moot started messing with them, and *some* of them are actually having discussions about politics now that they've lost most of their members. It's still a cesspool, but it's not nearly as bad as even a month ago."}, {"id": "cnelvo7", "body": "I've heard /ck/ is nice, but I don't know enough about cooking to check for myself. I think a lot of the smaller boards tend to be nicer. A lot of folks are saying it's the anonymity that makes 4chan disturbing, but I think it's the speed of the larger boards like /pol/ or /b/ or /a/ or /v/. On the crowded boards a lot of what people say is meant for a quick laugh or shock before it 404s and you don't have much time to think about what you have to say, but for some people on the smaller boards the thread you posted in can be up for weeks with people reading and responding. The anonymity helps but I think it's the speed that makes /b/ retarded. I've checked in on /pol/ a few times, after moot started messing with them, and *some* of them are actually having discussions about politics now that they've lost most of their members. It's still a cesspool, but it's not nearly as bad as even a month ago."}, {"id": "cnenjv9", "body": "I'm from /a/ myself, it is definitely the best of the crowded boards. We don't get any of the drama and the mods aren't too bad either. There is shit posting but it's unavoidable, we all shit post from time to time. I don't think any thread moves so fast that you don't have time to compose something that isn't utter diarrhea though, we've had geo-political threads on Strike Witches. It all goes back to culture and samefagging, a lot of people act like they think they are expected to and if you don't develop a filter to see what they are actually trying to say it just looks like a wall of shit. You will actually find very few politicos on /pol/. Most are ironic Nazis or have absolutely no clue what they are going on about. It's a \"it was the jews\" joke that got out of hand. A large section has moved to 8chan and because they can now split into their respective boards such as /leftypol/ and what ever racial slur the national socialists are under these days there is little confrontation. Leftpol is full of stupid fucking teenagers and the nazis are nazis. At least they are weaker in their dispersion. Might drop into pol if they are actually talking politics now, a Trotskyist will always kick the hornet's nest."}, {"id": "cnenjv9", "body": "I'm from /a/ myself, it is definitely the best of the crowded boards. We don't get any of the drama and the mods aren't too bad either. There is shit posting but it's unavoidable, we all shit post from time to time. I don't think any thread moves so fast that you don't have time to compose something that isn't utter diarrhea though, we've had geo-political threads on Strike Witches. It all goes back to culture and samefagging, a lot of people act like they think they are expected to and if you don't develop a filter to see what they are actually trying to say it just looks like a wall of shit. You will actually find very few politicos on /pol/. Most are ironic Nazis or have absolutely no clue what they are going on about. It's a \"it was the jews\" joke that got out of hand. A large section has moved to 8chan and because they can now split into their respective boards such as /leftypol/ and what ever racial slur the national socialists are under these days there is little confrontation. Leftpol is full of stupid fucking teenagers and the nazis are nazis. At least they are weaker in their dispersion. Might drop into pol if they are actually talking politics now, a Trotskyist will always kick the hornet's nest."}, {"id": "cneq8ho", "body": "I go to /a/ occasionally, definitely the best of the large boards. /pol/ is still a cesspit but it's less overinflated. There will always be patient people discussing politics and people shitposting about \"muh Jews\" but with the recent exodus it's easier to find politicos. It could be better and could be worse and will probably return to normal eventually. I checked out 8chan. I suppose the separate boards are good for separating the different shitposters, but just having a board for each opinion seemed too much like an image board version reddit, and we have reddit for reddit. When I saw /pol/ next to /leftypol/ my immediate thought was /r/politics and /r/conservative or whatever the conservative variant is."}, {"id": "cneq8ho", "body": "I go to /a/ occasionally, definitely the best of the large boards. /pol/ is still a cesspit but it's less overinflated. There will always be patient people discussing politics and people shitposting about \"muh Jews\" but with the recent exodus it's easier to find politicos. It could be better and could be worse and will probably return to normal eventually. I checked out 8chan. I suppose the separate boards are good for separating the different shitposters, but just having a board for each opinion seemed too much like an image board version reddit, and we have reddit for reddit. When I saw /pol/ next to /leftypol/ my immediate thought was /r/politics and /r/conservative or whatever the conservative variant is."}, {"id": "cneqvee", "body": "I guess I'll give /pol/ another go then. 8chan seemed like a good idea at the beginning but I soon realised that I hate nothing more than a room full of people agreeing with each other, especially when it came to politics. Fuckin' Brocialists..."}, {"id": "cneqvee", "body": "I guess I'll give /pol/ another go then. 8chan seemed like a good idea at the beginning but I soon realised that I hate nothing more than a room full of people agreeing with each other, especially when it came to politics. Fuckin' Brocialists..."}, {"id": "cnere15", "body": "Well, /pol/s still an echo chamber in denial, but now with less shitposting. I mean I'm a random guy on the internet so you should still check it out to update your opinion, but they do still mostly agree with themselves. More differing opinion would do them a world of good."}, {"id": "cnere15", "body": "Well, /pol/s still an echo chamber in denial, but now with less shitposting. I mean I'm a random guy on the internet so you should still check it out to update your opinion, but they do still mostly agree with themselves. More differing opinion would do them a world of good."}, {"id": "cneryiz", "body": "I'll check out the first few threads now...\n\nSandy Hook, keeping it /k/. Mostly people talking about it being a hoax, wasn't aware that was an opinion but okay. Okay thread, better than usual, I'll give it to them,\n\n\nNorth Korean sanctions because of cyberattack, they claim it wasn't them, some recent news is nice to see. Some decent discussion about how a government shouldn't be involved in a private organisations affairs, surprising. If you ignore the guys talking about sending in the seals then it's a solid thread.\n\n\n\nAnd conspiracy nut thread about the bible predicting thermonuclear war in America. Plenty of quotes and it was apparently the jews.....they were doing so well.\n\n2/3 ain't bad."}, {"id": "cneryiz", "body": "I'll check out the first few threads now...\n\nSandy Hook, keeping it /k/. Mostly people talking about it being a hoax, wasn't aware that was an opinion but okay. Okay thread, better than usual, I'll give it to them,\n\n\nNorth Korean sanctions because of cyberattack, they claim it wasn't them, some recent news is nice to see. Some decent discussion about how a government shouldn't be involved in a private organisations affairs, surprising. If you ignore the guys talking about sending in the seals then it's a solid thread.\n\n\n\nAnd conspiracy nut thread about the bible predicting thermonuclear war in America. Plenty of quotes and it was apparently the jews.....they were doing so well.\n\n2/3 ain't bad."}, {"id": "cnetsx0", "body": "Yeah I was kind of surprised that there were sandy hook hoax theorist, but I suppose any sufficiently public tragedy is going to have some deniers.\n\n2/3 ain't bad and it's much better than before mootykins started messing with them. I give it a few months before majority shitposters leak back/in again, but it should be decent while it lasts."}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cneqyl3", "body": "\\> mired in \n\n\\> /fit/\n\nha\n"}, {"id": "cne43te", "body": "Back when I browsed 4chan, the only board I visited frequently was /fa/. On /fa/, a lot of users use tripcodes, so that they can be recognized as consistently good advice givers, and the anonymity allowed for more honest feedback. Another example of a 4chan board that isn't mired in \"a general pessimistic group mentality\" is /fit/, where most complaining posts are tongue-in-cheek.\n\nI don't disagree that boards like /b/ and /r9k/ can be toxic environments but there are also people who regularly browse ironically (if that makes sense)"}, {"id": "cneku2l", "body": "Nothing wrong with /tg/ - the whole group-choose-your-own-adventure-made-up-as-you-go-along thing is pretty cool, too."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne6z3t", "body": "I believe that you didn't cite a single argument that doesn't also describe reddit perfectly."}, {"id": "cne6z3t", "body": "I believe that you didn't cite a single argument that doesn't also describe reddit perfectly."}, {"id": "cne94yp", "body": "That's exactly what I was thinking. OP should browse /r/imgoingtohellforthis or /r/shitredditsays or /r/punchablefaces. Same shit"}, {"id": "cne94yp", "body": "That's exactly what I was thinking. OP should browse /r/imgoingtohellforthis or /r/shitredditsays or /r/punchablefaces. Same shit"}, {"id": "cnec4r3", "body": "/r/imgoingtohellforthis magically manages to be both offensive *and* less funny than /b/, which is a pretty big achievement in my book."}, {"id": "cnec4r3", "body": "/r/imgoingtohellforthis magically manages to be both offensive *and* less funny than /b/, which is a pretty big achievement in my book."}, {"id": "cnedmmj", "body": "Seriously. Half the time it's gold, half the time it's the most irritatingly middle-school shit on the front page."}, {"id": "cnedmmj", "body": "Seriously. Half the time it's gold, half the time it's the most irritatingly middle-school shit on the front page."}, {"id": "cneuhs7", "body": "Yep. I subbed because I liked some of the stuff there then had to un-sub again because of the most irritating, adolescent bullshit that plagues it. "}, {"id": "cnec4r3", "body": "/r/imgoingtohellforthis magically manages to be both offensive *and* less funny than /b/, which is a pretty big achievement in my book."}, {"id": "cnedoll", "body": "Not as offensive. It's /b/lite"}, {"id": "cne6z3t", "body": "I believe that you didn't cite a single argument that doesn't also describe reddit perfectly."}, {"id": "cnee2rv", "body": "...or tumblr. The echo chamber level there is above and beyond anything I've seen. /r/TumblrinAction"}, {"id": "cnee2rv", "body": "...or tumblr. The echo chamber level there is above and beyond anything I've seen. /r/TumblrinAction"}, {"id": "cnefjph", "body": "I don't think that /r/TumblrInAction demonstrates that tumblr is an echo chamber, even if it is. It's very easy to cherrypick specific parts of a site in order to prove a point.\n/r/TumblrInAction shouldn't convince you that tumblr is an echo chamber any more than a compilation of /r/GreatApes or /r/CoonTown should convince you that reddit is a racist."}, {"id": "cnefjph", "body": "I don't think that /r/TumblrInAction demonstrates that tumblr is an echo chamber, even if it is. It's very easy to cherrypick specific parts of a site in order to prove a point.\n/r/TumblrInAction shouldn't convince you that tumblr is an echo chamber any more than a compilation of /r/GreatApes or /r/CoonTown should convince you that reddit is a racist."}, {"id": "cneg549", "body": "Sometimes they find hate speech with 80'000 notes and up. However, it is not that. The very nature of tumblr is what convinced me that tumblr is an echo chamber. Reddit is also an echo chamber by nature. They work similarily too Neither are racist or hateful or discriminatory per se, but some subreddits on reddit and some popular tags on tumblr undeniably are."}, {"id": "cneg549", "body": "Sometimes they find hate speech with 80'000 notes and up. However, it is not that. The very nature of tumblr is what convinced me that tumblr is an echo chamber. Reddit is also an echo chamber by nature. They work similarily too Neither are racist or hateful or discriminatory per se, but some subreddits on reddit and some popular tags on tumblr undeniably are."}, {"id": "cnei2si", "body": "You do realize that 79000 of those notes could be people reblogging someone refuting the original post, right?"}, {"id": "cnefjph", "body": "I don't think that /r/TumblrInAction demonstrates that tumblr is an echo chamber, even if it is. It's very easy to cherrypick specific parts of a site in order to prove a point.\n/r/TumblrInAction shouldn't convince you that tumblr is an echo chamber any more than a compilation of /r/GreatApes or /r/CoonTown should convince you that reddit is a racist."}, {"id": "cnelh94", "body": "What convinced me reddit was racist were the intensely racist comments and posts during Fergurson. "}, {"id": "cne6z3t", "body": "I believe that you didn't cite a single argument that doesn't also describe reddit perfectly."}, {"id": "cnelqzy", "body": "I think comments like this are what make Redditch different from 4chan"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne7aan", "body": "If part of your argument is the group mentality or echo chamber, I think reddit is much more guilty of this than 4chan.\n\n4chan is somewhat of an anti-echo chamber, where in any given thread you will find every possible opinion and people being contrarian. On reddit you usually will only see the few opinions the hivemind agrees with (sort of like how this post will likely get buried.)\n\nIn this sense I believe reddit is a lot more of a normalizing force than 4chan. In addition, since you are linked to an identity on reddit, you are much more concerned with actually constructing an identity and being something, whereas on 4chan the potential to reinvent yourself and your view is infinite. \n\nI don't think browsing 4chan actively makes you into a worse (or better) person, in fact I don't necessarily believe it changes you at all unless you are an impressionable kid, in which case all websites have the potential to change you. So applying your last argument, there is an equal amount of terrible stuff on reddit, but it's actually a lot more subtly terrible than 4chan, where it's often fairly blatant that people are trolling. So if you are impressionable, you are probably a lot less aware of how reddit is changing you for the worse.\n\nIn many ways I think 4chan is like the condensed form of what makes the internet in general a bad place, but so much so that it becomes obvious, and if you are self-aware at all, allows you to spot where the rest of the internet is actually absurd. \n\nStill, I'm drawing largely from my own experiences and I guess the effect really just depends on the individual person. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cne6fno", "body": "To add to your point, three only way to really be \"inside\" on the joke is to frequent those boards often. /b/ is scary from the outside, but after you go there enough, you realize it's just people trying to be the scariest they can to the fresh meat. \n \nSo in short, frequently using 4chan actually helps you realize 4chan isn't just for inherently \"worse\" people. It's just an internet culture"}, {"id": "cne6fno", "body": "To add to your point, three only way to really be \"inside\" on the joke is to frequent those boards often. /b/ is scary from the outside, but after you go there enough, you realize it's just people trying to be the scariest they can to the fresh meat. \n \nSo in short, frequently using 4chan actually helps you realize 4chan isn't just for inherently \"worse\" people. It's just an internet culture"}, {"id": "cnehnc1", "body": "\"The stories and information posted here are artistic works of fiction and falsehood.\nOnly a fool would take anything posted here as fact.\"\n\n\nThis is literally posted on every board at the top. "}, {"id": "cne6fno", "body": "To add to your point, three only way to really be \"inside\" on the joke is to frequent those boards often. /b/ is scary from the outside, but after you go there enough, you realize it's just people trying to be the scariest they can to the fresh meat. \n \nSo in short, frequently using 4chan actually helps you realize 4chan isn't just for inherently \"worse\" people. It's just an internet culture"}, {"id": "cnebxvv", "body": "Huh, they're not that bad because they're nicer to established posters who get used to the copious amounts of hate speech is supposed to be a redeeming quality?"}, {"id": "cnebxvv", "body": "Huh, they're not that bad because they're nicer to established posters who get used to the copious amounts of hate speech is supposed to be a redeeming quality?"}, {"id": "cnedugv", "body": "We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things. However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality. It is simple something that people say because it is a meme. (And it just so happens to be one from 4chan, where the same applies to the users who say it there.) \n \nBeing offensive for the sake of being offensive != hateful. It means you are making deadpan humour based on an inside joke. \n \nAlso, this all puts aside something far more important: if you are actually saying these things because you are a hateful person, you actually having a medium to express those views isn't what makes you a bad human being. Having those hateful ideologies is what makes you bad, and you can't blame a third party message board for the shitty things the people who visit it spew. If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids makes all of Reddit bad"}, {"id": "cnedugv", "body": "We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things. However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality. It is simple something that people say because it is a meme. (And it just so happens to be one from 4chan, where the same applies to the users who say it there.) \n \nBeing offensive for the sake of being offensive != hateful. It means you are making deadpan humour based on an inside joke. \n \nAlso, this all puts aside something far more important: if you are actually saying these things because you are a hateful person, you actually having a medium to express those views isn't what makes you a bad human being. Having those hateful ideologies is what makes you bad, and you can't blame a third party message board for the shitty things the people who visit it spew. If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids makes all of Reddit bad"}, {"id": "cnenzd6", "body": "> Being offensive for the sake of being offensive != hateful.\n\nI wish more people understood that.\n\nI had a time a black friend told me a story about how he stole some watermelon from a grocery store. I said, \"That's probably the most nigger thing I've ever heard. Not only did you steal something, but it was a fucking watermelon. Did you steal some grape drink while you were there?\"\n\nHe thought it was the funniest shit ever."}, {"id": "cnenzd6", "body": "> Being offensive for the sake of being offensive != hateful.\n\nI wish more people understood that.\n\nI had a time a black friend told me a story about how he stole some watermelon from a grocery store. I said, \"That's probably the most nigger thing I've ever heard. Not only did you steal something, but it was a fucking watermelon. Did you steal some grape drink while you were there?\"\n\nHe thought it was the funniest shit ever."}, {"id": "cnermho", "body": "Are you sure he wasn't just pretending because that was most hurtful thing he had ever heard in his life and you didn't pick up on it because you are so used to being a massive dick. "}, {"id": "cnermho", "body": "Are you sure he wasn't just pretending because that was most hurtful thing he had ever heard in his life and you didn't pick up on it because you are so used to being a massive dick. "}, {"id": "cnesc7g", "body": "$100\u2030 sure"}, {"id": "cnedugv", "body": "We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things. However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality. It is simple something that people say because it is a meme. (And it just so happens to be one from 4chan, where the same applies to the users who say it there.) \n \nBeing offensive for the sake of being offensive != hateful. It means you are making deadpan humour based on an inside joke. \n \nAlso, this all puts aside something far more important: if you are actually saying these things because you are a hateful person, you actually having a medium to express those views isn't what makes you a bad human being. Having those hateful ideologies is what makes you bad, and you can't blame a third party message board for the shitty things the people who visit it spew. If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids makes all of Reddit bad"}, {"id": "cnelrg3", "body": "Reddit is notoriously \"brogressive\", in that the user base in general is quite supportive of some \"liberal\" points of view, but massively damning of ones that aren't of benefit to primarily young, primarily white, primarily male people. Hell, calling someone an SJW on here is a damning indictment. I've also never heard the phrase \"feminazi\" said seriously outside of reddit. I don't think I've heard it said outside of reddit, period, actually. These \"jokes\" have a funny way of trickling down. Hear them enough and they start to have a ring of truth about them, valid or not."}, {"id": "cnelrg3", "body": "Reddit is notoriously \"brogressive\", in that the user base in general is quite supportive of some \"liberal\" points of view, but massively damning of ones that aren't of benefit to primarily young, primarily white, primarily male people. Hell, calling someone an SJW on here is a damning indictment. I've also never heard the phrase \"feminazi\" said seriously outside of reddit. I don't think I've heard it said outside of reddit, period, actually. These \"jokes\" have a funny way of trickling down. Hear them enough and they start to have a ring of truth about them, valid or not."}, {"id": "cnemrnz", "body": "While that is fair, it is also making the contention that having certain ideologies inherently make you a worse person. Your argument is primarily based on the idea the modernist views are ultimately the best views, and other views are worse, making their followers bad people. \n \nAlso, if you have never heard femenazi used outside of Reddit (or other internet forums) proof that the jokes are in fact not trickling down? People say these things here but not in the outside world, which doesn't even matter under my third contention, which states that you're a bad person if you believe the hateful things you write, not if you write them. I don't even have to believe what I'm writing right now. I could actually agree with you, and I simply wish to be argumentative. It is the same thing as using the words \"faggot\" or \"nigger\" for the sake of being offensive, which is the way that 4chan operates for the most part."}, {"id": "cnemrnz", "body": "While that is fair, it is also making the contention that having certain ideologies inherently make you a worse person. Your argument is primarily based on the idea the modernist views are ultimately the best views, and other views are worse, making their followers bad people. \n \nAlso, if you have never heard femenazi used outside of Reddit (or other internet forums) proof that the jokes are in fact not trickling down? People say these things here but not in the outside world, which doesn't even matter under my third contention, which states that you're a bad person if you believe the hateful things you write, not if you write them. I don't even have to believe what I'm writing right now. I could actually agree with you, and I simply wish to be argumentative. It is the same thing as using the words \"faggot\" or \"nigger\" for the sake of being offensive, which is the way that 4chan operates for the most part."}, {"id": "cnetm57", "body": "Me not hearing things like \"feminazi\" in the real world (I have heard it in other forums and elsewhere on the internet, now that I think about it. I spend far too much time on reddit. It sort of is the internet for me now, bar some specialist interest sites) says more about the company I keep than whether or not these ideas trickle down. I live in a country that has ninety-something percent religious adherence (at least by census data) but don't there is no one under the age of 50 in my circle of friends or acquaintances who goes to church. My personal experience is not statistically indicative of wider norms. I similarly do not have any friends who are ever casually racist, jokingly or not. You know who I do hear come out with genuinely racist comments - usually of the \"I'm not racist, but...\" variety? The same people who make racist jokes. People of my parents' generation, people I work with, friends younger siblings or cousins... The jokes definitely normalise the thinking.\n\nAnd also, fuck yeah I think *some* people with different ideologies to mine are worse people. I think racists, sexists, and homophobes are all worse people than they would be without those ideologies. \n\nEdit; You know what? It's 5am here and this comment is sleep deprived stream of consciousness that doesn't argue we'll, if at all. Here's a paper that says what I was trying to say far more coherently. http://libres.uncg.edu/ir/listing.aspx?id=7861"}, {"id": "cnetm57", "body": "Me not hearing things like \"feminazi\" in the real world (I have heard it in other forums and elsewhere on the internet, now that I think about it. I spend far too much time on reddit. It sort of is the internet for me now, bar some specialist interest sites) says more about the company I keep than whether or not these ideas trickle down. I live in a country that has ninety-something percent religious adherence (at least by census data) but don't there is no one under the age of 50 in my circle of friends or acquaintances who goes to church. My personal experience is not statistically indicative of wider norms. I similarly do not have any friends who are ever casually racist, jokingly or not. You know who I do hear come out with genuinely racist comments - usually of the \"I'm not racist, but...\" variety? The same people who make racist jokes. People of my parents' generation, people I work with, friends younger siblings or cousins... The jokes definitely normalise the thinking.\n\nAnd also, fuck yeah I think *some* people with different ideologies to mine are worse people. I think racists, sexists, and homophobes are all worse people than they would be without those ideologies. \n\nEdit; You know what? It's 5am here and this comment is sleep deprived stream of consciousness that doesn't argue we'll, if at all. Here's a paper that says what I was trying to say far more coherently. http://libres.uncg.edu/ir/listing.aspx?id=7861"}, {"id": "cneurp5", "body": "So you're stating you don't know people who make racial jokes, but comment on how people who make racial jokes think? Even as anecdotal evidence, what you offer is fallacious. \n \nTypically, \"I'm not racist, but...\" is a statement not as a joke, but an actual observation that typically coincides with racial stereotypes. (Not to say it can't be the intro to a racial joke.) It isn't inherently racist to notice a statistical normality involving race. This is often drawn from personal, anecdotal experiences that may sound like stereotyping to some, but could possibly be very relevant in their region. Imagine living in low-wealth Detroit where there is a high percentage in both crime rate and ethnic minorities. There is no doubt that someone in that area would make that correlation, whether or not it be true. Just like you have your anecdotal experience, these people have developed theirs. \n \nAlso, you and others continue to ignore the actual issue at hand, which is the fact that them having an outlet to express these ideologies does not make them bad people. It would be the fact that they have the ideologies in the first place. An outlet of free speech is not to blame for the speech given. It's like blaming the soap company that made the box the town crier stands on. \n \nI will not continue to address the issue on ideology, as it is irrelevant to the CMV topic"}, {"id": "cneurp5", "body": "So you're stating you don't know people who make racial jokes, but comment on how people who make racial jokes think? Even as anecdotal evidence, what you offer is fallacious. \n \nTypically, \"I'm not racist, but...\" is a statement not as a joke, but an actual observation that typically coincides with racial stereotypes. (Not to say it can't be the intro to a racial joke.) It isn't inherently racist to notice a statistical normality involving race. This is often drawn from personal, anecdotal experiences that may sound like stereotyping to some, but could possibly be very relevant in their region. Imagine living in low-wealth Detroit where there is a high percentage in both crime rate and ethnic minorities. There is no doubt that someone in that area would make that correlation, whether or not it be true. Just like you have your anecdotal experience, these people have developed theirs. \n \nAlso, you and others continue to ignore the actual issue at hand, which is the fact that them having an outlet to express these ideologies does not make them bad people. It would be the fact that they have the ideologies in the first place. An outlet of free speech is not to blame for the speech given. It's like blaming the soap company that made the box the town crier stands on. \n \nI will not continue to address the issue on ideology, as it is irrelevant to the CMV topic"}, {"id": "cnev6ws", "body": "Honestly, read the abstract of the paper I linked in the edit. It makes the point far better than any barely coherent blather that was falling out of my sleepy head. The key idea here is Normalisation, in Foucault's sense.\n\nAgain, apologies for piss-poor point making."}, {"id": "cnev6ws", "body": "Honestly, read the abstract of the paper I linked in the edit. It makes the point far better than any barely coherent blather that was falling out of my sleepy head. The key idea here is Normalisation, in Foucault's sense.\n\nAgain, apologies for piss-poor point making."}, {"id": "cnew391", "body": "No worries, it took my half an hour to wrote that last thing, it's too late for me to be doing this. Nonetheless, I proceed. \n \nSo the issue you see is valid, the constant use of the words without context or the ideas without regard for the serious nature could lead to society reaccepting the ideologies we jest about. \n \nHowever, I do not see this as something society as a whole could face. This is definitely a large forum, and same with 4chan, but it is not large enough for that sort of social change. With the internet allowing free speech in the simplest manner possible, not only does society not really acknowledge the general views of this website, but other websites and forums challenge us as well. While Reddit is the \"front page of the internet\", not everyone is subscribed to that metaphorical newspaper. \n \nBut this all look so much further out than it needs to. Reddit itself challenges normalization of idea. With so many subreddits, different topics, each with the capability for any individual to post anything, you can never take away each individual voice. Others can drown them out for sure, but no idea is safe for some degree of scrutiny. Hell, look where we're posting right now: a forum dedicated to opposing different ideologies, ranging all over the spectrum. \n \nThe threat normalization has is to the individuals who are already susceptible to outside influence. People who seek the validation of thoughts they already have lingering in their heads. People who think that going against the grain is why they have so many issues, and allowing them to allocate blame for those issues to others. I'm talking people who think others aren't accepting of them because they believe in an extreme ideology. \n \nYes, the internet can help this happen. Reddit, 4chan, and any site that allows radical speech can trigger people to think these views are okay, and that they can actually act upon them in real life. But it isn't a regular thing. These people are the extreme minority who likely already have issues. \n \nThe CMV states that frequent use of 4chan will make you a worse person. This is a blanket statement, and in no way specifies certain people. To suggest that any randy that goes onto 4chan often subscribes to ideologies that are extreme, hateful, and/or bad, is and outrageous generalization. Even if we just talk about /b/, the biggest cesspool on the internet, it's still full of angsty teen who are just trying to be edgy. (I speak from my own anecdotal experience on this one.) \n \nSo can forums trigger hate? Yes. This is an unfortunate side effect to free speech. Does frequenting a forum on fitness, fashion, anime, technology, weapons, My Little Pony, or general randomness make you hateful? No. Does even frequenting a politically incorrect board, which is full of people who actually subscribe to hateful ideologies, make you hateful? No, it makes you someone who reads people's hateful ideologies. In the common man, it is your choice where or not you subscribe to a view, and if you see the evidence as fit to change your view, it is not at the hand of the forum, but rather your own critical thinking skills that makes you decide this. \n \nEdit: sorry if I gave you a dozen mail notifications, my phone sent this same post several times"}, {"id": "cnemrnz", "body": "While that is fair, it is also making the contention that having certain ideologies inherently make you a worse person. Your argument is primarily based on the idea the modernist views are ultimately the best views, and other views are worse, making their followers bad people. \n \nAlso, if you have never heard femenazi used outside of Reddit (or other internet forums) proof that the jokes are in fact not trickling down? People say these things here but not in the outside world, which doesn't even matter under my third contention, which states that you're a bad person if you believe the hateful things you write, not if you write them. I don't even have to believe what I'm writing right now. I could actually agree with you, and I simply wish to be argumentative. It is the same thing as using the words \"faggot\" or \"nigger\" for the sake of being offensive, which is the way that 4chan operates for the most part."}, {"id": "cnerxsy", "body": "I think having genocidal views does inherently make you a worse person. call me crazy. "}, {"id": "cnerxsy", "body": "I think having genocidal views does inherently make you a worse person. call me crazy. "}, {"id": "cneshn3", "body": "There is a difference in promoting genocide and having either a conservative or postmodernist view on society. This, again, doesn't matter if the post is of satire, as no matter what view the poster expresses, it is ultimately expressed for the sake of humor"}, {"id": "cnedugv", "body": "We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things. However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality. It is simple something that people say because it is a meme. (And it just so happens to be one from 4chan, where the same applies to the users who say it there.) \n \nBeing offensive for the sake of being offensive != hateful. It means you are making deadpan humour based on an inside joke. \n \nAlso, this all puts aside something far more important: if you are actually saying these things because you are a hateful person, you actually having a medium to express those views isn't what makes you a bad human being. Having those hateful ideologies is what makes you bad, and you can't blame a third party message board for the shitty things the people who visit it spew. If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids makes all of Reddit bad"}, {"id": "cnee920", "body": "> We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things\n\n\nYes, reddit, like 4chan, is full of people who are in effect very hateful, but they try their hardest to justify that behavior as not hateful. I don't buy it for a second. \n\n\n>However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality.\n\n\nThey are homophobic. They may not be willing to admit it, but they are. Using homophobic slurs is the easiest way to identify yourself as a homophobe. \n\n\nAlso, supporting marriage equality does not mean a person is not homophobic. \n\n\n\n> If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids[1] makes all of Reddit bad\n\n\n\nAllowing all those terrible subs does reflect poorly on all of reddit. "}, {"id": "cnee920", "body": "> We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things\n\n\nYes, reddit, like 4chan, is full of people who are in effect very hateful, but they try their hardest to justify that behavior as not hateful. I don't buy it for a second. \n\n\n>However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality.\n\n\nThey are homophobic. They may not be willing to admit it, but they are. Using homophobic slurs is the easiest way to identify yourself as a homophobe. \n\n\nAlso, supporting marriage equality does not mean a person is not homophobic. \n\n\n\n> If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids[1] makes all of Reddit bad\n\n\n\nAllowing all those terrible subs does reflect poorly on all of reddit. "}, {"id": "cnejhyi", "body": "Under the logic used under your argument, it would be considered racist for a rapper to use the n word in their song. It would also mean that deadpan comedians like Stephen Colbert support what they are making fun of. Is this agreeable? "}, {"id": "cnee920", "body": "> We all can be hateful in our words, but we mostly never mean harm in it. Look at Reddit, we are still full of people who will make remakes similar to \"op is a fag\" among other things\n\n\nYes, reddit, like 4chan, is full of people who are in effect very hateful, but they try their hardest to justify that behavior as not hateful. I don't buy it for a second. \n\n\n>However, I very superbly doubt--especially in Reddit's liberal demographic--that people who say that actually are homophobic and/or hate marriage equality.\n\n\nThey are homophobic. They may not be willing to admit it, but they are. Using homophobic slurs is the easiest way to identify yourself as a homophobe. \n\n\nAlso, supporting marriage equality does not mean a person is not homophobic. \n\n\n\n> If having a legit Nazism thread on /pol/ makes all of 4chan bad, having subreddits like /r/picsofdeadkids[1] makes all of Reddit bad\n\n\n\nAllowing all those terrible subs does reflect poorly on all of reddit. "}, {"id": "cnefery", "body": "[deleted]"}, {"id": "cnefery", "body": "[deleted]"}, {"id": "cneffw6", "body": "See, this is 4chan humor. Not actually humorous. Just some hate speech. "}, {"id": "cnebxvv", "body": "Huh, they're not that bad because they're nicer to established posters who get used to the copious amounts of hate speech is supposed to be a redeeming quality?"}, {"id": "cnei12y", "body": "You're taking 4chan too seriously. "}, {"id": "cne6fno", "body": "To add to your point, three only way to really be \"inside\" on the joke is to frequent those boards often. /b/ is scary from the outside, but after you go there enough, you realize it's just people trying to be the scariest they can to the fresh meat. \n \nSo in short, frequently using 4chan actually helps you realize 4chan isn't just for inherently \"worse\" people. It's just an internet culture"}, {"id": "cne81na", "body": "> you realize it's just people trying to be the scariest they can to the fresh meat. \n\nOh absolutely, specially after you have been to 8chan."}, {"id": "cne81na", "body": "> you realize it's just people trying to be the scariest they can to the fresh meat. \n\nOh absolutely, specially after you have been to 8chan."}, {"id": "cneisia", "body": "As a non 4chan user: what's 8chan? And why does going there help you realise this?"}, {"id": "cneisia", "body": "As a non 4chan user: what's 8chan? And why does going there help you realise this?"}, {"id": "cnel34e", "body": "Without tripping over Genderless January 4chan's staff was gutted and replaced, and 4chan has been hemorrhaging users to 8chan since."}, {"id": "cnel34e", "body": "Without tripping over Genderless January 4chan's staff was gutted and replaced, and 4chan has been hemorrhaging users to 8chan since."}, {"id": "cnermfi", "body": "What is gender less January? "}, {"id": "cnermfi", "body": "What is gender less January? "}, {"id": "cnesifn", "body": "To my knowledge, it was something along the lines of Moot and the moderating staff of 4chan outing themselves as being a lot more restrictive than they would have liked people to believe. A significant amount of content relating to gender politics was censored and removed from 4chan, a place ostensibly for totally free speech, and there has been a fairly huge amount of backlash towards Moot and 4chan since.\n\n\nI have to be honest, though, I might be wrong. I have a reasonably dim view of the actual events that are being referred to, and talking about the most recent \"scandal\" involving 4chan (within its own userbase.)"}, {"id": "cnesifn", "body": "To my knowledge, it was something along the lines of Moot and the moderating staff of 4chan outing themselves as being a lot more restrictive than they would have liked people to believe. A significant amount of content relating to gender politics was censored and removed from 4chan, a place ostensibly for totally free speech, and there has been a fairly huge amount of backlash towards Moot and 4chan since.\n\n\nI have to be honest, though, I might be wrong. I have a reasonably dim view of the actual events that are being referred to, and talking about the most recent \"scandal\" involving 4chan (within its own userbase.)"}, {"id": "cnevf7a", "body": "No it's the sticky right at the top of this subreddit saying gender topics are verboten for january. \n\nThe very very short version is that Moot replaced the mod staff with Jezebel/Gawker supporters and mass banned basically everyone that wasn't on board with tumblr style social justice."}, {"id": "cnevf7a", "body": "No it's the sticky right at the top of this subreddit saying gender topics are verboten for january. \n\nThe very very short version is that Moot replaced the mod staff with Jezebel/Gawker supporters and mass banned basically everyone that wasn't on board with tumblr style social justice."}, {"id": "cnexh38", "body": "Ah, my bad, I got to this cmv without traversing the associated subreddit. At any rate, we do appear to be referring to the same thing, although I may have unconsciously complied to genderless January in my description of the events. "}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cnect52", "body": "I strongly disagree with this. I've been on 4chan for 9 years now, and I'm pretty sure it's one of the only places where it's not a costume party.\n\nIt's one of the only places where you can speak your mind, where you can discuss a thought without being judged for it, where you can actually behave as your feeling tell you to.\n\nIt's a place where everyone is treated equally, where the one and only concept to determine worth is meritocracy. The whole idea of the insults is to weed out the newfags, people who are still completely inserted into the mindset that the internet, or 4chan particularly is the same as the real world.\n\nPeople are used to being treated a particular way, women are used to being treated differently than ment, rich people are used to be treated differently than poor people, this doesn't exist in 4chan. You're anonymous, you're nothing, no one, the only thing people see are your posts. Normally people who dislike 4chan are used to being treated better than the average human being; but 4chan is filled of college dropouts, trailer trash, alcoholics, lonely people; it's a haven for them, they're used to being inferior, but here they're just another anon.\n\nAnother phenomenon I find very interesting is that the amount of female users in 4chan is way above the average. Personally, I'd wager that this is because of the same reason, these women understand that there's no reason for them to be treated differently, and I assume that it's quite pleasant to not be treated like some superior entity, like they do here, for example. \n\nTo be completely honest, I would say 4chan is, without a doubt, a nicer place than Reddit. And I spend a LOT of time on reddit, but this isn't a nice place, it's more like a lot of children pretending to have some class. People in 4chan are done pretending, and that is a beautiful thing."}, {"id": "cnect52", "body": "I strongly disagree with this. I've been on 4chan for 9 years now, and I'm pretty sure it's one of the only places where it's not a costume party.\n\nIt's one of the only places where you can speak your mind, where you can discuss a thought without being judged for it, where you can actually behave as your feeling tell you to.\n\nIt's a place where everyone is treated equally, where the one and only concept to determine worth is meritocracy. The whole idea of the insults is to weed out the newfags, people who are still completely inserted into the mindset that the internet, or 4chan particularly is the same as the real world.\n\nPeople are used to being treated a particular way, women are used to being treated differently than ment, rich people are used to be treated differently than poor people, this doesn't exist in 4chan. You're anonymous, you're nothing, no one, the only thing people see are your posts. Normally people who dislike 4chan are used to being treated better than the average human being; but 4chan is filled of college dropouts, trailer trash, alcoholics, lonely people; it's a haven for them, they're used to being inferior, but here they're just another anon.\n\nAnother phenomenon I find very interesting is that the amount of female users in 4chan is way above the average. Personally, I'd wager that this is because of the same reason, these women understand that there's no reason for them to be treated differently, and I assume that it's quite pleasant to not be treated like some superior entity, like they do here, for example. \n\nTo be completely honest, I would say 4chan is, without a doubt, a nicer place than Reddit. And I spend a LOT of time on reddit, but this isn't a nice place, it's more like a lot of children pretending to have some class. People in 4chan are done pretending, and that is a beautiful thing."}, {"id": "cnelvvj", "body": "Nail on the head"}, {"id": "cnect52", "body": "I strongly disagree with this. I've been on 4chan for 9 years now, and I'm pretty sure it's one of the only places where it's not a costume party.\n\nIt's one of the only places where you can speak your mind, where you can discuss a thought without being judged for it, where you can actually behave as your feeling tell you to.\n\nIt's a place where everyone is treated equally, where the one and only concept to determine worth is meritocracy. The whole idea of the insults is to weed out the newfags, people who are still completely inserted into the mindset that the internet, or 4chan particularly is the same as the real world.\n\nPeople are used to being treated a particular way, women are used to being treated differently than ment, rich people are used to be treated differently than poor people, this doesn't exist in 4chan. You're anonymous, you're nothing, no one, the only thing people see are your posts. Normally people who dislike 4chan are used to being treated better than the average human being; but 4chan is filled of college dropouts, trailer trash, alcoholics, lonely people; it's a haven for them, they're used to being inferior, but here they're just another anon.\n\nAnother phenomenon I find very interesting is that the amount of female users in 4chan is way above the average. Personally, I'd wager that this is because of the same reason, these women understand that there's no reason for them to be treated differently, and I assume that it's quite pleasant to not be treated like some superior entity, like they do here, for example. \n\nTo be completely honest, I would say 4chan is, without a doubt, a nicer place than Reddit. And I spend a LOT of time on reddit, but this isn't a nice place, it's more like a lot of children pretending to have some class. People in 4chan are done pretending, and that is a beautiful thing."}, {"id": "cnetpgh", "body": "I see this criticism a lot and I don't get it. How are redditors trying to act like they have class? \n\nThe main reason I got tired of 4chan is the exact reason I like reddit: it's hard to have an actual conversation there without people constantly derailing it. I don't see how everyone being treated equally is a good thing if you're lowering the bar instead of raising it."}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cne6mt0", "body": "Also, some people are willing to do incredibly hateful stuff, record it and post it in there just to \"get people angry\". Yeah, you managed to make some people angry, but you also did that hateful stuff like beheading kitties or hitting random people & animals."}, {"id": "cne6mt0", "body": "Also, some people are willing to do incredibly hateful stuff, record it and post it in there just to \"get people angry\". Yeah, you managed to make some people angry, but you also did that hateful stuff like beheading kitties or hitting random people & animals."}, {"id": "cnee65u", "body": "actually 4chan have repeatedly found people on youtube who hurt animals and reported them to the authorities\n"}, {"id": "cnee65u", "body": "actually 4chan have repeatedly found people on youtube who hurt animals and reported them to the authorities\n"}, {"id": "cneggtr", "body": "4chan's mentality is and has always been \"When we do it, it's funny. When other people do it, we put our internet justice hats on.\""}, {"id": "cneggtr", "body": "4chan's mentality is and has always been \"When we do it, it's funny. When other people do it, we put our internet justice hats on.\""}, {"id": "cnegmjk", "body": "because every site dosen't do the same thing right?\n"}, {"id": "cnegmjk", "body": "because every site dosen't do the same thing right?\n"}, {"id": "cnegyuc", "body": "*cough* reddit *cough* boston"}, {"id": "cnegyuc", "body": "*cough* reddit *cough* boston"}, {"id": "cnetk5k", "body": "To be fair, reddit hasn't blown up a marathon"}, {"id": "cneggtr", "body": "4chan's mentality is and has always been \"When we do it, it's funny. When other people do it, we put our internet justice hats on.\""}, {"id": "cnek6hp", "body": "I think really the mentality has always been \"we do what we think will be funny\". It's unorganized and unpredictable. If you post a video of you doing something you're not supposed to, then maybe they'll ignore it, maybe they'll like it, and maybe they'll decide it would be funny to figure out who you are and turn you in. In all likelihood, there will be people in all three camps. "}, {"id": "cneggtr", "body": "4chan's mentality is and has always been \"When we do it, it's funny. When other people do it, we put our internet justice hats on.\""}, {"id": "cnijppo", "body": "Maybe because 4chan users aren't the ones producing the gifs of cats being set on fire etc? Users just repost them in threads to provoke a reaction from newfags or to act edgy."}, {"id": "cnee65u", "body": "actually 4chan have repeatedly found people on youtube who hurt animals and reported them to the authorities\n"}, {"id": "cneprgj", "body": "People on 4chan have done good things like this, yes, and some bad things... I'm hesitant about any generalization for 4chan, with it's anonymity. (It reminds me of whenever I see some goofy online statement like \"We are Anonymous. We stand for such & such.\") There is no cohesive group that represents this ever-changing anonymous set of people. "}, {"id": "cne6mt0", "body": "Also, some people are willing to do incredibly hateful stuff, record it and post it in there just to \"get people angry\". Yeah, you managed to make some people angry, but you also did that hateful stuff like beheading kitties or hitting random people & animals."}, {"id": "cnego1s", "body": "[deleted]"}, {"id": "cnego1s", "body": "[deleted]"}, {"id": "cneixf2", "body": "Sorry yul_brynner, your comment has been removed: \n\n> Comment Rule 5\\. \"No low effort comments. Comments that are only jokes or 'written upvotes', for example. Humor and affirmations of agreement can be contained within more substantial comments.\" [See the wiki page for more information.](http://www.reddit.com/r/changemyview/wiki/rules#wiki_rule_5)\n\nIf you would like to appeal, please [message the moderators by clicking this link.](http://www.reddit.com/message/compose?to=%2Fr%2Fchangemyview&subject=Removed+Comment+Rule+5+Post+Appeal&message=yul_brynner+would+like+to+appeal+the+removal+of+[his/her+post](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnego1s\\))"}, {"id": "cne6mt0", "body": "Also, some people are willing to do incredibly hateful stuff, record it and post it in there just to \"get people angry\". Yeah, you managed to make some people angry, but you also did that hateful stuff like beheading kitties or hitting random people & animals."}, {"id": "cnebfx7", "body": ">some people are willing to do incredibly hateful stuff\n\nSo is the rest of the Internet. "}, {"id": "cnebfx7", "body": ">some people are willing to do incredibly hateful stuff\n\nSo is the rest of the Internet. "}, {"id": "cnebqp5", "body": "yes, but you don't go bragging about how you beheaded a kitten on reddit. And if you're considering some channels like /r/spacedicks, then I think OP's point can easily be extended there."}, {"id": "cnebqp5", "body": "yes, but you don't go bragging about how you beheaded a kitten on reddit. And if you're considering some channels like /r/spacedicks, then I think OP's point can easily be extended there."}, {"id": "cnecvqd", "body": "Do I? No. Do some people? Absolutely. Considering all the sick subreddits there are, I'm sure someone's done what you're describing. And how can you say OP's point can be extended there? OP condemned an entire website. If we were to extend that point, it would be to reddit as a whole."}, {"id": "cnebqp5", "body": "yes, but you don't go bragging about how you beheaded a kitten on reddit. And if you're considering some channels like /r/spacedicks, then I think OP's point can easily be extended there."}, {"id": "cnedpis", "body": "link me a video of that on 4chan? i dont browse 4chan but sounds like i need some proof"}, {"id": "cnedpis", "body": "link me a video of that on 4chan? i dont browse 4chan but sounds like i need some proof"}, {"id": "cneiqvh", "body": "Posts are deleted on 4chan within a few hours of their creation. This is why /r/4chan only has screenshots, any links would be useless soon after. "}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cne6pyt", "body": "You could say the same about gangsta rap. Acting tough is fun, especially when it's so silly. \n\nI don't think it'll make you a worse person unless you take it too seriously. You'd have to pretty thick not to realize that it's a joke, though. "}, {"id": "cne6pyt", "body": "You could say the same about gangsta rap. Acting tough is fun, especially when it's so silly. \n\nI don't think it'll make you a worse person unless you take it too seriously. You'd have to pretty thick not to realize that it's a joke, though. "}, {"id": "cne6tmz", "body": "You make a great point relating it to rap.\n\nBut where does it cross the line between a \"joke\" and serious bullying - some of the stuff I've seen is just downright criminal. It doesn't matter that the people view it as a joke, it's hurting people and changing the mentality of \"this is wrong\" to \"although this is wrong, it's ok because we're not serious.\""}, {"id": "cne6tmz", "body": "You make a great point relating it to rap.\n\nBut where does it cross the line between a \"joke\" and serious bullying - some of the stuff I've seen is just downright criminal. It doesn't matter that the people view it as a joke, it's hurting people and changing the mentality of \"this is wrong\" to \"although this is wrong, it's ok because we're not serious.\""}, {"id": "cne6x2s", "body": "Most of the stuff are reposts of old images and videos. So I wouldn't really say they are constantly hurting people. Also, these images and videos don't start on 4Chan, they crop up elsewhere (torrents and the deep web) and just reposted."}, {"id": "cne6tmz", "body": "You make a great point relating it to rap.\n\nBut where does it cross the line between a \"joke\" and serious bullying - some of the stuff I've seen is just downright criminal. It doesn't matter that the people view it as a joke, it's hurting people and changing the mentality of \"this is wrong\" to \"although this is wrong, it's ok because we're not serious.\""}, {"id": "cne71ht", "body": "I get what you're talking about, but those events are very rare, and not a lot of people participate in it. It's just that 4chan is a good platform to initiate these kind of things. "}, {"id": "cne71ht", "body": "I get what you're talking about, but those events are very rare, and not a lot of people participate in it. It's just that 4chan is a good platform to initiate these kind of things. "}, {"id": "cneagsf", "body": "So is Reddit. Lots of people have done similar things on Reddit. Yet here you are."}, {"id": "cne6tmz", "body": "You make a great point relating it to rap.\n\nBut where does it cross the line between a \"joke\" and serious bullying - some of the stuff I've seen is just downright criminal. It doesn't matter that the people view it as a joke, it's hurting people and changing the mentality of \"this is wrong\" to \"although this is wrong, it's ok because we're not serious.\""}, {"id": "cned6bd", "body": "IT'S JUST A PRANK BRO"}, {"id": "cne6pyt", "body": "You could say the same about gangsta rap. Acting tough is fun, especially when it's so silly. \n\nI don't think it'll make you a worse person unless you take it too seriously. You'd have to pretty thick not to realize that it's a joke, though. "}, {"id": "cneewy4", "body": "And it always gets taken too far. Biggie got shot. Tupac got shot. People have done some seriously ucked up stuff for attention on 4chan."}, {"id": "cneewy4", "body": "And it always gets taken too far. Biggie got shot. Tupac got shot. People have done some seriously ucked up stuff for attention on 4chan."}, {"id": "cnekgux", "body": "I'm not talking about actual gangsters. More like, idunno, Tyler the Creator or whatever. \n\nAnd nobody does stuff for attention on 4chan. That would be most futile thing ever. The fucked up things you know that happen on 4chan are from individuals who anonymously discuss their plans in public. Lots of people see it, and it just gets screencapped and it spreads. That's the only difference with e.g. SRS. \n\n"}, {"id": "cne6pyt", "body": "You could say the same about gangsta rap. Acting tough is fun, especially when it's so silly. \n\nI don't think it'll make you a worse person unless you take it too seriously. You'd have to pretty thick not to realize that it's a joke, though. "}, {"id": "cnecegn", "body": "You do make a very good point, and I hope to reinforce it. There is a very common quote on 4chan's /b/ (I'm assuming that this is the board that OP is referring to) and it goes like this:\n \n*The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.*\n\nNot only is this phrase quoted frequently on /b/, it is actually often seen as a sticky on the homepage of /b/. The site is nothing more than what you make of it, which if you are not taking it seriously, is nothing more than a bunch of Anons giving each other a hard time and posting lewd images. Sure, sometimes bad things happen on the site, but I would argue that it is a byproduct of anonymity as a whole, it's what happens when people think they won't get caught which is extends into society beyond 4chan."}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cne8o50", "body": "What does this even mean? \"Its objective is to anger people?\" \n\n4chan doesn't have an objective. Specific boards don't even have an objective. It's an image board for people to gather and talk about shit that they're interested in.\n\nJust because the memes and humor and different board culture is often lame and repetitive and boils down to extremely low-level trolling doesn't mean the mentality of 4chan is \"lol let's anger people.\" The vast majority of users just really don't pretend to tolerate when people say stupid shit like on reddit, where direct insults are buried in downvotes by the ultra-sensitive reddit base."}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cnecv1h", "body": "> Which, in turn, makes people into more hostile and mean individuals.\n\nSource?\n\nI mean, 99% of that site is trolling... people go there for a chuckle. As long as the person visiting understands that, I'm not sure how it get's them angry or most hostile. \n\nIf anything, I'd bet the bank on certain parts of Tumblr making someone a far worse person than anything on 4chan. "}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cne85om", "body": "I'm not so sure. Entertain the following line of thought for a moment:\n\nA lot of people - particularly quiet, soft-willed, asocial people - can actually have a lot of pent-up rage/fury that they don't express in normal, healthy ways. Sometimes simply having a consequence-free, anonymous place to harmlessly vent this rage might be quite helpful for such people."}, {"id": "cne85om", "body": "I'm not so sure. Entertain the following line of thought for a moment:\n\nA lot of people - particularly quiet, soft-willed, asocial people - can actually have a lot of pent-up rage/fury that they don't express in normal, healthy ways. Sometimes simply having a consequence-free, anonymous place to harmlessly vent this rage might be quite helpful for such people."}, {"id": "cneewrq", "body": "If that's all that it were, that might be an acceptable explanation. But when the objective becomes to \"invade\" other spaces on the internet in order to inconvenience and anger those netizens, you leave harmless and consequence-free behind. \n\nI actually agree with the idea that quiet, soft-willed, asocial people deserve their own places on the internet where they can vent their frustrations. But those people who find that relief on 4chan don't have the right to ruin the experiences of those who find it on, say, habbo hotel or tumblr. "}, {"id": "cneewrq", "body": "If that's all that it were, that might be an acceptable explanation. But when the objective becomes to \"invade\" other spaces on the internet in order to inconvenience and anger those netizens, you leave harmless and consequence-free behind. \n\nI actually agree with the idea that quiet, soft-willed, asocial people deserve their own places on the internet where they can vent their frustrations. But those people who find that relief on 4chan don't have the right to ruin the experiences of those who find it on, say, habbo hotel or tumblr. "}, {"id": "cnelqg6", "body": "In the same way that not every gym junkie goes out into the parking lot to beat up unsuspecting passersby, most 4channers don't participate in the general internet vandalism that goes on. "}, {"id": "cnelqg6", "body": "In the same way that not every gym junkie goes out into the parking lot to beat up unsuspecting passersby, most 4channers don't participate in the general internet vandalism that goes on. "}, {"id": "cnelx0z", "body": "This is true. However, it seems as if a majority of the community either supports it, tolerates it, or thinks it's not harmful. I don't think that type of culture is healthy to be a part of. "}, {"id": "cneewrq", "body": "If that's all that it were, that might be an acceptable explanation. But when the objective becomes to \"invade\" other spaces on the internet in order to inconvenience and anger those netizens, you leave harmless and consequence-free behind. \n\nI actually agree with the idea that quiet, soft-willed, asocial people deserve their own places on the internet where they can vent their frustrations. But those people who find that relief on 4chan don't have the right to ruin the experiences of those who find it on, say, habbo hotel or tumblr. "}, {"id": "cnej9it", "body": "That fact that you consider invading other Internet spaces as harming people is troubling."}, {"id": "cnej9it", "body": "That fact that you consider invading other Internet spaces as harming people is troubling."}, {"id": "cnekdjt", "body": "It may be troubling to you, so I can't disagree with your statement. But can you explain why it's troubling to you?"}, {"id": "cnekdjt", "body": "It may be troubling to you, so I can't disagree with your statement. But can you explain why it's troubling to you?"}, {"id": "cnenf7k", "body": "The fact that you think that 4chan invading sites effects people's lives. It's just weird how some people consider petty bs that goes on in the Internet to actually matter. "}, {"id": "cnenf7k", "body": "The fact that you think that 4chan invading sites effects people's lives. It's just weird how some people consider petty bs that goes on in the Internet to actually matter. "}, {"id": "cneqypd", "body": "As with everything else in life, it's not up to me to determine what should and shouldn't matter to someone else. It's petty bs to the people doing it and the people watching it happen, but it's not petty bs to a lot of the people it happens to, or they wouldn't react as angrily as they do. \n\n"}, {"id": "cneqypd", "body": "As with everything else in life, it's not up to me to determine what should and shouldn't matter to someone else. It's petty bs to the people doing it and the people watching it happen, but it's not petty bs to a lot of the people it happens to, or they wouldn't react as angrily as they do. \n\n"}, {"id": "cner9et", "body": "All i am saying is that people seem to take this whole Internet group thing wayy to seriously. "}, {"id": "cnenf7k", "body": "The fact that you think that 4chan invading sites effects people's lives. It's just weird how some people consider petty bs that goes on in the Internet to actually matter. "}, {"id": "cner6rr", "body": "And how seriously offended do 4chan users get when someone invades their space. You start seeing 20 \"its the feminist\" conspiracies pop up over night\n \nYour argument is flawed I another more serious way though. While admitting 4chan is a safe haven for 4chan users you are conveniently forgetting the \"safe haven\" status that other site users feel for their spaces. Essentially 4chan invades their safe havens and that is inherently harmful."}, {"id": "cner6rr", "body": "And how seriously offended do 4chan users get when someone invades their space. You start seeing 20 \"its the feminist\" conspiracies pop up over night\n \nYour argument is flawed I another more serious way though. While admitting 4chan is a safe haven for 4chan users you are conveniently forgetting the \"safe haven\" status that other site users feel for their spaces. Essentially 4chan invades their safe havens and that is inherently harmful."}, {"id": "cnerbdj", "body": "I'm not defending 4chan, all I was stating is that I think it is sad just how serious some people take the Internet groups they are in. 4channers are total bitches too. I would also just like to say that my only other comment in this thread was saying essentially the same thing as the one you replied to, so I have no idea what my \"argument\" was let alone how this argument that I didn't make was flawed. No where did I ever state that any website is a \"safe haven\" for its users, whatever the hell that means, nor did I state the double standard you are referring to. Did you reply to the wrong person or something? "}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cnesg4j", "body": "But the thing is, nobody actually gets angry. Except tumblr people when they get raided, but I disliked those stupid special snowflakes before. They're worse people than anons. "}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cnevxe3", "body": "So, like how video games cause everyone to be gun-weilding maniacs?"}, {"id": "cne6ehg", "body": "That's exactly what OP is saying though.\n\nIt doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals."}, {"id": "cnewfui", "body": "> It doesn't matter that it's fake, its objective is to anger people. Which, in turn, makes people into more hostile and mean individuals.\n\nBrowsing 4chan back in the day has made me a lot more relaxed and less hostile on the internet. You have to take everything on the interweb with a grain of salt, and viewing the material that needs this rule the most is the best way to demonstrate it. "}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cned8ad", "body": "I don't think that answers OP's post. Here's an anecdote:\n\nI have a friend who started browsing 4chan not longer after high school. We graduated in 2010. He didn't go to college or have any plans at all really even though he is a fairly smart, capable person. He was working at a dealership as a mechanic however. \n\nSo my friend was into cars and guns and working on mechanical things already. Over the past several years he's been in and out of jobs and has had plenty of long stretches of nothing to do except peruse 4chan and watch Netflix. \n\nAbout 2012 he told me that feminism was ruining America. Now, if you disagree with feminism, that's one thing, but he was arguing that everything wrong with the country is caused by feminism. That's a pretty absurd statement. While he didn't explicitly tell me that 4chan influenced this view, and I wouldn't expect him to admit it even if I'd asked, I know the attitude on 4chan toward feminism. \n\nAround that same time, he started REALLY getting into guns. He has ventured away from /b/ and stays mainly on /k/ now. About 2013 he started ranting about gun rights a lot. About a month ago, he literally stated that he is a one issue voter for gun rights. A few weeks ago, he drank way too much at my apartment and decided to get his glock 17 out of his car to show my friend. He loaded a round into the chamber and proceeded to put the gun back in his pants and then walked in and out of my apartment (to smoke/look for a lighter which was in his pocket but that he thought was in my house) after 30 minutes to an hour, I convinced him that it was time to go to bed and put the gun back in his glove box and he did after some persuasion. I told him about this the next morning and he just laughed. \n\n\nThe common thread throughout his entire time browsing 4chan has been an increasing willingness to Form opinions for poor reasons. He actually criticized me once for remaining neutral on topics I wasn't very informed of. \n\nI think 4chan had a LOT to do with this attitude change. A lot of the 4chan threads I've seen on controversial topics are just people stating opinions as objective fact and insulting eachother. My friend actually applies that argument style to real life now. \n\n\n\nMy point in posting this book of a comment is to say that while most commenters are just taking the piss, I would argue that there are people who are being 100% serious on 4chan and that even if the comments are troll comments, there are going to be people like my friend who internalize the style of conversation and forming opinions they see on 4chan. And he is definitely a much worse person for it. "}, {"id": "cned8ad", "body": "I don't think that answers OP's post. Here's an anecdote:\n\nI have a friend who started browsing 4chan not longer after high school. We graduated in 2010. He didn't go to college or have any plans at all really even though he is a fairly smart, capable person. He was working at a dealership as a mechanic however. \n\nSo my friend was into cars and guns and working on mechanical things already. Over the past several years he's been in and out of jobs and has had plenty of long stretches of nothing to do except peruse 4chan and watch Netflix. \n\nAbout 2012 he told me that feminism was ruining America. Now, if you disagree with feminism, that's one thing, but he was arguing that everything wrong with the country is caused by feminism. That's a pretty absurd statement. While he didn't explicitly tell me that 4chan influenced this view, and I wouldn't expect him to admit it even if I'd asked, I know the attitude on 4chan toward feminism. \n\nAround that same time, he started REALLY getting into guns. He has ventured away from /b/ and stays mainly on /k/ now. About 2013 he started ranting about gun rights a lot. About a month ago, he literally stated that he is a one issue voter for gun rights. A few weeks ago, he drank way too much at my apartment and decided to get his glock 17 out of his car to show my friend. He loaded a round into the chamber and proceeded to put the gun back in his pants and then walked in and out of my apartment (to smoke/look for a lighter which was in his pocket but that he thought was in my house) after 30 minutes to an hour, I convinced him that it was time to go to bed and put the gun back in his glove box and he did after some persuasion. I told him about this the next morning and he just laughed. \n\n\nThe common thread throughout his entire time browsing 4chan has been an increasing willingness to Form opinions for poor reasons. He actually criticized me once for remaining neutral on topics I wasn't very informed of. \n\nI think 4chan had a LOT to do with this attitude change. A lot of the 4chan threads I've seen on controversial topics are just people stating opinions as objective fact and insulting eachother. My friend actually applies that argument style to real life now. \n\n\n\nMy point in posting this book of a comment is to say that while most commenters are just taking the piss, I would argue that there are people who are being 100% serious on 4chan and that even if the comments are troll comments, there are going to be people like my friend who internalize the style of conversation and forming opinions they see on 4chan. And he is definitely a much worse person for it. "}, {"id": "cnedh41", "body": "This is why anecdotes aren't good for making conclusions. Yes, 4Chan could attract shitty people. Yes, there are shitty people on 4Chan. Your friend can't think for himself."}, {"id": "cnedh41", "body": "This is why anecdotes aren't good for making conclusions. Yes, 4Chan could attract shitty people. Yes, there are shitty people on 4Chan. Your friend can't think for himself."}, {"id": "cnef1lg", "body": "That's not true. Anecdotes are fine for making certain conclusions. If something can logically be concluded from something else, it's valid. Anecdotes are bad for making sweeping generalizations. My only conclusion being made with this post is that 4chan *can* influence people and that they aren't ALL trolls in on the joke. \n\nI said nothing about the prevalence of the situation I'm decribing. Just that it can occur. "}, {"id": "cnef1lg", "body": "That's not true. Anecdotes are fine for making certain conclusions. If something can logically be concluded from something else, it's valid. Anecdotes are bad for making sweeping generalizations. My only conclusion being made with this post is that 4chan *can* influence people and that they aren't ALL trolls in on the joke. \n\nI said nothing about the prevalence of the situation I'm decribing. Just that it can occur. "}, {"id": "cnetoeb", "body": "Yes, but the OP uses the word \"will\" which is a very strong word.\n\nOP is making a sweeping generalization, and as such, anecdotal evidence is not sufficient."}, {"id": "cnedh41", "body": "This is why anecdotes aren't good for making conclusions. Yes, 4Chan could attract shitty people. Yes, there are shitty people on 4Chan. Your friend can't think for himself."}, {"id": "cnehze4", "body": "Social influence. Just saying"}, {"id": "cned8ad", "body": "I don't think that answers OP's post. Here's an anecdote:\n\nI have a friend who started browsing 4chan not longer after high school. We graduated in 2010. He didn't go to college or have any plans at all really even though he is a fairly smart, capable person. He was working at a dealership as a mechanic however. \n\nSo my friend was into cars and guns and working on mechanical things already. Over the past several years he's been in and out of jobs and has had plenty of long stretches of nothing to do except peruse 4chan and watch Netflix. \n\nAbout 2012 he told me that feminism was ruining America. Now, if you disagree with feminism, that's one thing, but he was arguing that everything wrong with the country is caused by feminism. That's a pretty absurd statement. While he didn't explicitly tell me that 4chan influenced this view, and I wouldn't expect him to admit it even if I'd asked, I know the attitude on 4chan toward feminism. \n\nAround that same time, he started REALLY getting into guns. He has ventured away from /b/ and stays mainly on /k/ now. About 2013 he started ranting about gun rights a lot. About a month ago, he literally stated that he is a one issue voter for gun rights. A few weeks ago, he drank way too much at my apartment and decided to get his glock 17 out of his car to show my friend. He loaded a round into the chamber and proceeded to put the gun back in his pants and then walked in and out of my apartment (to smoke/look for a lighter which was in his pocket but that he thought was in my house) after 30 minutes to an hour, I convinced him that it was time to go to bed and put the gun back in his glove box and he did after some persuasion. I told him about this the next morning and he just laughed. \n\n\nThe common thread throughout his entire time browsing 4chan has been an increasing willingness to Form opinions for poor reasons. He actually criticized me once for remaining neutral on topics I wasn't very informed of. \n\nI think 4chan had a LOT to do with this attitude change. A lot of the 4chan threads I've seen on controversial topics are just people stating opinions as objective fact and insulting eachother. My friend actually applies that argument style to real life now. \n\n\n\nMy point in posting this book of a comment is to say that while most commenters are just taking the piss, I would argue that there are people who are being 100% serious on 4chan and that even if the comments are troll comments, there are going to be people like my friend who internalize the style of conversation and forming opinions they see on 4chan. And he is definitely a much worse person for it. "}, {"id": "cneeelk", "body": "Is that like the guy that was perfectly normal before he found alcohol and started beating his wife?\n\nCorrelation/Causation, bud."}, {"id": "cneeelk", "body": "Is that like the guy that was perfectly normal before he found alcohol and started beating his wife?\n\nCorrelation/Causation, bud."}, {"id": "cnef67n", "body": "I don't see this is like that at all. \n\nHe found 4chan and then his attitude began changing. Now, I'm not saying 4chan is solely responsible. It just seems to be a contributing factor. There was definitely a propensity to be intellectually lazy already there "}, {"id": "cnef67n", "body": "I don't see this is like that at all. \n\nHe found 4chan and then his attitude began changing. Now, I'm not saying 4chan is solely responsible. It just seems to be a contributing factor. There was definitely a propensity to be intellectually lazy already there "}, {"id": "cnefh7y", "body": "But all you've got to go on is a feeling.\n\nYou disapprove of 4chan. \n\nHe started changing in ways that you don't approve of some time after he started engaging in a website that you don't approve of. \n\nOf course you think that the latter has something to do with the former.\n\nIt could just as easily be, however, that both stem from the same cause or entirely separate causes."}, {"id": "cnefh7y", "body": "But all you've got to go on is a feeling.\n\nYou disapprove of 4chan. \n\nHe started changing in ways that you don't approve of some time after he started engaging in a website that you don't approve of. \n\nOf course you think that the latter has something to do with the former.\n\nIt could just as easily be, however, that both stem from the same cause or entirely separate causes."}, {"id": "cnefmwz", "body": "You're right that I can't be for certain. I think it's more likely than not at least partially due to 4chan. Not claiming absolute certainty here. But if I had to point to one factor, that would be it. I know how 4chan is from actually browsing it. Not just reading it. If he didn't pick up some of his attitude from 4chan, I would be much more surprised than if he did. Especially considering how much time he spent immersed in it. "}, {"id": "cnefmwz", "body": "You're right that I can't be for certain. I think it's more likely than not at least partially due to 4chan. Not claiming absolute certainty here. But if I had to point to one factor, that would be it. I know how 4chan is from actually browsing it. Not just reading it. If he didn't pick up some of his attitude from 4chan, I would be much more surprised than if he did. Especially considering how much time he spent immersed in it. "}, {"id": "cnelrtz", "body": "you said he started browsing 4chan after graduating high school with no plans for college or career. how do you not see the root issue here."}, {"id": "cnelrtz", "body": "you said he started browsing 4chan after graduating high school with no plans for college or career. how do you not see the root issue here."}, {"id": "cnelxml", "body": "That's been addressed. My point is he became a *worse* person"}, {"id": "cnelxml", "body": "That's been addressed. My point is he became a *worse* person"}, {"id": "cnen05l", "body": "no shit, that's what have no goals, direction or successes will do to a person."}, {"id": "cnen05l", "body": "no shit, that's what have no goals, direction or successes will do to a person."}, {"id": "cneomvm", "body": "I didn't say he has no goals, direction, or successes. Just that he has had periods of a lot of free time. \n\nI think the idea that not going to college or having career plans means someone is going to turn into a bad person is ill-founded anyway. A lot of people take some time to find what they want out of life. And even if they want to sit on the couch all day, that doesn't mean their personality will go to shit."}, {"id": "cnefmwz", "body": "You're right that I can't be for certain. I think it's more likely than not at least partially due to 4chan. Not claiming absolute certainty here. But if I had to point to one factor, that would be it. I know how 4chan is from actually browsing it. Not just reading it. If he didn't pick up some of his attitude from 4chan, I would be much more surprised than if he did. Especially considering how much time he spent immersed in it. "}, {"id": "cnepccq", "body": "That's just an argument from personal incredulity.\n\n\"I'd be surprised if it weren't this way, therefore I think it's this way.\"\n\nThe problem is that you could very well be 100% correct, but you've got zero evidence, so I've little reason to believe what you believe.\n\n"}, {"id": "cnepccq", "body": "That's just an argument from personal incredulity.\n\n\"I'd be surprised if it weren't this way, therefore I think it's this way.\"\n\nThe problem is that you could very well be 100% correct, but you've got zero evidence, so I've little reason to believe what you believe.\n\n"}, {"id": "cnepyy8", "body": "Well obviously nobody in this thread is going to have data as no studies have been done on 4chan users. This is as good as it gets"}, {"id": "cnepyy8", "body": "Well obviously nobody in this thread is going to have data as no studies have been done on 4chan users. This is as good as it gets"}, {"id": "cner0bx", "body": "I'm talking about you personally.\n\nThere's no reason for you to think that 4chan has negatively effected your friend outside of your belief that 4chan negatively effects people."}, {"id": "cner0bx", "body": "I'm talking about you personally.\n\nThere's no reason for you to think that 4chan has negatively effected your friend outside of your belief that 4chan negatively effects people."}, {"id": "cnesa6l", "body": "IMO making the argument that immersing yourself in a world of hate speech and violent rhetoric doesn't make you a worse person is harder to justify than the argument that it does in fact make you a worse person. "}, {"id": "cned8ad", "body": "I don't think that answers OP's post. Here's an anecdote:\n\nI have a friend who started browsing 4chan not longer after high school. We graduated in 2010. He didn't go to college or have any plans at all really even though he is a fairly smart, capable person. He was working at a dealership as a mechanic however. \n\nSo my friend was into cars and guns and working on mechanical things already. Over the past several years he's been in and out of jobs and has had plenty of long stretches of nothing to do except peruse 4chan and watch Netflix. \n\nAbout 2012 he told me that feminism was ruining America. Now, if you disagree with feminism, that's one thing, but he was arguing that everything wrong with the country is caused by feminism. That's a pretty absurd statement. While he didn't explicitly tell me that 4chan influenced this view, and I wouldn't expect him to admit it even if I'd asked, I know the attitude on 4chan toward feminism. \n\nAround that same time, he started REALLY getting into guns. He has ventured away from /b/ and stays mainly on /k/ now. About 2013 he started ranting about gun rights a lot. About a month ago, he literally stated that he is a one issue voter for gun rights. A few weeks ago, he drank way too much at my apartment and decided to get his glock 17 out of his car to show my friend. He loaded a round into the chamber and proceeded to put the gun back in his pants and then walked in and out of my apartment (to smoke/look for a lighter which was in his pocket but that he thought was in my house) after 30 minutes to an hour, I convinced him that it was time to go to bed and put the gun back in his glove box and he did after some persuasion. I told him about this the next morning and he just laughed. \n\n\nThe common thread throughout his entire time browsing 4chan has been an increasing willingness to Form opinions for poor reasons. He actually criticized me once for remaining neutral on topics I wasn't very informed of. \n\nI think 4chan had a LOT to do with this attitude change. A lot of the 4chan threads I've seen on controversial topics are just people stating opinions as objective fact and insulting eachother. My friend actually applies that argument style to real life now. \n\n\n\nMy point in posting this book of a comment is to say that while most commenters are just taking the piss, I would argue that there are people who are being 100% serious on 4chan and that even if the comments are troll comments, there are going to be people like my friend who internalize the style of conversation and forming opinions they see on 4chan. And he is definitely a much worse person for it. "}, {"id": "cnepbgl", "body": "Tell your friend to shoot his dick off putting the loaded gun into his pants next time and then greentext that shit. "}, {"id": "cnepbgl", "body": "Tell your friend to shoot his dick off putting the loaded gun into his pants next time and then greentext that shit. "}, {"id": "cnepxf8", "body": "I would but it was stolen by morning luckily"}, {"id": "cned8ad", "body": "I don't think that answers OP's post. Here's an anecdote:\n\nI have a friend who started browsing 4chan not longer after high school. We graduated in 2010. He didn't go to college or have any plans at all really even though he is a fairly smart, capable person. He was working at a dealership as a mechanic however. \n\nSo my friend was into cars and guns and working on mechanical things already. Over the past several years he's been in and out of jobs and has had plenty of long stretches of nothing to do except peruse 4chan and watch Netflix. \n\nAbout 2012 he told me that feminism was ruining America. Now, if you disagree with feminism, that's one thing, but he was arguing that everything wrong with the country is caused by feminism. That's a pretty absurd statement. While he didn't explicitly tell me that 4chan influenced this view, and I wouldn't expect him to admit it even if I'd asked, I know the attitude on 4chan toward feminism. \n\nAround that same time, he started REALLY getting into guns. He has ventured away from /b/ and stays mainly on /k/ now. About 2013 he started ranting about gun rights a lot. About a month ago, he literally stated that he is a one issue voter for gun rights. A few weeks ago, he drank way too much at my apartment and decided to get his glock 17 out of his car to show my friend. He loaded a round into the chamber and proceeded to put the gun back in his pants and then walked in and out of my apartment (to smoke/look for a lighter which was in his pocket but that he thought was in my house) after 30 minutes to an hour, I convinced him that it was time to go to bed and put the gun back in his glove box and he did after some persuasion. I told him about this the next morning and he just laughed. \n\n\nThe common thread throughout his entire time browsing 4chan has been an increasing willingness to Form opinions for poor reasons. He actually criticized me once for remaining neutral on topics I wasn't very informed of. \n\nI think 4chan had a LOT to do with this attitude change. A lot of the 4chan threads I've seen on controversial topics are just people stating opinions as objective fact and insulting eachother. My friend actually applies that argument style to real life now. \n\n\n\nMy point in posting this book of a comment is to say that while most commenters are just taking the piss, I would argue that there are people who are being 100% serious on 4chan and that even if the comments are troll comments, there are going to be people like my friend who internalize the style of conversation and forming opinions they see on 4chan. And he is definitely a much worse person for it. "}, {"id": "cnetksq", "body": "1) Your friend sounds like he was on his way to being a piece of shit already \n2) guns rights are important \n3) Feminism is fucked up, and although they are not the reason for America's current state in the world, the \"SJW\" mindset is the opposite of good for the country. \nJust like anything, some people who have access to something are fucked up, but they weren't fucked up because of it, its just correlation."}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cne9mk6", "body": "I hear this said a lot and I really don't think it's true, at least not anywhere near the 99% statistic you threw out.\n\nYes, a large chunk of it is trolls trolling trolls, but doxxes and raids happen all the time. People talking about killing themselves-and in some cases actually going through with it and live streaming it- happen all the time. The SJW hate is completely genuine. Much of the racism in /pol/ is completely genuine. \n\nIf it was all fake and meant to anger people, why does the vast majority of it take place in a vacuum? 90% of what's on the more controversial boards isn't seen by anyone outside of the 4chan community, and it contains all the negative things that have been mentioned in this thread."}, {"id": "cne9mk6", "body": "I hear this said a lot and I really don't think it's true, at least not anywhere near the 99% statistic you threw out.\n\nYes, a large chunk of it is trolls trolling trolls, but doxxes and raids happen all the time. People talking about killing themselves-and in some cases actually going through with it and live streaming it- happen all the time. The SJW hate is completely genuine. Much of the racism in /pol/ is completely genuine. \n\nIf it was all fake and meant to anger people, why does the vast majority of it take place in a vacuum? 90% of what's on the more controversial boards isn't seen by anyone outside of the 4chan community, and it contains all the negative things that have been mentioned in this thread."}, {"id": "cneb12e", "body": "> The SJW hate is completely ~~genuine~~ justified.\n\nFTFY"}, {"id": "cneb12e", "body": "> The SJW hate is completely ~~genuine~~ justified.\n\nFTFY"}, {"id": "cned9t0", "body": "If you like drawing attention to and giving power to those you disagree with, sure. "}, {"id": "cneb12e", "body": "> The SJW hate is completely ~~genuine~~ justified.\n\nFTFY"}, {"id": "cnecrl5", "body": "Not disagreeing with you, I hate that movement as much as any reasonable person would. Just pointing out that it's in no way satirical. "}, {"id": "cnecrl5", "body": "Not disagreeing with you, I hate that movement as much as any reasonable person would. Just pointing out that it's in no way satirical. "}, {"id": "cned96v", "body": "There are elements of both, on Reddit, 4chan, hell - in real life, though you rarely see the kind of inane, myopic, hyperpolarized conflict you do online. (It's almost as if direct interaction somehow encourages civility. Imagine that.) \n\nWhere I see a lot of both are in people who have strong inclinations towards progressive values and traditional social justice (e.g. stamping out bona fide sexual abuse, racism, sexism, abuse by the criminal justice system, etc.). They recognize well that an Internet SJW is not representative of all people interested in these issues, since they themselves are a counterexample. \n\nAt the same time, they're disturbed and legitimately upset that SJWs seem to be hijacking the conversation and making radical views appear mainstream, since this is antithetical to real progress. "}, {"id": "cned96v", "body": "There are elements of both, on Reddit, 4chan, hell - in real life, though you rarely see the kind of inane, myopic, hyperpolarized conflict you do online. (It's almost as if direct interaction somehow encourages civility. Imagine that.) \n\nWhere I see a lot of both are in people who have strong inclinations towards progressive values and traditional social justice (e.g. stamping out bona fide sexual abuse, racism, sexism, abuse by the criminal justice system, etc.). They recognize well that an Internet SJW is not representative of all people interested in these issues, since they themselves are a counterexample. \n\nAt the same time, they're disturbed and legitimately upset that SJWs seem to be hijacking the conversation and making radical views appear mainstream, since this is antithetical to real progress. "}, {"id": "cnet6ui", "body": ">Where I see a lot of both are in people who have strong inclinations towards progressive values and traditional social justice (e.g. stamping out bona fide sexual abuse, racism, sexism, abuse by the criminal justice system, etc.). \n\nYeah, I'm a firm and vocal supporter of all those things. All of my experience with SJW's- although usually tangential and secondhand- has been of a group making a mockery out of actually solving those issues, as you mentioned. \n\nIf there is a significant portion of the SJW movement that is being misrepresented by a shitty vocal minority, as many modern day feminists are, I'd be interested in knowing about it. Every example I've seen of SJWs has led me to believe they're almost exclusively made up of self victimizing, spoiled entitled people that are waging a war against white males and the patriarchy.\n\n\n\n"}, {"id": "cnet6ui", "body": ">Where I see a lot of both are in people who have strong inclinations towards progressive values and traditional social justice (e.g. stamping out bona fide sexual abuse, racism, sexism, abuse by the criminal justice system, etc.). \n\nYeah, I'm a firm and vocal supporter of all those things. All of my experience with SJW's- although usually tangential and secondhand- has been of a group making a mockery out of actually solving those issues, as you mentioned. \n\nIf there is a significant portion of the SJW movement that is being misrepresented by a shitty vocal minority, as many modern day feminists are, I'd be interested in knowing about it. Every example I've seen of SJWs has led me to believe they're almost exclusively made up of self victimizing, spoiled entitled people that are waging a war against white males and the patriarchy.\n\n\n\n"}, {"id": "cnf5px7", "body": "I somewhat doubt it just because the movement isn't cohesive and there's a big semantic/definitional problem. \n\nSJWs by definition aren't concerned with practical, workable solutions to issues of justice and equity. It's in the name - they're literally waging war. \n\nIn other words, you don't call someone that wants to decriminalize weed because the behavior of the criminal justice system is deeply unethical and inequitable an SJW, though this is an issue of social justice. Nor would you say that someone who volunteers their time to help underprivileged young girls gain tech skills an SJW since they're trying to uplift people rather than wage war. The term is used to describe people that seem bent on harming others through prescriptive interventions with the goal of achieving some mockery of a just society. "}, {"id": "cnf5px7", "body": "I somewhat doubt it just because the movement isn't cohesive and there's a big semantic/definitional problem. \n\nSJWs by definition aren't concerned with practical, workable solutions to issues of justice and equity. It's in the name - they're literally waging war. \n\nIn other words, you don't call someone that wants to decriminalize weed because the behavior of the criminal justice system is deeply unethical and inequitable an SJW, though this is an issue of social justice. Nor would you say that someone who volunteers their time to help underprivileged young girls gain tech skills an SJW since they're trying to uplift people rather than wage war. The term is used to describe people that seem bent on harming others through prescriptive interventions with the goal of achieving some mockery of a just society. "}, {"id": "cnf5zoh", "body": "Very well put, this only confirms the impression I already had. Thanks for the detailed response."}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cnej4yx", "body": "Sounds to me like you're supporting OP's argument."}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cne84b1", "body": "That doesn't mean that behaving in a bad way repeatedly or regularly doesn't make you worse. Perhaps going out of your way to make people angry on an imageboard *does* make you a worse person, no matter how \"seriously\" it's meant. "}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cnehxg2", "body": "> 99 percent of it is fake and meant to anger people\n\nBeing angry generally makes you a worse person that when you are happy\n\n"}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cneiaw6", "body": "The anger on /int/ against immigrants and muslims is pretty real"}, {"id": "cne48cb", "body": "4Chan, is, was, and always has been a costume party. A place where people go and pretend to be other people. Its the graffiti Wall of the internet and shouldn't be taken as any more than that. 99 percent of it is fake and meant to anger people."}, {"id": "cneddmd", "body": "Can we stop saying 4chan? Because it's really just boards like /b/ that are like that. "}, {"id": "cneddmd", "body": "Can we stop saying 4chan? Because it's really just boards like /b/ that are like that. "}, {"id": "cnedj1d", "body": "Do you want me to edit my post or just not do it anymore?"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cnei8i4", "body": "Social influence and the mere exposure effect appear to suggest otherwise. "}, {"id": "cnei8i4", "body": "Social influence and the mere exposure effect appear to suggest otherwise. "}, {"id": "cneiegc", "body": "Sure, it'll have an effect, but you won't be changed to something that you don't want to be."}, {"id": "cneiegc", "body": "Sure, it'll have an effect, but you won't be changed to something that you don't want to be."}, {"id": "cneij0u", "body": "Maybe not directly, but you can change what you aspire to be. Eventually this can become something you didn't want to be just a while ago. "}, {"id": "cneij0u", "body": "Maybe not directly, but you can change what you aspire to be. Eventually this can become something you didn't want to be just a while ago. "}, {"id": "cneil5v", "body": "Maybe from your perspective you have changed into someone better and wiser."}, {"id": "cneil5v", "body": "Maybe from your perspective you have changed into someone better and wiser."}, {"id": "cneiwqp", "body": "Yes I think this is very often the case! You realise that what you previously thought were maybe not that optimal, and hence you change. However I also think that you may have disagreed with certain things because your current environment so strongly disapproved of it; but if you are more frequently exposed to people with different opinions (regardless of how 'wrong' they may be), you eventually start leaning more towards that. I think its quite fundamentally human, and evolutionary adaptive. "}, {"id": "cneiwqp", "body": "Yes I think this is very often the case! You realise that what you previously thought were maybe not that optimal, and hence you change. However I also think that you may have disagreed with certain things because your current environment so strongly disapproved of it; but if you are more frequently exposed to people with different opinions (regardless of how 'wrong' they may be), you eventually start leaning more towards that. I think its quite fundamentally human, and evolutionary adaptive. "}, {"id": "cnejb8n", "body": "It's probably pretty fucking important to be in agreement with most of your tribe so that you wouldn't be cast out and have to fend for yourself."}, {"id": "cnejb8n", "body": "It's probably pretty fucking important to be in agreement with most of your tribe so that you wouldn't be cast out and have to fend for yourself."}, {"id": "cnejo21", "body": "Yeah exactly :)"}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cnedmsr", "body": "It's not viewpoints necessarily. It's a style of conversation and method of forming opinions and arguing poorly that 4chan encourages"}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cne9ol5", "body": "Well, it depends on the type of exposure. \n\nBefore Reddit, I was fairly anti-gun, but I've become very pro gun after reading some subs. In general, the progun folks had good arguments and were generally positive because to them it's a fun hobby. Compare this with the anti gun sub's which are mostly snark, bile and hatred. I was ashamed to be associated with them, so it made me rethink my beliefs."}, {"id": "cne9ol5", "body": "Well, it depends on the type of exposure. \n\nBefore Reddit, I was fairly anti-gun, but I've become very pro gun after reading some subs. In general, the progun folks had good arguments and were generally positive because to them it's a fun hobby. Compare this with the anti gun sub's which are mostly snark, bile and hatred. I was ashamed to be associated with them, so it made me rethink my beliefs."}, {"id": "cnechn1", "body": "Not to derail the thread, but aside from the point about pro-gun people having good arguments, none of those are good reasons for changing your views. Just because it is more fun to hang out with drug lords doesn't mean their world view is better. Arguments should be evaluated on their own merits, not on whom they happen to be associated with. "}, {"id": "cnechn1", "body": "Not to derail the thread, but aside from the point about pro-gun people having good arguments, none of those are good reasons for changing your views. Just because it is more fun to hang out with drug lords doesn't mean their world view is better. Arguments should be evaluated on their own merits, not on whom they happen to be associated with. "}, {"id": "cnecvuz", "body": "Exactly this. Just because r/atheism is largely populated by edgy angst-ridden neckbeards doesn't mean I should start believing in God."}, {"id": "cnechn1", "body": "Not to derail the thread, but aside from the point about pro-gun people having good arguments, none of those are good reasons for changing your views. Just because it is more fun to hang out with drug lords doesn't mean their world view is better. Arguments should be evaluated on their own merits, not on whom they happen to be associated with. "}, {"id": "cnetnpz", "body": "I definitely respect the opinion of people who are more positive and generally well put together than the opinion of those who spew bile. What you say is true, but so is the opposite, I think."}, {"id": "cne9ol5", "body": "Well, it depends on the type of exposure. \n\nBefore Reddit, I was fairly anti-gun, but I've become very pro gun after reading some subs. In general, the progun folks had good arguments and were generally positive because to them it's a fun hobby. Compare this with the anti gun sub's which are mostly snark, bile and hatred. I was ashamed to be associated with them, so it made me rethink my beliefs."}, {"id": "cneeob4", "body": "It's not like reddit held a gun to your head and forced you to change your mind.\n\nIt showed you evidence. You chose to accept the evidence.\n\n4chan shows people evidence. They get to decide whether to accept it."}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cne9dkh", "body": "I disagree. It varies from person to person, but we are all a product of our environment. If you hear the same point of view repeated time and again by many different people, a part of you can't help but absorb that.\n\nAn easy example here is stereotypes. You can be the most liberal, open-minded and understanding individual in the world, but immerse yourself in a racist or stereotype-driven culture for a few weeks, and then note the first thought that comes into your head when an Asian driver cuts you off in traffic."}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cne5mbg", "body": "Tell that to the orthodox religions. "}, {"id": "cne5mbg", "body": "Tell that to the orthodox religions. "}, {"id": "cne700j", "body": "This is the kind of mindset that leads to censorship. If you think people are bad in general, and need to be protected from bad ideas, then there is something wrong with your perspective, rather than the people themselves. "}, {"id": "cne700j", "body": "This is the kind of mindset that leads to censorship. If you think people are bad in general, and need to be protected from bad ideas, then there is something wrong with your perspective, rather than the people themselves. "}, {"id": "cne7bjv", "body": "There are some complexities you're ignoring. Brainwashing is a successful tactic, as is desensitization in a less controlled form. Then there's also the nature of apparently ALL things humans do... Everything is a job. If you're lazy at work, in relationships, with your mentality, with your children, with your general socializing and life, you better really fucking hope you have a natural tendency to stray towards the healthier side of things. In most cases, people slack off with their philosophy, then we get emotionally-fueled religion and ignorance. That's not to say every person becomes that way, but most people definitely don't approach religious philosophy as seriously as one should treat a job or skill. \n\nPoint being, censorship is traditionally a bad idea, but imagine if you were pummeled with depictions of graphic murder and death on TV, billboards, the radio, computer, everything at all times. You would surely become desensitized, but I also believe a person's general anxiety would increase, possibly also our general hostility. Freedom is a good idea in traditional thought, but as far as my example goes, I see advertising as very similar. It's a disgustingly pervasive force in society that brainwashes us into a constant state of envy and overstimulation. If we saw a healthy society as a job, such things would not be allowed."}, {"id": "cne7bjv", "body": "There are some complexities you're ignoring. Brainwashing is a successful tactic, as is desensitization in a less controlled form. Then there's also the nature of apparently ALL things humans do... Everything is a job. If you're lazy at work, in relationships, with your mentality, with your children, with your general socializing and life, you better really fucking hope you have a natural tendency to stray towards the healthier side of things. In most cases, people slack off with their philosophy, then we get emotionally-fueled religion and ignorance. That's not to say every person becomes that way, but most people definitely don't approach religious philosophy as seriously as one should treat a job or skill. \n\nPoint being, censorship is traditionally a bad idea, but imagine if you were pummeled with depictions of graphic murder and death on TV, billboards, the radio, computer, everything at all times. You would surely become desensitized, but I also believe a person's general anxiety would increase, possibly also our general hostility. Freedom is a good idea in traditional thought, but as far as my example goes, I see advertising as very similar. It's a disgustingly pervasive force in society that brainwashes us into a constant state of envy and overstimulation. If we saw a healthy society as a job, such things would not be allowed."}, {"id": "cne8x5q", "body": "Then we need to be working towards this in the right manner, rather than using a tool of censorship that has historically been ineffective, and also makes it worse. Censorship is reactionary, and doesn't actually solve anything. We are better than reactionary actions. \n\nI am someone who has actually got desensitized to many things, and I stopped it myself because I realized it wasn't good for my own state of mind. I agree that not everyone is going to do that on their own, but that's the way we are going to have to go to solve this. I don't believe that telling people to hide them is going to make it better. I think we should accept all our differences, and start teaching people better codes to abide by, such as \"you are free to do anything as long as it doesn't hurt or limit other people's from expressing their freedoms.\" \n\nWe should arm people with a critical mindset, and work towards mastering ourselves. Sadly, society hasn't put enough effort on this at all. Instead we have people with half thought ideas, either in the form of a religion, or something that they randomly picked up on life, and they go around hating all others who don't abide by it. \n\nFor example, racism doesn't die by hiding it. The only way racism has actually died is by racists interacting with the group they hate, and realizing it for themselves about how their ideas are not valid beliefs. \n\nI actually have a sub [/r/UnitedWeStand](http://www.reddit.com/r/UnitedWeStand) that was made to promote doing good to one another, and accepting our differences. We are all born and brought up with different experiences, and its natural for us to have differences in beliefs. We just have to have a good code that isn't based on our biases, and is something that makes sense for everyone. People will always do something you don't approve of, but the way to fix this is to convince and change their mind, rather than censor them. "}, {"id": "cne7bjv", "body": "There are some complexities you're ignoring. Brainwashing is a successful tactic, as is desensitization in a less controlled form. Then there's also the nature of apparently ALL things humans do... Everything is a job. If you're lazy at work, in relationships, with your mentality, with your children, with your general socializing and life, you better really fucking hope you have a natural tendency to stray towards the healthier side of things. In most cases, people slack off with their philosophy, then we get emotionally-fueled religion and ignorance. That's not to say every person becomes that way, but most people definitely don't approach religious philosophy as seriously as one should treat a job or skill. \n\nPoint being, censorship is traditionally a bad idea, but imagine if you were pummeled with depictions of graphic murder and death on TV, billboards, the radio, computer, everything at all times. You would surely become desensitized, but I also believe a person's general anxiety would increase, possibly also our general hostility. Freedom is a good idea in traditional thought, but as far as my example goes, I see advertising as very similar. It's a disgustingly pervasive force in society that brainwashes us into a constant state of envy and overstimulation. If we saw a healthy society as a job, such things would not be allowed."}, {"id": "cne82if", "body": "> with depictions of graphic murder and death on TV, billboards, the radio, computer, everything at all times\n\nHave you been living in a cave?"}, {"id": "cne82if", "body": "> with depictions of graphic murder and death on TV, billboards, the radio, computer, everything at all times\n\nHave you been living in a cave?"}, {"id": "cne86rw", "body": "My point was about it being *constant*. And I've never seen anything on par with something like Faces of Death aside from on the internet in select places. That's the type of death I was referring to."}, {"id": "cne86rw", "body": "My point was about it being *constant*. And I've never seen anything on par with something like Faces of Death aside from on the internet in select places. That's the type of death I was referring to."}, {"id": "cne9e6g", "body": "The concept is enough, that's what people fail to realise. Desensitisation allows the flood of our own imaginations, an open door to a suddenly acceptable path of thought. "}, {"id": "cne5mbg", "body": "Tell that to the orthodox religions. "}, {"id": "cne9dem", "body": "> Tell that to ~~the orthodox religions~~ Anita Sarkeesian.\n"}, {"id": "cne9dem", "body": "> Tell that to ~~the orthodox religions~~ Anita Sarkeesian.\n"}, {"id": "cneaabh", "body": "No. Genderless January. Let's have some respite from that nutbar."}, {"id": "cne4azh", "body": "Exposure to viewpoints that you don't agree with won't make you agree with them, that doesn't even make sense."}, {"id": "cne8p1a", "body": "I don't think 4chan is the best place for exposure to viewpoints. Although there are people who will engage with you, chances are you'll be dismissed and called a faggot. There's also a big chance that the person you're talking doesn't actually know much about the subject and has limited exposure to one side, but since he's anonymous he can feel free to lecture others.\n\nI also think that there's a group mentality thing. Like the use of memes, where people who say they aren't racist will still call people jews or niggers to be in on the joke. So they go against their viewpoint for the sake of it."}, {"id": "cne8p1a", "body": "I don't think 4chan is the best place for exposure to viewpoints. Although there are people who will engage with you, chances are you'll be dismissed and called a faggot. There's also a big chance that the person you're talking doesn't actually know much about the subject and has limited exposure to one side, but since he's anonymous he can feel free to lecture others.\n\nI also think that there's a group mentality thing. Like the use of memes, where people who say they aren't racist will still call people jews or niggers to be in on the joke. So they go against their viewpoint for the sake of it."}, {"id": "cne9ctc", "body": "Sure, but that isn't what I meant, I meant that in the end you decide what you believe and what morals you have and of course 4chan could influence your opinion, but so will every interaction with other people."}, {"id": "cne9ctc", "body": "Sure, but that isn't what I meant, I meant that in the end you decide what you believe and what morals you have and of course 4chan could influence your opinion, but so will every interaction with other people."}, {"id": "cnea2g7", "body": "True enough, but [I think this guy put it perfectly](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cne9gb0)"}, {"id": "cne9ctc", "body": "Sure, but that isn't what I meant, I meant that in the end you decide what you believe and what morals you have and of course 4chan could influence your opinion, but so will every interaction with other people."}, {"id": "cnea07e", "body": "And thats the reason why Neonazis and the likes aren't invited to debate. We are in conclusion for 70 years that it's bullshit, and that airing them equals propaganda because they don't really have anything to add to any half-serious debate."}, {"id": "cnea07e", "body": "And thats the reason why Neonazis and the likes aren't invited to debate. We are in conclusion for 70 years that it's bullshit, and that airing them equals propaganda because they don't really have anything to add to any half-serious debate."}, {"id": "cnea7uk", "body": "Let people talk all they want and hopefully the \"good\" opinions are spread further and the \"bad\" opinions are discarded, it's not like the nazis are a particularily popular group."}, {"id": "cnea7uk", "body": "Let people talk all they want and hopefully the \"good\" opinions are spread further and the \"bad\" opinions are discarded, it's not like the nazis are a particularily popular group."}, {"id": "cneakxy", "body": "Everybody can talk what he/ she wants. That doesn't mean that you have to give every backwards racists a showstage."}, {"id": "cneakxy", "body": "Everybody can talk what he/ she wants. That doesn't mean that you have to give every backwards racists a showstage."}, {"id": "cnedyuk", "body": "Right, but anyone can post whatever they want to believe on 4chan or reddit or wherever."}, {"id": "cnedyuk", "body": "Right, but anyone can post whatever they want to believe on 4chan or reddit or wherever."}, {"id": "cnee7vw", "body": "Yes, and thats what makes people on 4chan worse people. Full circle."}, {"id": "cne8p1a", "body": "I don't think 4chan is the best place for exposure to viewpoints. Although there are people who will engage with you, chances are you'll be dismissed and called a faggot. There's also a big chance that the person you're talking doesn't actually know much about the subject and has limited exposure to one side, but since he's anonymous he can feel free to lecture others.\n\nI also think that there's a group mentality thing. Like the use of memes, where people who say they aren't racist will still call people jews or niggers to be in on the joke. So they go against their viewpoint for the sake of it."}, {"id": "cne9sx2", "body": "I don't think that you actually read what he said\n\n>Exposure to viewpoints that you don't agree with **won't make you agree with them**. \n\nI have some friends that are very reasonable members of society that also have an extreme **sense of humor** that go on 4chan, and that doesn't make them a bad person. \n\nPeople can think for themselves, its a pretty common thing.\n\nSince I spend time on the internet I use the word faggot a lot with my close friends, but I am careful not to use it when others are around, and I do not have any hate towards gay people. I fully support gays and their rights. Am I a bad person? "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne7cox", "body": "It's precisely because of anonymity that your ideas have to stand on their own merits. There's no way to get a pass just because of *who you are*, and you don't need to worry about one opinion you had in a totally separate thread affecting people's view of you in the next one.\n\nThat doesn't make you a \"worse\" person as much as it just helps you recognize you're not a special snowflake. Your ideas aren't unique. You're one of countless others. I'd argue the incentive against attention-whoring makes you a better person, not a worse one.\n\n\u00a0\n\n>people are subconsciously encouraged to take part of it in order to feel like they are a part of the group.\n\nBecause you can't immediately tell insiders from outsiders, most boards form their own set of shibboleths that changes with time. If you can't use it properly, you get outed. Think of that like a password system showing you respect that board enough to have familiarized yourself with how it does things. In comparison to reddit's voting system, this is hardly forcing herd mentality or echo chambers.\n\n\u00a0\n\n>On boards you will find echo chambers where people are more prone to believe rumors than proof.\n\nYep, that's reddit alright. Oh, wait."}, {"id": "cne7cox", "body": "It's precisely because of anonymity that your ideas have to stand on their own merits. There's no way to get a pass just because of *who you are*, and you don't need to worry about one opinion you had in a totally separate thread affecting people's view of you in the next one.\n\nThat doesn't make you a \"worse\" person as much as it just helps you recognize you're not a special snowflake. Your ideas aren't unique. You're one of countless others. I'd argue the incentive against attention-whoring makes you a better person, not a worse one.\n\n\u00a0\n\n>people are subconsciously encouraged to take part of it in order to feel like they are a part of the group.\n\nBecause you can't immediately tell insiders from outsiders, most boards form their own set of shibboleths that changes with time. If you can't use it properly, you get outed. Think of that like a password system showing you respect that board enough to have familiarized yourself with how it does things. In comparison to reddit's voting system, this is hardly forcing herd mentality or echo chambers.\n\n\u00a0\n\n>On boards you will find echo chambers where people are more prone to believe rumors than proof.\n\nYep, that's reddit alright. Oh, wait."}, {"id": "cnes30a", "body": "This is a good post. This brings to my mind the days of digg when it had peaked. There was a user, MrBabyMan. He was basically the god of most content you were allowed to see every day and due to digg's poor design, that's basically all it was anymore...MrBabyMan.\n\n\nHe was very popular and had many followers, but, to me, him getting so popular was the reason that digg faded into obscurity. I mean, you might as well just plop in front of a TV and watch the news if you want other people deciding what you want to see. Reddit has \"power users\" as well but they don't control EVERYTHING. \n\n\nSome people wake up every day and the first thing they do is get on twitter to see what other people think about stuff. I just don't get it. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne4sax", "body": "If thats the case then everything else holds true following that train of thought. Video Games will make you a killer, rock music will turn you to Satan, etc.\n\nI've been browsing 4chan for close to 10 years and have not fallen into this trap of being a bitter, spiteful person as you say.\n\nAnd adding a \"Not all people\" at the end of your argument completely voids your argument to begin with."}, {"id": "cne4sax", "body": "If thats the case then everything else holds true following that train of thought. Video Games will make you a killer, rock music will turn you to Satan, etc.\n\nI've been browsing 4chan for close to 10 years and have not fallen into this trap of being a bitter, spiteful person as you say.\n\nAnd adding a \"Not all people\" at the end of your argument completely voids your argument to begin with."}, {"id": "cne776k", "body": "I don't see how those things are in the same train of thought. Peer influence and herd mentality are pretty old psychological concepts/theories about social interaction that could be applied to an online community. 'Video games make you a killer' is.. well I don't know what that refers to, the influence of virtual reality on human behavior? Social interaction, music, and video games are different types of stimuli and I imagine they influence behavior in different ways if at all."}, {"id": "cne776k", "body": "I don't see how those things are in the same train of thought. Peer influence and herd mentality are pretty old psychological concepts/theories about social interaction that could be applied to an online community. 'Video games make you a killer' is.. well I don't know what that refers to, the influence of virtual reality on human behavior? Social interaction, music, and video games are different types of stimuli and I imagine they influence behavior in different ways if at all."}, {"id": "cne8ne3", "body": "I'm trying to show that this type of mentality has been shown in ages past, when rock was first introduced it was vilified by people as being \"horrible for the youth and would turn them evil\", Video games still face this on a regular occurrence today being touted as the reason for teen murderers and others.\n\nTogether, they all follow the same rule of thumb, people who do this are bad, or will become bad. And that's not a healthy way of looking at something.\n\nAnd again, as I said, there are the cases, where yes, its possible that stimuli was the cause, but that person usually has a \"problem\" from the start.\n\nWhich then becomes the question, all people? Or people with an imbalance?"}, {"id": "cne8ne3", "body": "I'm trying to show that this type of mentality has been shown in ages past, when rock was first introduced it was vilified by people as being \"horrible for the youth and would turn them evil\", Video games still face this on a regular occurrence today being touted as the reason for teen murderers and others.\n\nTogether, they all follow the same rule of thumb, people who do this are bad, or will become bad. And that's not a healthy way of looking at something.\n\nAnd again, as I said, there are the cases, where yes, its possible that stimuli was the cause, but that person usually has a \"problem\" from the start.\n\nWhich then becomes the question, all people? Or people with an imbalance?"}, {"id": "cnedtzc", "body": "Your analogy breaks down where it matters most. Forums are about human interaction and exchange of ideas. 4chan users have a specific way of interacting and carrying on discussion that I think is very detrimental to the exchange of ideas. (Not on all of 4chan but on certain boards).\n\nIt's also certainly not the case that every single person will internalize the overall apprise of 4chan and their way of communication, so I don't think anyone is surprised that some people can browse it and go unchanged. "}, {"id": "cne4sax", "body": "If thats the case then everything else holds true following that train of thought. Video Games will make you a killer, rock music will turn you to Satan, etc.\n\nI've been browsing 4chan for close to 10 years and have not fallen into this trap of being a bitter, spiteful person as you say.\n\nAnd adding a \"Not all people\" at the end of your argument completely voids your argument to begin with."}, {"id": "cne5gz3", "body": ">And adding a \"Not all people\" at the end of your argument completely voids your argument to begin with.\n\nI changed it to say that I think the majority of people are affected negatively."}, {"id": "cne5gz3", "body": ">And adding a \"Not all people\" at the end of your argument completely voids your argument to begin with.\n\nI changed it to say that I think the majority of people are affected negatively."}, {"id": "cne5pe8", "body": "So, again then, are you saying that the majority of people who play violent games will become killers? Or that the majority of people who listen to rock or metal are satanists? \n\nEvery person is unique and reacts to stimuli differently, and granted there are those who are prone to become worse, how else would depression or suicide even be considered by some people? But to spout that \"The majority\" of people who do/follow or enjoy something become worse for it, or even better, is a ridiculous notion."}, {"id": "cne5pe8", "body": "So, again then, are you saying that the majority of people who play violent games will become killers? Or that the majority of people who listen to rock or metal are satanists? \n\nEvery person is unique and reacts to stimuli differently, and granted there are those who are prone to become worse, how else would depression or suicide even be considered by some people? But to spout that \"The majority\" of people who do/follow or enjoy something become worse for it, or even better, is a ridiculous notion."}, {"id": "cne788y", "body": "There is a great degree of difference between a game and reality. In a game you are dealing with virtual entities that can be reset and become pristine by a flip of a switch, so even death becomes an irrelevant concept.\n\nIn the internet, though, you are dealing with real people. You can create true relationships, offend and be offended, and as much as you delete your nick, the effects of your actions might persist. That is why internet harassment is seen as more and more of a big deal.\n\nPersonally I did find that even reddit helps cultivating something of a cynical attitude, for all that's good about it."}, {"id": "cne788y", "body": "There is a great degree of difference between a game and reality. In a game you are dealing with virtual entities that can be reset and become pristine by a flip of a switch, so even death becomes an irrelevant concept.\n\nIn the internet, though, you are dealing with real people. You can create true relationships, offend and be offended, and as much as you delete your nick, the effects of your actions might persist. That is why internet harassment is seen as more and more of a big deal.\n\nPersonally I did find that even reddit helps cultivating something of a cynical attitude, for all that's good about it."}, {"id": "cne8bvo", "body": "I agree with that, but the point I'm trying to really argue against is why there was a need to edit the view. If you edit a view from \"I believe visiting 4chan makes you a worse person\" to, \"I believe visiting 4chan makes you a worse person, well, not all people.\" Then you've already changed your view.\n\nWhich is what makes a topic like this have no real purpose. You can't say that a thing makes people inherently worse or better because of its existence, and then turn around and say, \"but not everybody though\". It completely defeats the purpose of the view.\n\nedit: grammar "}, {"id": "cne8bvo", "body": "I agree with that, but the point I'm trying to really argue against is why there was a need to edit the view. If you edit a view from \"I believe visiting 4chan makes you a worse person\" to, \"I believe visiting 4chan makes you a worse person, well, not all people.\" Then you've already changed your view.\n\nWhich is what makes a topic like this have no real purpose. You can't say that a thing makes people inherently worse or better because of its existence, and then turn around and say, \"but not everybody though\". It completely defeats the purpose of the view.\n\nedit: grammar "}, {"id": "cne94dm", "body": "I suppose it's difficult to change it by not being more specific as to who is affected and who isn't. I guess it's difficult to determine the effects of a site on a person without a proper study anyway. I see your point."}, {"id": "cne8bvo", "body": "I agree with that, but the point I'm trying to really argue against is why there was a need to edit the view. If you edit a view from \"I believe visiting 4chan makes you a worse person\" to, \"I believe visiting 4chan makes you a worse person, well, not all people.\" Then you've already changed your view.\n\nWhich is what makes a topic like this have no real purpose. You can't say that a thing makes people inherently worse or better because of its existence, and then turn around and say, \"but not everybody though\". It completely defeats the purpose of the view.\n\nedit: grammar "}, {"id": "cnedwp6", "body": "It doesn't defeat the purpose. It's just a change in view. One of those views could be true while the other isn't. He should give out a delta though"}, {"id": "cne5pe8", "body": "So, again then, are you saying that the majority of people who play violent games will become killers? Or that the majority of people who listen to rock or metal are satanists? \n\nEvery person is unique and reacts to stimuli differently, and granted there are those who are prone to become worse, how else would depression or suicide even be considered by some people? But to spout that \"The majority\" of people who do/follow or enjoy something become worse for it, or even better, is a ridiculous notion."}, {"id": "cne9duz", "body": "I don't think there's anything encouraging video games to make people into killers, or metal fans to become satanists as it's mostly for shock value or branding. People who want to shoot people will be drawn to violent games and satanists will be drawn to metal.\n\nThere's nothing inherent in the website 4chan to make people act dickish, but the people who browse it make it so because of the mechanics of the site."}, {"id": "cne9duz", "body": "I don't think there's anything encouraging video games to make people into killers, or metal fans to become satanists as it's mostly for shock value or branding. People who want to shoot people will be drawn to violent games and satanists will be drawn to metal.\n\nThere's nothing inherent in the website 4chan to make people act dickish, but the people who browse it make it so because of the mechanics of the site."}, {"id": "cnea5im", "body": "Okay hold up. \n\n\"There's nothing inherent\" \n\nAnd \n\n\"They do so because of the mechanics of the site\"\n\nContradict each other."}, {"id": "cnea5im", "body": "Okay hold up. \n\n\"There's nothing inherent\" \n\nAnd \n\n\"They do so because of the mechanics of the site\"\n\nContradict each other."}, {"id": "cnea9el", "body": "What I mean is that there wasn't a person who sat down and thought \"time to make a site where people can go and be dicks\", but made a site for anonymous posting. Then because of how the site works it developed that way naturally."}, {"id": "cnea9el", "body": "What I mean is that there wasn't a person who sat down and thought \"time to make a site where people can go and be dicks\", but made a site for anonymous posting. Then because of how the site works it developed that way naturally."}, {"id": "cneacnj", "body": "You keep saying that.\n\n \"Because of how the site works it developed that way naturally\" \n\nSo you're saying there's a natural tendency for the way the site works to inherently make people act dickish."}, {"id": "cneacnj", "body": "You keep saying that.\n\n \"Because of how the site works it developed that way naturally\" \n\nSo you're saying there's a natural tendency for the way the site works to inherently make people act dickish."}, {"id": "cneak7h", "body": "Yeah, anonymous posting on an imageboard."}, {"id": "cneak7h", "body": "Yeah, anonymous posting on an imageboard."}, {"id": "cneaz2n", "body": "Sorry it just sounded like you were contradicting yourself."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne90oe", "body": "It will certainly make you a colder person. Or let's say, a \"less sensitive\" person. But I'm not conviced that this is always a bad thing. \n\nAfter all the gore I witnessed on 4chan, I'm able to jump in an accident scene and actually keep my cool while most other people around are freaking out like crazed apes, yelling and really doing nothing to help at all. \nAfter all the freak sexualities i was exposed to in 4chan, I find it hard to judge anyone about anything they do with their bodies and partners. \n\nAnd so on.\n\nI'd say 4chan will open your eyes and show you Reality on many topics. \n\nIt can have a bad influence with all the racism etc tho but this, you have to keep in check yourself. \n\nAbout \"pessimism\"..well yeah...some people may answer to you that there is not much to be optimistic about in this world and that maybe you are delusional/uninformed to think otherwise.\nAre they right? Are they wrong? Hard to tell. "}, {"id": "cne90oe", "body": "It will certainly make you a colder person. Or let's say, a \"less sensitive\" person. But I'm not conviced that this is always a bad thing. \n\nAfter all the gore I witnessed on 4chan, I'm able to jump in an accident scene and actually keep my cool while most other people around are freaking out like crazed apes, yelling and really doing nothing to help at all. \nAfter all the freak sexualities i was exposed to in 4chan, I find it hard to judge anyone about anything they do with their bodies and partners. \n\nAnd so on.\n\nI'd say 4chan will open your eyes and show you Reality on many topics. \n\nIt can have a bad influence with all the racism etc tho but this, you have to keep in check yourself. \n\nAbout \"pessimism\"..well yeah...some people may answer to you that there is not much to be optimistic about in this world and that maybe you are delusional/uninformed to think otherwise.\nAre they right? Are they wrong? Hard to tell. "}, {"id": "cne92a0", "body": "> After all the gore I witnessed on 4chan, I'm able to jump in an accident scene and actually keep my cool \n\nIs this something that has actually happened?"}, {"id": "cne92a0", "body": "> After all the gore I witnessed on 4chan, I'm able to jump in an accident scene and actually keep my cool \n\nIs this something that has actually happened?"}, {"id": "cnea8vl", "body": "Yes and no.\r\r a little girl was swept by a car in Paris, she was lying unconscious with a bit of blood from her nose, people were hysterical, I kept the mother in check cause she was trying to move her , then had to keep the people around in check cause they were physically trying to restrain her to prevent the mother to only touch her and she was getting totally mad... All while calling the ER and taking a picture of the car's licence plate cause the driver kept near his open door all the time (while he was being harassed and yelled at by like 10 persons). I've had no follow up on this incident.\r\rJust 2 weeks ago, heard and felt a crash very close to my house, a drunken teen had just smashed his car full force into another's property wall after missing the turn, neighbors went out but no one had the head to keep the guy in check, cause he was walking near his ruined car, not understanding what just happened told him to stay put and sit and just generally speak to him so he doesn't freak out. People were looking from a few meters, not doing anything. I called the ER, the guy stood up and tried to restart his car, had to take his keys from him, spent 20 minutes, making small talk, reassuring him and just generally checking if he wasn't internally hurt/losing consciousness/ had blood coming out from the mouth ears or nose.\rHe seemed ok appart from the shock and high level drunkenness.\r\rAaand... I work in a surgery unit and the kind of gore I witness there doesn't shock me at all .\r\rSo yeah. It wasn't a person cut in half or whatever gore you can see on 4chan but I think a bit of desensitization can help keep a leveled head in stressful situations.\r\r"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne9uo2", "body": "4chan is heavily moderated now, and 'problematic' boards like pol have been euthanised - moot has basically killed it, since pretty much the entire point of it was anonymous free speech; a lot of core users have stopped using the site.\n\nRegarding CYV, you are currently browsing Reddit which is far more of a hugbox with arguably a stronger group mentality (group approved posts are boosted while controversial ones are sunk and hidden - versus a chan board where all posts are given equal weight on the page, the onus is on you to voice your disagreement rather than just silently clicking a downvote button).\n\nAlso you seem to mostly be descibing /b/ & /pol/, other boards are pretty similar to subreddits, just a bit less nicey-nicey.\n\nFinally, do you have any proof that users become more depressed when posting on the site, or are you just unaccustomed a board culture that lacks any form of politeness? Or perhaps it could just be that sites like that attract those from the margins of society, who feel disaffected from mainstream culture and as such inevitably come across to the average person as less well-adjusted than those in other communities.\n"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne6zye", "body": "The idea that there is a \"real you\" that only emerges in the absence of social norms ignores the fact that 4chan itself is a social context with its own social norms that encourage certain behaviours and discourage others. It just happens to be a social context where people are anonymous."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnec55q", "body": "\"Trafficking children for sex is so popular, there's a multi billion dollar industry for it in America.\"\n\nSource? That seems incredibly exaggerated. The FBI's national initiative for child prostitution (http://www.fbi.gov/about-us/investigate/vc_majorthefts/cac/innocencelost) has averaged rescuing 310 minors a year. There are roughly 75,000,000 minors in the U.S fyi. Furthermore your claim would mean that sex trafficking children is on par revenue wise with other multi billion dollar entities in America like the NBA."}, {"id": "cnec55q", "body": "\"Trafficking children for sex is so popular, there's a multi billion dollar industry for it in America.\"\n\nSource? That seems incredibly exaggerated. The FBI's national initiative for child prostitution (http://www.fbi.gov/about-us/investigate/vc_majorthefts/cac/innocencelost) has averaged rescuing 310 minors a year. There are roughly 75,000,000 minors in the U.S fyi. Furthermore your claim would mean that sex trafficking children is on par revenue wise with other multi billion dollar entities in America like the NBA."}, {"id": "cneceon", "body": "Well according to missing kids dot com, when I googled how many kids are kidnapped, it said that 800,000 kids are reported missing, so as long as the price of a kid is over two grand I'm right.\n\nOnly 300 are found? That's depressing..."}, {"id": "cneceon", "body": "Well according to missing kids dot com, when I googled how many kids are kidnapped, it said that 800,000 kids are reported missing, so as long as the price of a kid is over two grand I'm right.\n\nOnly 300 are found? That's depressing..."}, {"id": "cnedaz2", "body": "Reported missing is not the same as kidnapped. The report it links to (https://www.ncjrs.gov/pdffiles1/ojjdp/196465.pdf) concludes \"Thus, the\nstudy shows that, although the number of caretaker\nmissing children is fairly large and a majority come to\nthe attention of law enforcement or missing children\u2019s\nagencies, all but a very small percentage are recovered\nfairly quickly\"\n\n In fact only 9% were even abducted with the vast majority of of those abductions perpetrated by a family member. In the end they only found 90 total cases out of the 800000 children reported missing where the child had actually been kidnapped by a stranger."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne57ng", "body": "I don't think this is wholly true. \n\nYes, we can be more honest when anonymous, but there's also a sense of a little kid trying out swear words to see what sort of reaction they get. \n\nTim might not really think you're a dirty faggot, but he wants to feel what it's like to call someone a dirty faggot.\n\nIt's no different than a role playing game, where you get to be stronger or smarter, or more violent or whatever than you really are. \n\nI have no desire to assassinate anyone in real life, but, damn, it can be fun to do in a video game.\n\nHumanity likes to think it's darker than it is, because the dark side seems so glamorous and mysterious - but if we truly were, the world would be a vastly shittier place. "}, {"id": "cne57ng", "body": "I don't think this is wholly true. \n\nYes, we can be more honest when anonymous, but there's also a sense of a little kid trying out swear words to see what sort of reaction they get. \n\nTim might not really think you're a dirty faggot, but he wants to feel what it's like to call someone a dirty faggot.\n\nIt's no different than a role playing game, where you get to be stronger or smarter, or more violent or whatever than you really are. \n\nI have no desire to assassinate anyone in real life, but, damn, it can be fun to do in a video game.\n\nHumanity likes to think it's darker than it is, because the dark side seems so glamorous and mysterious - but if we truly were, the world would be a vastly shittier place. "}, {"id": "cne5i4v", "body": "A vastly shittier place where millions of cops and soldiers have jobs entirely because without them, society would rip itself apart.\n\nIf humanity, specifically on the internet, werent such vile mongoloids... why do we have mods on Reddit? Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion! \n\nBut they won't.\n\nSo the mods step in. "}, {"id": "cne5i4v", "body": "A vastly shittier place where millions of cops and soldiers have jobs entirely because without them, society would rip itself apart.\n\nIf humanity, specifically on the internet, werent such vile mongoloids... why do we have mods on Reddit? Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion! \n\nBut they won't.\n\nSo the mods step in. "}, {"id": "cne5z89", "body": "The fact that we have mods who volunteer to mod, and for the most part do it fairly (as well as the billions of others who do good for others without personal gain) would suggest that humanity isn't hopeless."}, {"id": "cne5z89", "body": "The fact that we have mods who volunteer to mod, and for the most part do it fairly (as well as the billions of others who do good for others without personal gain) would suggest that humanity isn't hopeless."}, {"id": "cne7b5j", "body": "To add to this, people are more likely to remember the darkness of humanity, than the everyday good uplifting news. Doesn't mean that humanity is evil, but just that we are better with remember the bad stuff. \n\nAlso soldiers (especially US soldiers) are not the reason for protecting society from ripping itself apart. They are mostly involved in power games with other countries, that serve to only increase the wealth and status of the rich. "}, {"id": "cne5z89", "body": "The fact that we have mods who volunteer to mod, and for the most part do it fairly (as well as the billions of others who do good for others without personal gain) would suggest that humanity isn't hopeless."}, {"id": "cneimid", "body": "yeah, thank god the mods are here to delete opinions I disagree with and swear words. What would we do without them?"}, {"id": "cne5i4v", "body": "A vastly shittier place where millions of cops and soldiers have jobs entirely because without them, society would rip itself apart.\n\nIf humanity, specifically on the internet, werent such vile mongoloids... why do we have mods on Reddit? Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion! \n\nBut they won't.\n\nSo the mods step in. "}, {"id": "cnecl20", "body": "> Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion!\n> \n> \n> \n> But they won't.\n> \n> \n> \n> So the mods step in. \n\nCan you explain what you mean here? I'm pretty sure the collective of /r/askhistorians would flail against you with the fury of a thousand Magikarps if you tried to insinuate the Holocaust didn't happen."}, {"id": "cnecl20", "body": "> Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion!\n> \n> \n> \n> But they won't.\n> \n> \n> \n> So the mods step in. \n\nCan you explain what you mean here? I'm pretty sure the collective of /r/askhistorians would flail against you with the fury of a thousand Magikarps if you tried to insinuate the Holocaust didn't happen."}, {"id": "cnecuxx", "body": "Oh recently the ask historians made Holocaust denial a banable offense and it caused a bit of an uproar and the argument was deniars would get downvoted to oblivian.\n\nI keep forgetting reddit is so big. "}, {"id": "cnecuxx", "body": "Oh recently the ask historians made Holocaust denial a banable offense and it caused a bit of an uproar and the argument was deniars would get downvoted to oblivian.\n\nI keep forgetting reddit is so big. "}, {"id": "cnecx0y", "body": "So /r/askhistorians mods would need to ban you because their users wouldn't downvote you for saying the Holocaust is a lie as seen by a recent thread where Holocaust deniers were downvoted into oblivion to the point where the unanimity of /r/askhistorians users' opinions caused the mods to install a \"this topic is dead because it's obviously one-sided\" rule?\n\nI don't know where you were going with your initial comment, but I don't think that's the outcome you were looking for."}, {"id": "cnecx0y", "body": "So /r/askhistorians mods would need to ban you because their users wouldn't downvote you for saying the Holocaust is a lie as seen by a recent thread where Holocaust deniers were downvoted into oblivion to the point where the unanimity of /r/askhistorians users' opinions caused the mods to install a \"this topic is dead because it's obviously one-sided\" rule?\n\nI don't know where you were going with your initial comment, but I don't think that's the outcome you were looking for."}, {"id": "cnedbf7", "body": "If people were naturally good the problem would solve itself. "}, {"id": "cnedbf7", "body": "If people were naturally good the problem would solve itself. "}, {"id": "cnedl3z", "body": "The problem did solve itself. The deniers were downvoted into oblivion, and the mods put a rule in place that allows them to just remove content the community has made it very clear they don't want. The mods and the users are in agreement there. I'm not sure what you're trying to suggest."}, {"id": "cnedl3z", "body": "The problem did solve itself. The deniers were downvoted into oblivion, and the mods put a rule in place that allows them to just remove content the community has made it very clear they don't want. The mods and the users are in agreement there. I'm not sure what you're trying to suggest."}, {"id": "cneei1d", "body": "That's not the problem solving itself. \n\nThat's mods stepping in to solve the problem.\n\n"}, {"id": "cnedl3z", "body": "The problem did solve itself. The deniers were downvoted into oblivion, and the mods put a rule in place that allows them to just remove content the community has made it very clear they don't want. The mods and the users are in agreement there. I'm not sure what you're trying to suggest."}, {"id": "cnedvk0", "body": "Why bother adding the rule if the users handle it themselves? Its like congress making it a law that you should tie your shoes. People do it anyway."}, {"id": "cnedvk0", "body": "Why bother adding the rule if the users handle it themselves? Its like congress making it a law that you should tie your shoes. People do it anyway."}, {"id": "cnefgjv", "body": "Oh, you're one of *those* kids. False equivalency of your example aside, having \"no Holocaust denying\" in the rules allows mods to remove such content with a valid excuse, which means that community members don't need to vote it into oblivion in the first place. It's a shortcut to getting rid of content the users don't want without needing to bother the users."}, {"id": "cne5i4v", "body": "A vastly shittier place where millions of cops and soldiers have jobs entirely because without them, society would rip itself apart.\n\nIf humanity, specifically on the internet, werent such vile mongoloids... why do we have mods on Reddit? Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion! \n\nBut they won't.\n\nSo the mods step in. "}, {"id": "cnedj6o", "body": "Again, you're pointing out that some people are shitty and then extrapolating that to the entire species as if every individual is the same. How many people do you know woop have been convicted of murder or violent crime? Probably not a huge amount. It just takes a few assholes to necessitate organizations that stop them. That says little about the rest of humanity. "}, {"id": "cne5i4v", "body": "A vastly shittier place where millions of cops and soldiers have jobs entirely because without them, society would rip itself apart.\n\nIf humanity, specifically on the internet, werent such vile mongoloids... why do we have mods on Reddit? Surely if I said the holocaust was a dirty Jew lie, /r/askhistorians users would downvote me to oblivion! \n\nBut they won't.\n\nSo the mods step in. "}, {"id": "cneeqf4", "body": "Uh yes they would. "}, {"id": "cne57ng", "body": "I don't think this is wholly true. \n\nYes, we can be more honest when anonymous, but there's also a sense of a little kid trying out swear words to see what sort of reaction they get. \n\nTim might not really think you're a dirty faggot, but he wants to feel what it's like to call someone a dirty faggot.\n\nIt's no different than a role playing game, where you get to be stronger or smarter, or more violent or whatever than you really are. \n\nI have no desire to assassinate anyone in real life, but, damn, it can be fun to do in a video game.\n\nHumanity likes to think it's darker than it is, because the dark side seems so glamorous and mysterious - but if we truly were, the world would be a vastly shittier place. "}, {"id": "cne9xwc", "body": "Exactly. He's just spewing some armchair psychology."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnei5qx", "body": "> Humanity is dark\n\nConsidering the innate utilitarian nature of both humans and other animals we can safely say that is not true. That whole deeply rooted and dominant selfish nature is pretty much a gravely over-exaggerated myth. It is also quite counter-productive to try to convince yourself and other people (including your children) this because it only justifies bad behaviour. It is evolutionary adaptive to be cooperative and care for others. Way more than caring for only yourself. "}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne76o7", "body": "I wouldn't say people aren't good to begin. Perhaps it is you that is not ready to accept humanity with its flaws. The world is full of people who are upset that the rest of mankind is not living by the moral codes that they hold on to. This is really the mindset that has destroyed humanity from the start. \n\nIf people didn't force people to hide their true colors, then it wouldn't lead them to cultivate it as they do now. They would have sought help. All people want to do is be accepted, and we should learn to do that first. Teach them good moral laws, that has nothing to do with religion or our own biases. For example, your expression of freedom shouldn't hurt or limit the freedom of another human being. If it does, then there is something wrong with it, and you need help or a proper outlet that doesn't hurt others. I have a sub [/r/UnitedWeStand](http://www.reddit.com/r/UnitedWeStand) that is made on this idea of accepting, rather than forcing others to follow our ways. \n\nTL;DR Humanity is dark because we force people to hide their problems, rather than treat them, and that is because they fear the hate from all the other people who won't tolerate their differences. "}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnec2do", "body": "I certainly have no interest in emailing and calling the parents of a dead child to mock him or her and to spread pictures of their corpse. There are many, many examples of these sorts of raids happening, not to mention the doxxing and the swatting that regularly goes on there. Anonymous venting is a very, very different thing than any of that"}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnehqck", "body": "It is ridiculous statement. There is no such thing as raw humanity. 4chan removes responsibility for your actions. If you called someone dirty faggot someone a while ago you got a good chance to get a bullet between your eyes (you still can). Since workplaces don't want that they set up a set of rules that prevents violence, so you collectively delegate your rights to protect yourself from verbal attacks to your employer (sort of [social contract](http://en.wikipedia.org/wiki/Social_contract)). So I think 4chan is actually opposite of raw humanity, because as I see it, raw humanity is a society where you can get your shit beaten out of you if you call someone dirty faggot and not get fired."}, {"id": "cnehqck", "body": "It is ridiculous statement. There is no such thing as raw humanity. 4chan removes responsibility for your actions. If you called someone dirty faggot someone a while ago you got a good chance to get a bullet between your eyes (you still can). Since workplaces don't want that they set up a set of rules that prevents violence, so you collectively delegate your rights to protect yourself from verbal attacks to your employer (sort of [social contract](http://en.wikipedia.org/wiki/Social_contract)). So I think 4chan is actually opposite of raw humanity, because as I see it, raw humanity is a society where you can get your shit beaten out of you if you call someone dirty faggot and not get fired."}, {"id": "cnepcqw", "body": "That's because you see 4chan, Reddit, Facebook, Twitter, etc. as an extension of who you are in real life. Not everyone feels that way and it's really very silly for you to expect everyone to use the internet exactly like you do."}, {"id": "cnepcqw", "body": "That's because you see 4chan, Reddit, Facebook, Twitter, etc. as an extension of who you are in real life. Not everyone feels that way and it's really very silly for you to expect everyone to use the internet exactly like you do."}, {"id": "cner5js", "body": "I don't expect it. I almost never say things online that I can't say in real life. A lot of people do say such things, especially behind anonymity. I consider it cowardice and hypocrisy in 90% of cases."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnec22e", "body": "> 4chan is raw humanity.\n\n\n4chan is what a very emotional 14 year old thinks raw humanity is. It's a competition to be a horrible person. "}, {"id": "cnec22e", "body": "> 4chan is raw humanity.\n\n\n4chan is what a very emotional 14 year old thinks raw humanity is. It's a competition to be a horrible person. "}, {"id": "cneejtr", "body": "/b/ isn't even a competition to be a horrible person, let alone the rest of 4chan.\n\nIt's just comedy that you don't appreciate."}, {"id": "cneejtr", "body": "/b/ isn't even a competition to be a horrible person, let alone the rest of 4chan.\n\nIt's just comedy that you don't appreciate."}, {"id": "cneenlx", "body": "If /b/ is comedy than anything can be comedy and the word has no meaning. "}, {"id": "cneenlx", "body": "If /b/ is comedy than anything can be comedy and the word has no meaning. "}, {"id": "cnefei8", "body": "So where's your line?\n\nI've seen rape comedy, bestiality comedy, child pornography comedy, comedy comedy, tax comedy, insurance comedy, lawyer comedy, disease comedy, holocaust comedy, infanticide comedy, anti-comedy...\n\nJust as anything can be art, anything can be comedy. "}, {"id": "cnefei8", "body": "So where's your line?\n\nI've seen rape comedy, bestiality comedy, child pornography comedy, comedy comedy, tax comedy, insurance comedy, lawyer comedy, disease comedy, holocaust comedy, infanticide comedy, anti-comedy...\n\nJust as anything can be art, anything can be comedy. "}, {"id": "cneg2s9", "body": "I am sure there are funny people making funny jokes on /b/. That does not make /b/ as a whole a funny place. It's a cesspool. "}, {"id": "cneg2s9", "body": "I am sure there are funny people making funny jokes on /b/. That does not make /b/ as a whole a funny place. It's a cesspool. "}, {"id": "cneossi", "body": "Whether a thing is comedy is not determined by your having laughed at it."}, {"id": "cnec22e", "body": "> 4chan is raw humanity.\n\n\n4chan is what a very emotional 14 year old thinks raw humanity is. It's a competition to be a horrible person. "}, {"id": "cnecgdy", "body": "Its pure id. \n\nLook at askreddits when people ask what would you do if time froze or crimes were legal? Half the answers are rape."}, {"id": "cnecgdy", "body": "Its pure id. \n\nLook at askreddits when people ask what would you do if time froze or crimes were legal? Half the answers are rape."}, {"id": "cned4ez", "body": "Yeah, reddit is full of rapists. No argument from me on that point. "}, {"id": "cned4ez", "body": "Yeah, reddit is full of rapists. No argument from me on that point. "}, {"id": "cnedinp", "body": "Or people that would if they could get away with it.\n\nI'm talking about human nature, not current events."}, {"id": "cnec22e", "body": "> 4chan is raw humanity.\n\n\n4chan is what a very emotional 14 year old thinks raw humanity is. It's a competition to be a horrible person. "}, {"id": "cnedkn2", "body": "I think you actually have a really a good point. "}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnede8t", "body": "That doesn't address the op at all. Being able to be a shit head is not the same as browsing the sight and becoming a shit head. There will always be shitty people, but that's not exactly ground breaking. \n\nNinja edit: also, just because you want to say or so something doesn't make it okay. Denying our own impulses is a very important part of being able to actually have a society that isn't complete garbage"}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne552u", "body": "You didn't address their view."}, {"id": "cne552u", "body": "You didn't address their view."}, {"id": "cne58ze", "body": "to;dr it doesn't make you a bad person, humanity is already mostly bad people and 4chan is a place to be the real you, without the social contract getting in your way.\n\nWe are a mask of what society wants us to be and, at best, 4chan just let's you be who you really are."}, {"id": "cne58ze", "body": "to;dr it doesn't make you a bad person, humanity is already mostly bad people and 4chan is a place to be the real you, without the social contract getting in your way.\n\nWe are a mask of what society wants us to be and, at best, 4chan just let's you be who you really are."}, {"id": "cne5ezc", "body": "I reject that what you see on 4chan is \"real humanity\". It's how SOME people act - anonymously, on the internet. Others dont. Unsurprisingly the type who would act that way tend to go there and we don't hear from the others. \n\nI can find many anonymous places online that mostly emphasize love/acceptance or whatever, and what's to stop me from claiming *this* is real humanity revealed?\n\nNot to mention, even if it were \"real us\" to be bad, if 4chan caused someone who otherwise didn't act/think in that way often to start doing so more than before, OPs view would still be correct."}, {"id": "cne5ezc", "body": "I reject that what you see on 4chan is \"real humanity\". It's how SOME people act - anonymously, on the internet. Others dont. Unsurprisingly the type who would act that way tend to go there and we don't hear from the others. \n\nI can find many anonymous places online that mostly emphasize love/acceptance or whatever, and what's to stop me from claiming *this* is real humanity revealed?\n\nNot to mention, even if it were \"real us\" to be bad, if 4chan caused someone who otherwise didn't act/think in that way often to start doing so more than before, OPs view would still be correct."}, {"id": "cne5kim", "body": "[deleted]"}, {"id": "cne5kim", "body": "[deleted]"}, {"id": "cne5w4h", "body": "I didn't say Reddit was one of those places. I also didn't say people were mostly good. Besides, if 100 people are well behaved and 3 aren't, you need a moderator. This doesn't demonstrate your point either. The sewer water must be having some effect on your reasoning skills. \n\n"}, {"id": "cne5w4h", "body": "I didn't say Reddit was one of those places. I also didn't say people were mostly good. Besides, if 100 people are well behaved and 3 aren't, you need a moderator. This doesn't demonstrate your point either. The sewer water must be having some effect on your reasoning skills. \n\n"}, {"id": "cne5xo6", "body": "Those 100 people will downvote those three and the trio will get a temporary ban.\n\nAlas, shitty comments get up votes all the time. Us here on the low road outnumber you on that high one."}, {"id": "cne5xo6", "body": "Those 100 people will downvote those three and the trio will get a temporary ban.\n\nAlas, shitty comments get up votes all the time. Us here on the low road outnumber you on that high one."}, {"id": "cne6328", "body": "This is getting to be beside the point. Shitty comments also get down voted often, and good comments upvoted. And everything in between. This mix does nothing to support that people are fundamentally bad. And again, that's just Reddit. \n\nPerhaps, people have good and bad things about them, to varying degrees, and different places have different concentrations of the various types of goodness/badness. "}, {"id": "cne6328", "body": "This is getting to be beside the point. Shitty comments also get down voted often, and good comments upvoted. And everything in between. This mix does nothing to support that people are fundamentally bad. And again, that's just Reddit. \n\nPerhaps, people have good and bad things about them, to varying degrees, and different places have different concentrations of the various types of goodness/badness. "}, {"id": "cne6o4r", "body": "The point is people are bad and when there are no (okay, almost no) rules, 4chan happens.\n\nAnonymity and little to no moderation reveals true human nature.\n\nFor instance, 4chan's reaction to that woman whose two year old reached into her purse, grabbed her gun, and shot and killed her in a Walmart is what I think a lot of our secret reactions were: what a stupid bitch."}, {"id": "cne6o4r", "body": "The point is people are bad and when there are no (okay, almost no) rules, 4chan happens.\n\nAnonymity and little to no moderation reveals true human nature.\n\nFor instance, 4chan's reaction to that woman whose two year old reached into her purse, grabbed her gun, and shot and killed her in a Walmart is what I think a lot of our secret reactions were: what a stupid bitch."}, {"id": "cne7kwc", "body": "Why exactly are people bad? Because they aren't following your moral code?\n\nMaybe it is your inability to accept true human nature, that is the problem here. We need less people who hide themselves, and cultivate these dark thoughts, rather than get help. Censorship and intolerance, has only historically made things much more worse than it would have been initially. It is used as a quick band-aid, but sadly it only makes the whole problem much worse. "}, {"id": "cne5kim", "body": "[deleted]"}, {"id": "cne7ge4", "body": ">2. Don't be rude or hostile to other users. \n\nOptimism is not naive. Far from it. \n>\n\u201cRemember, you cannot be both young and wise. Young people who pretend to be wise to the ways of the world are mostly just cynics. Cynicism masquerades as wisdom, but it is the farthest thing from it. Because cynics don\u2019t learn anything. Because cynicism is a self-imposed blindness, a rejection of the world because we are afraid it will hurt us or disappoint us. Cynics always say no. But saying \u201cyes\u201d begins things. Saying \u201cyes\u201d is how things grow. Saying \u201cyes\u201d leads to knowledge. \u201cYes\u201d is for young people. So for as long as you have the strength to, say \u201cyes'.\u201d\n\n>\u2015 Stephen Colbert "}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne9jh5", "body": "I am a human. I'm an ok person. Therefore you're notion that humanity is dark and bad is false."}, {"id": "cne9jh5", "body": "I am a human. I'm an ok person. Therefore you're notion that humanity is dark and bad is false."}, {"id": "cnea997", "body": "Everyone thinks they're good people and that the evils they commit are justified."}, {"id": "cnea997", "body": "Everyone thinks they're good people and that the evils they commit are justified."}, {"id": "cneap8z", "body": "You should sometimes go outside and actually talk to real people and not just hang out on 4chan. Then you would see that not everybody is a shitty person."}, {"id": "cneap8z", "body": "You should sometimes go outside and actually talk to real people and not just hang out on 4chan. Then you would see that not everybody is a shitty person."}, {"id": "cnebpis", "body": "Thousands of years and hundreds of philosophers and writers dedicating their whole lives to the question of human nature.\n\n*Why didn't any of them just go outside?!*\n\nAlso I don't go to 4chan. That'd be like going to Detroit for a vacation."}, {"id": "cnebpis", "body": "Thousands of years and hundreds of philosophers and writers dedicating their whole lives to the question of human nature.\n\n*Why didn't any of them just go outside?!*\n\nAlso I don't go to 4chan. That'd be like going to Detroit for a vacation."}, {"id": "cnecex7", "body": "Most actual philosophers do not hold the view that humans are intrinsically evil. "}, {"id": "cnecex7", "body": "Most actual philosophers do not hold the view that humans are intrinsically evil. "}, {"id": "cnecjms", "body": "Any defense of the existence of government or the social contract begs to differ.\n\n"}, {"id": "cnecjms", "body": "Any defense of the existence of government or the social contract begs to differ.\n\n"}, {"id": "cneexcn", "body": "The social contract isn't defended because humans are otherwise evil, it's defended as part of what differentiates humans from other states of nature. In other words, social contract is *part of what makes us human* and thus *part of our better nature.*\n\nMost political/philosophical writing from that time period argued that 'life in the state of nature is \"solitary, poor, nasty, brutish and short\"' (*Leviathan*, Hobbes). You can read that as stating that *humans* are 'naturally' solitary, poor, nasty, brutish, and short-lived if you pulled that quote off of Wikipedia and put it on your black tee-shirt to scowl at preps as you walk down the hall of your high school thinking those vacuous conformists be the mindless flesh-eaters at the barrel end of a shotgun once the zombie apocalypse breaks out, or you could read it in context to the wider text itself that points out that humans have evolved themselves past that state of nature by inventing and developing the concept of civilization out of an inherent quality of their humanity.\n\nHell, you don't even need a philosopher. You can look to Mr. Roger's point about, whenever bad things happen, just look at all the people in the background helping. When an earthquake happens, there may be a spike in violence and property theft/destruction in marginal areas of society, but the wider response of most humans is to rebuild and restructure to attempt to prevent damage from subsequent earthquakes. My proof: cities that just sit there defiantly existing, despite any one person's opinion that everything's going to go to shit. On the other hand, I may be completely wrong, and Mr. Rogers is TOTALLY a philosopher. \n\nThat's not to say that philosophers have complete consensus that the social contract is *the* [better angel of our nature](http://en.wikipedia.org/wiki/The_Better_Angels_of_Our_Nature). There's also the Great Man view of history that states that humanity is driven to be better than itself by key principals (who themselves follow key principles), the transcendentalist view that nature itself has its moral quality that humanity is a part of and in balance with, the libertarian philosophy that individuals know better for themselves how to be a moral person than a social contract can regulate, religious principles that humanity's better nature is cosmically rewarded while their worse nature is cosmically punished, and even fringe philosophies like objectivism that state that even IF people just suck at life, the good people can fuck off to a Gulch and make it work themselves because they're better than everyone else. \n\nAll of these philosophies and more operate under the observation that individual human beings are more than capable of doing the right thing, and the sum total of humanity's progress so far shows we tend to spend more time cooperating than fighting. This is even shown scientifically, as worldwide violence just incessantly keeps dropping despite every cynical protest that the end is nigh. \n\nDon't get me wrong. I'm aware that awful shit is happening to humans by humans all across the world right now, and that there's always been awful shit happening *somewhere.* I'm also aware that the *reason I'm aware of awful shit happening* is *because we care to ferret it out and try to fix it.* I'm also aware that progress is not so linear, that setbacks and accidents occur, that well-intentioned progress causes unforeseen consequences, that occasionally a malevolent agent gains enough power to severely hurt many people. Civilization is complex. Shit happens.\n\nBut the counterargument to your view that humans are intrinsically evil is the phenomenon known as empathy, and social contracts derive from that empathy. Empathy is not an invention nor an illusion, it's a natural state of human cognition (see: pareidolia and our desire to personify and tame animals). Through social contracts we've managed to build a global civilization of 7 billion people rather than go extinct tearing each other apart. Clearly human beings know how to get along, and spend a lot more time getting along than they do hurting each other. "}, {"id": "cneexcn", "body": "The social contract isn't defended because humans are otherwise evil, it's defended as part of what differentiates humans from other states of nature. In other words, social contract is *part of what makes us human* and thus *part of our better nature.*\n\nMost political/philosophical writing from that time period argued that 'life in the state of nature is \"solitary, poor, nasty, brutish and short\"' (*Leviathan*, Hobbes). You can read that as stating that *humans* are 'naturally' solitary, poor, nasty, brutish, and short-lived if you pulled that quote off of Wikipedia and put it on your black tee-shirt to scowl at preps as you walk down the hall of your high school thinking those vacuous conformists be the mindless flesh-eaters at the barrel end of a shotgun once the zombie apocalypse breaks out, or you could read it in context to the wider text itself that points out that humans have evolved themselves past that state of nature by inventing and developing the concept of civilization out of an inherent quality of their humanity.\n\nHell, you don't even need a philosopher. You can look to Mr. Roger's point about, whenever bad things happen, just look at all the people in the background helping. When an earthquake happens, there may be a spike in violence and property theft/destruction in marginal areas of society, but the wider response of most humans is to rebuild and restructure to attempt to prevent damage from subsequent earthquakes. My proof: cities that just sit there defiantly existing, despite any one person's opinion that everything's going to go to shit. On the other hand, I may be completely wrong, and Mr. Rogers is TOTALLY a philosopher. \n\nThat's not to say that philosophers have complete consensus that the social contract is *the* [better angel of our nature](http://en.wikipedia.org/wiki/The_Better_Angels_of_Our_Nature). There's also the Great Man view of history that states that humanity is driven to be better than itself by key principals (who themselves follow key principles), the transcendentalist view that nature itself has its moral quality that humanity is a part of and in balance with, the libertarian philosophy that individuals know better for themselves how to be a moral person than a social contract can regulate, religious principles that humanity's better nature is cosmically rewarded while their worse nature is cosmically punished, and even fringe philosophies like objectivism that state that even IF people just suck at life, the good people can fuck off to a Gulch and make it work themselves because they're better than everyone else. \n\nAll of these philosophies and more operate under the observation that individual human beings are more than capable of doing the right thing, and the sum total of humanity's progress so far shows we tend to spend more time cooperating than fighting. This is even shown scientifically, as worldwide violence just incessantly keeps dropping despite every cynical protest that the end is nigh. \n\nDon't get me wrong. I'm aware that awful shit is happening to humans by humans all across the world right now, and that there's always been awful shit happening *somewhere.* I'm also aware that the *reason I'm aware of awful shit happening* is *because we care to ferret it out and try to fix it.* I'm also aware that progress is not so linear, that setbacks and accidents occur, that well-intentioned progress causes unforeseen consequences, that occasionally a malevolent agent gains enough power to severely hurt many people. Civilization is complex. Shit happens.\n\nBut the counterargument to your view that humans are intrinsically evil is the phenomenon known as empathy, and social contracts derive from that empathy. Empathy is not an invention nor an illusion, it's a natural state of human cognition (see: pareidolia and our desire to personify and tame animals). Through social contracts we've managed to build a global civilization of 7 billion people rather than go extinct tearing each other apart. Clearly human beings know how to get along, and spend a lot more time getting along than they do hurting each other. "}, {"id": "cneugg8", "body": "I absolutely love it when other people take the time to explain at length these things to counterbalance this popular view that humanity is somehow intrinsically awful. I've done it myself many times but it gets tiring, thanks for making the effort. "}, {"id": "cnecjms", "body": "Any defense of the existence of government or the social contract begs to differ.\n\n"}, {"id": "cned1pr", "body": "I take it you aren't especially familiar with the various branches of moral philosophy. "}, {"id": "cnea997", "body": "Everyone thinks they're good people and that the evils they commit are justified."}, {"id": "cnedlq4", "body": "So are you asserting that none of those people actually *are* good?"}, {"id": "cnedlq4", "body": "So are you asserting that none of those people actually *are* good?"}, {"id": "cnedtxn", "body": "I'm asserting that generally, humans are shitty. When they aren't shitty, its rare. And that generally, people think they aren't shitty. So they can sleep at night."}, {"id": "cnedtxn", "body": "I'm asserting that generally, humans are shitty. When they aren't shitty, its rare. And that generally, people think they aren't shitty. So they can sleep at night."}, {"id": "cnef3nc", "body": "You think it's rare for people to not be shitty? As in, people generally spend more than 50% of their time being shitty? "}, {"id": "cnef3nc", "body": "You think it's rare for people to not be shitty? As in, people generally spend more than 50% of their time being shitty? "}, {"id": "cnefko1", "body": "Its more a problem of opportunity to be shitty.\n\nIts like...\n\nOkay how many people would *love* to punch their boss right in their face? How many people do it?"}, {"id": "cnefko1", "body": "Its more a problem of opportunity to be shitty.\n\nIts like...\n\nOkay how many people would *love* to punch their boss right in their face? How many people do it?"}, {"id": "cnefp77", "body": "Yeah, I think that shows that people restrain their urges when necessary, but not that people are overall shitty."}, {"id": "cnefp77", "body": "Yeah, I think that shows that people restrain their urges when necessary, but not that people are overall shitty."}, {"id": "cnefxnq", "body": "It all comes back to my original comment and the Oscar Wilde quote.\n\nGive me one good reason all cheating spouses aren't defenestrated upon discovery, besides the consequences?\n\nLook at religion, just pick one. The point is to resist these base, evil urges we *all* have in attempts to be good. How many sins are about feelings vs how many are about actions?"}, {"id": "cnefxnq", "body": "It all comes back to my original comment and the Oscar Wilde quote.\n\nGive me one good reason all cheating spouses aren't defenestrated upon discovery, besides the consequences?\n\nLook at religion, just pick one. The point is to resist these base, evil urges we *all* have in attempts to be good. How many sins are about feelings vs how many are about actions?"}, {"id": "cneg2cu", "body": "Well all actions are necessarily tied to consequences. Even if you just felt guilt for it. That's a consequence. All consequences aren't imposed upon us by others. Some come from our biology and psychology. \n\nSo I guess you're getting at that 4chan is a release from those consequences? "}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cnet705", "body": "A counterpoint:\n\nJohn doesn't really have many opinions on whether you're a dirty faggot, or whether it's okay to call you a dirty faggot.\n\nBut Tim calls you a dirty faggot. And he gets encouraged for that. People who try to call Tim out on his (alleged) bigotry are laughed out of the room, mocked as \"white knights\" and the \"PC police\" if they aren't outright ignored.\n\nSo now John wants to call you a dirty faggot, too. Or, at the very least, there's no chance he'll call Tim out the next time Tim wants to call you a dirty faggot.\n\nAnother example of this kind of thing is the idea of \"rape culture\", and the claim that you shouldn't tell rape jokes. The argument goes like this: Many rapists are under the impression that lots of men rape, but no one talks about it. If someone then jokes about rape, and everyone laughs, that reinforces this idea.\n\nI'm a bit ambivalent about that, actually, since I think it's usually a bad idea to make something so taboo that we won't even joke about it.\n\nBut it certainly seems plausible -- it is very common for someone to see the world as just as bad as they are, because then they feel better about themselves. If you pick your nose, then you assume *everyone* picks their nose, because the alternative is admitting you're a little grosser than everyone else. And if you think everyone is just \"not good to begin with\", I can't help but wonder what that says about how you view yourself."}, {"id": "cne47e5", "body": "4chan is raw humanity.\n\nTim isn't going to call you a dirty faggot because he'll get downvotes on reddit or fired from work.\n\nBut Tim wants to call you a dirty faggot.\n\nMan is least himself when he talks in his own person. Give him a mask, and he will tell you the truth. -Oscar Wilde\n\nHell, to avoid appearing racist, people will forego their own need to feel safe (Maslow's root need) and not cross the street to avoid a dangerous looking minority.\n\nHumanity is dark. Trafficking children for sex is so popular, there's a multi billion dollar industry for it *in America*.\n\nPeople aren't good to begin with. 4chan is just a place where you can be the real you."}, {"id": "cne8dk0", "body": "You seem to have very little faith in people. I actually feel sorry for you. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne9gb0", "body": "*On average, you will become more like the people you associate with.* If you spend your time around people who drink more heavily than you do, you are more likely to drink more over time. If you spend your time around people who tell racist jokes, even if initially you find them objectionable, over time your resistance will tend to become worn down and you will find them less surprising. If you spend your time around people who use a particular word or expression in their vocabularies (I don't mean a rude word; I mean *any* word) you will tend to pick that word up and use it as well.\n\nThis is not unusual or specific to a particular kind of social grouping or a particular kind of belief or behavior. *It is just how socialization works.* Except in *very unusual* circumstances, you *will* pick up behaviors, beliefs, and norms from people around you.\n\nWhat you are surrounded by *seems typical and, ultimately, normal.* Even if it hurts you. Think about people who have been in abusive relationships for a length of tome \u2014 they often act as if they expect abuse; that even though they don't want it, it is inevitable; they may tend to be in situations where they end up in *new* abusive relationships afterward. Similarly, people who are *not* in abusive relationships tend to think of them as *abnormal* and often fail to see why the abuse victim doesn't up and leave ....\n\nSocially, if you are in a situation where certain extreme positions or activities are tolerated, you *and everyone else* will tend to drift in the direction of the extreme, even if you do not ever actually end up *in* that extreme. In political science this is called the [Overton window](http://en.wikipedia.org/wiki/Overton_window).\n\n**In short:** You, like everyone else, tend to emulate those around you and treat the situation you're in as normal. So when you have the opportunity to choose whom you want to be around and how to spend your time, choose accordingly."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnef8hx", "body": "So, do you believe that identity is required for discourse that you approve of?\n\nBecause every single thing you've listed is either just your perception or true of reddit.\n\n/mlp/ and /fem/ do not display anything like a 'general pessimistic group mentality'.\n\nHave you been to /r/YouShouldKnow, /r/struggleporn, /r/TIL, /r/facts, /r/pcmasterrace, /r/circlejerk, /r/circlebroke, etc? Reddit has far more disturbing content than 4chan, and it's all effectively permanent. Hell, the entire Boston Bombing debacle should show you that reddit's group think is astoundingly pervasive.\n\nSomeone posting racism to /b/ only gets a few hours before they have to reiterate they're view.\n\nOn reddit, it only has to be said once in a proper sub, to be found in perpetuity by anyone browsing the site.\n\nTo say that you are more aware of how someone's interaction with a website has effected them better than they do without ever having met them is entirely absurd.\n\nYou've shown no proof whatever for your claim.\n\nYou've gone \"I think browsing [site] makes you a worse person.\"\n\n\"Some people on the site behave this way.\n\n\"Thus, browsing [site] makes you a worse person.\"\n\nTo me, I see 4chan inspiring people to take action. I see people who could not have possibly been motivated to get out of bed this morning actually contributing to causes that 4chan has shown them. \n\nThere have been numerous cases where a child goes missing, someone posts animal abuse, someone claims they'll be becoming an hero, etc, where 4chan has decided that it wasn't okay, and either prevented the event or ensured proper punishment.\n\n\n"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne6cdp", "body": ">On boards you will find echo chambers where people are more prone to believe rumors than proof.\n\nFirst, the boards I went on were /tg/, /co/, and /v/ (because the porn boards don't count). /v/ was the only board that got like this at times, but even then, it was rare. 4chan's anonymity means you can call people out on their bullshit, which I've seen done numerous times. The \"bitterness\" you mention really depends on the board culture. /tg/ was pretty optimistic and tame when compared to /v/, which was a shithole (but everybody knew it was hyperbolic shit, which was part of the point), and /co/ was somewhere in the middle.\n\nThis also ignores all the shit 4chan has done, like donating to charities and busting child porn rings. People never hear about that stuff because 4chan's been pegged with one kind of stereotype (your bitter, pessimistic, irredeemable human beings stereotype) and it's stuck, because the anons don't give a fuck.\n\n> Thinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nWhat a crock. That's like people arguing with women who don't identify as feminists saying those women have \"internalized misogyny.\" "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne607v", "body": "Anonymity means you can't be attacked for your opinions.\nPeople on tumblr who express opinions contrary to the ones held to be 'correct' by the community are regularly doxxed and have their lives ruined because of it. On 4chan, people can't threaten you for your opinions, meaning nothing is censored. On /pol/, the only thing that will convince others of your views is good arguments. Sure you can call the other guy a faggot or a racist, but people aren't swayed by that. The general view people hold as representative of pol is the one that the community, after lots of debate, has on average settled on. You get anarchists and fascists arguing, but always they concede to valid points and end up understanding each other better precisely because they cannot attack the other person. They are only able to interact with the other persons arguments.\n\nYou think their views are negative or pessimistic? Go on 4chan and express your own optimistic inclusive beliefs and see what they say. Some might agree, some might disagree, but those that disagree will do so with arguments that force you to consider other positions and maybe leave with a better understanding."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnemzfi", "body": "4chan is what happens when you let people speak their minds without fear of retaliation. \n\nReddit is just as bad as 4chan but people stick to their own subreddits like \n\n/r/blackpower \n\n/r/blackladies \n\n/r/Anarcho_Capitalism (I've seen people accused of being jewish on there) \n\n/r/Anarchism \n\n/r/FULLCOMMUNISM \n\n/r/ShitAmericansSay\n\n/r/EnoughLibertarianSpam \n\n/r/ProtectAndServe \n\n/r/Bad_Cop_No_Donut \n\n/r/haes \n\n/r/fatpeoplehate \n\n/r/Feminism \n\n/r/TrollXChromosomes \n\n/r/TheRedPill \n\n/r/TheBluePill \n\n/r/MensRights \n\n/r/againstmensrights \n\n/r/GamerGhazi \n\n/r/KotakuInAction \n\n/r/conspiracy \n\n/r/conspiratard \n\nIt's fucking insanity, but I've noticed leftist ban me more often, which is really sad for me because I consider myself a liberal. Maybe it's because I post more often in those boards? Or a neonazi became the mod of /r/blackladies and banned me idk.\n"}, {"id": "cnemzfi", "body": "4chan is what happens when you let people speak their minds without fear of retaliation. \n\nReddit is just as bad as 4chan but people stick to their own subreddits like \n\n/r/blackpower \n\n/r/blackladies \n\n/r/Anarcho_Capitalism (I've seen people accused of being jewish on there) \n\n/r/Anarchism \n\n/r/FULLCOMMUNISM \n\n/r/ShitAmericansSay\n\n/r/EnoughLibertarianSpam \n\n/r/ProtectAndServe \n\n/r/Bad_Cop_No_Donut \n\n/r/haes \n\n/r/fatpeoplehate \n\n/r/Feminism \n\n/r/TrollXChromosomes \n\n/r/TheRedPill \n\n/r/TheBluePill \n\n/r/MensRights \n\n/r/againstmensrights \n\n/r/GamerGhazi \n\n/r/KotakuInAction \n\n/r/conspiracy \n\n/r/conspiratard \n\nIt's fucking insanity, but I've noticed leftist ban me more often, which is really sad for me because I consider myself a liberal. Maybe it's because I post more often in those boards? Or a neonazi became the mod of /r/blackladies and banned me idk.\n"}, {"id": "cneu0k7", "body": "Mens Rights isn't a hate subreddit... "}, {"id": "cneu0k7", "body": "Mens Rights isn't a hate subreddit... "}, {"id": "cneue54", "body": "I think he's trying to say that these subreddits are all circlejerks (that is, only people of certain viewpoints browse those subreddits). For example, it's safe to assume that /r/ProtectAndServe is browsed mostly by pro-police Redditors, whereas /r/Bad_Cop_No_Donut is likely browsed by non-police, etc."}, {"id": "cneu0k7", "body": "Mens Rights isn't a hate subreddit... "}, {"id": "cnev5jo", "body": "I know but it's the most insane one on the list, because they and feminism both hate each other but want the same thing. Both movements have valid criticism's though."}, {"id": "cnemzfi", "body": "4chan is what happens when you let people speak their minds without fear of retaliation. \n\nReddit is just as bad as 4chan but people stick to their own subreddits like \n\n/r/blackpower \n\n/r/blackladies \n\n/r/Anarcho_Capitalism (I've seen people accused of being jewish on there) \n\n/r/Anarchism \n\n/r/FULLCOMMUNISM \n\n/r/ShitAmericansSay\n\n/r/EnoughLibertarianSpam \n\n/r/ProtectAndServe \n\n/r/Bad_Cop_No_Donut \n\n/r/haes \n\n/r/fatpeoplehate \n\n/r/Feminism \n\n/r/TrollXChromosomes \n\n/r/TheRedPill \n\n/r/TheBluePill \n\n/r/MensRights \n\n/r/againstmensrights \n\n/r/GamerGhazi \n\n/r/KotakuInAction \n\n/r/conspiracy \n\n/r/conspiratard \n\nIt's fucking insanity, but I've noticed leftist ban me more often, which is really sad for me because I consider myself a liberal. Maybe it's because I post more often in those boards? Or a neonazi became the mod of /r/blackladies and banned me idk.\n"}, {"id": "cnfmiya", "body": "[deleted]"}, {"id": "cnfmiya", "body": "[deleted]"}, {"id": "cnfnt4o", "body": "Sorry MoreHtsThnSadaharuOh, your comment has been removed: \n\n> Comment Rule 5\\. \"No low effort comments. Comments that are only jokes or 'written upvotes', for example. Humor and affirmations of agreement can be contained within more substantial comments.\" [See the wiki page for more information.](http://www.reddit.com/r/changemyview/wiki/rules#wiki_rule_5)\n\nIf you would like to appeal, please [message the moderators by clicking this link.](http://www.reddit.com/message/compose?to=%2Fr%2Fchangemyview&subject=Removed+Comment+Rule+5+Post+Appeal&message=MoreHtsThnSadaharuOh+would+like+to+appeal+the+removal+of+[his/her+post](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cnfmiya\\))"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne89go", "body": "If you find a board you like, you can makes some really awesome and ephemeral connections. /b/, /pol/, /v/, /r9k/, /x/ are not good places for making those connections. When you browse /sci/, /lit/, /ck/, /out/, any of the interest boards, you can learn to look past the shitposting and occasionally learn something new about yourself or the world around you. The fact that these connections are rare and fleeting only make them better in my eyes. If someone actually browses /fit/ and uses it to motivate themselves into physical fitness, I'm not sure that person is \"worse\" for finding that on 4chan.\n\nIn your argument you assume that the way people behave on 4chan is the same as the way people act in a face to face conversation. This is just not the case. There is a set of (quite ridiculous) vernacular for the site and I would never call one of my gay friends a gayfag or tell stories in sentence fragments. This might lower the overall discourse, though it doesn't imbue individually good posts with corruption.\n\n4chan is less of an echo chamber than most websites. Websites are mostly very specialized and when you combine that with confirmation bias, most people only see the parts of the internet they like. Even on websites like reddit that are internet aggregators people filter what they see based on their interests. The \"graffiti wall\" effect an earlier poster mentioned creates a more eclectic space and I would postulate that you are more likely to find someone that disagrees with you than on reddit (where rehashing old ideas gets your post upvotes) or the fox news comment section (a very homogenous readership). \n\nThird, your claim that it will make you a more pessimistic, negative and possibly depressive person isn't based on something I can agree with. Has one of your friends been browsing 4chan more and now further exemplifies those traits? Maybe the depression leads a person to browse 4chan more and not the other way around as you suggest. How would you go about isolating 4chan as a factor and back up your claim?\n\nFinally, saying that everyone browses 4chan is affected by it and those who don't feel it are just \"unaware\" of it doesn't further any sort of discussion. \n\nThere are valuable nuggets of information and little connections worth having on 4chan. If you can rise above the shit and don't get caught in an argument with a 12 year old calling you a faggot, I firmly believe you can browse 4chan without becoming a \"worse\" person, and in fact, I think it can improve you in some ways. \n\nMaybe I'm just being optimistic though. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne45n1", "body": "I think you're backwards here. What 4chan really does is reveal what we're like when we don't self censor. It the collective id of the internet-- the things that most people think but are scared to say in public. Most people are really racist rude and vile most people aren't into anyone but themselves and 4chan reveals that because no one knows who you are."}, {"id": "cne45n1", "body": "I think you're backwards here. What 4chan really does is reveal what we're like when we don't self censor. It the collective id of the internet-- the things that most people think but are scared to say in public. Most people are really racist rude and vile most people aren't into anyone but themselves and 4chan reveals that because no one knows who you are."}, {"id": "cne57kw", "body": ">the things that most people think\n\nYou have to at least consider that \"Most people\" don't go on 4chan. We can't just take it as what \"we're\" like. People who aren't like that aren't represented there."}, {"id": "cne45n1", "body": "I think you're backwards here. What 4chan really does is reveal what we're like when we don't self censor. It the collective id of the internet-- the things that most people think but are scared to say in public. Most people are really racist rude and vile most people aren't into anyone but themselves and 4chan reveals that because no one knows who you are."}, {"id": "cne4efn", "body": "I'd have to disagree. Not everyone on /pol/ behaves in a racist way because they truly are racist, a significant amount of people simply enjoys jokes that are usually seen as politically incorrect, and one should never underestimate the amount of sarcasm one can find on 4chan. Due to its anonymity, one is able to entertain opinions, and argue about opinions, that are completely taboo in normal society. Only a fool would choose to believe that everyone that makes a shitty KFC joke on 4chan really is racist, a great amount of people simply enjoy the freedom to make shitty jokes, much like many people who will say \"thanks Obama\" are not actually serious about that."}, {"id": "cne4efn", "body": "I'd have to disagree. Not everyone on /pol/ behaves in a racist way because they truly are racist, a significant amount of people simply enjoys jokes that are usually seen as politically incorrect, and one should never underestimate the amount of sarcasm one can find on 4chan. Due to its anonymity, one is able to entertain opinions, and argue about opinions, that are completely taboo in normal society. Only a fool would choose to believe that everyone that makes a shitty KFC joke on 4chan really is racist, a great amount of people simply enjoy the freedom to make shitty jokes, much like many people who will say \"thanks Obama\" are not actually serious about that."}, {"id": "cne91hr", "body": "> a significant amount of people simply enjoys jokes that are usually seen as politically incorrect\n\nSo you see 4chan as a bunch of failing comedians? "}, {"id": "cne91hr", "body": "> a significant amount of people simply enjoys jokes that are usually seen as politically incorrect\n\nSo you see 4chan as a bunch of failing comedians? "}, {"id": "cnebbqz", "body": "How do you get that from the part of my post you quoted?\n"}, {"id": "cnebbqz", "body": "How do you get that from the part of my post you quoted?\n"}, {"id": "cneblur", "body": "> a great amount of people simply enjoy the freedom to make shitty jokes\n\nWould you have preferred this quote. "}, {"id": "cneblur", "body": "> a great amount of people simply enjoy the freedom to make shitty jokes\n\nWould you have preferred this quote. "}, {"id": "cnebqrl", "body": "Being a failed comedian would imply trying to be a comedian, and then failing at that. Furthermore, a bad, or shitty, joke is often not bad in that it doesn't get any laughs, take for example /r/dadjokes . This is a sub with a very specific type of humour, that is often not found or appreciated outside of the sub. In much the same way, 4chan is for people pretending to be drooling retards, the only consequence being that, sadly, it also attracted some actual retards."}, {"id": "cnebqrl", "body": "Being a failed comedian would imply trying to be a comedian, and then failing at that. Furthermore, a bad, or shitty, joke is often not bad in that it doesn't get any laughs, take for example /r/dadjokes . This is a sub with a very specific type of humour, that is often not found or appreciated outside of the sub. In much the same way, 4chan is for people pretending to be drooling retards, the only consequence being that, sadly, it also attracted some actual retards."}, {"id": "cnebzfu", "body": "> a bad, or shitty, joke is often not bad in that it doesn't get any laughs,\n\nThat's the very definition of a bad joke.\n\n>This is a sub with a very specific type of humor, that is often not found or appreciated outside of the sub\n\nIt's not found or appreciated anywhere.\n\nOne couldn't do those jokes in the green room of a comedy club & expect to get a laugh."}, {"id": "cnebzfu", "body": "> a bad, or shitty, joke is often not bad in that it doesn't get any laughs,\n\nThat's the very definition of a bad joke.\n\n>This is a sub with a very specific type of humor, that is often not found or appreciated outside of the sub\n\nIt's not found or appreciated anywhere.\n\nOne couldn't do those jokes in the green room of a comedy club & expect to get a laugh."}, {"id": "cnefa6u", "body": "First of all, I have no idea what a green room is.\nSecond of all, if dadjokes are not found or appreciated anywhere, why are they found on that subreddit?\n\nIs chan humour and mannerism weird? Yes. Is it, if we were to take it at face value, wrong? yes. Should we take it at face value? no, only a fool would do such a thing.\n\nHumans are able to understand the difference between reality and fiction, and so too are they able to understand the difference between a green room (whatever that may be), and 4chan. What is acceptable in one context is not in another context. If I were to show up in tuxedo to a food bank, people would think I was being insensitive, but tuxedo's are not always wrong. Context is a thing, and not being able to understand that different things are acceptable in different contexts is a sure sign of mental deficiency."}, {"id": "cnefa6u", "body": "First of all, I have no idea what a green room is.\nSecond of all, if dadjokes are not found or appreciated anywhere, why are they found on that subreddit?\n\nIs chan humour and mannerism weird? Yes. Is it, if we were to take it at face value, wrong? yes. Should we take it at face value? no, only a fool would do such a thing.\n\nHumans are able to understand the difference between reality and fiction, and so too are they able to understand the difference between a green room (whatever that may be), and 4chan. What is acceptable in one context is not in another context. If I were to show up in tuxedo to a food bank, people would think I was being insensitive, but tuxedo's are not always wrong. Context is a thing, and not being able to understand that different things are acceptable in different contexts is a sure sign of mental deficiency."}, {"id": "cneg3ng", "body": "[Green room](http://lmgtfy.com/?q=green+room&l=1)\n\nA dadjoke is suppose to make one groan & or cringe. They are considered bad by definition.\n\nThe rest of what you've said seems to have veered off-topic. Of course, this last part *sure sign of mental deficiency* does prove you are a devote of 4chan."}, {"id": "cneg3ng", "body": "[Green room](http://lmgtfy.com/?q=green+room&l=1)\n\nA dadjoke is suppose to make one groan & or cringe. They are considered bad by definition.\n\nThe rest of what you've said seems to have veered off-topic. Of course, this last part *sure sign of mental deficiency* does prove you are a devote of 4chan."}, {"id": "cneid42", "body": "You're the one not making any sense here, you know that right? 4chan is a specific context in which it can be assumed that people are most definitely not being serious.\n\na dadjoke, which is a thing that exists (despite your earlyer claims), is GOOD because it is traditionally seen as bad. It is not a bad joke, it is a \"bad\" joke."}, {"id": "cneg3ng", "body": "[Green room](http://lmgtfy.com/?q=green+room&l=1)\n\nA dadjoke is suppose to make one groan & or cringe. They are considered bad by definition.\n\nThe rest of what you've said seems to have veered off-topic. Of course, this last part *sure sign of mental deficiency* does prove you are a devote of 4chan."}, {"id": "cneql9f", "body": "Maybe you don't understand the concept of doing it for the lulz. "}, {"id": "cne45n1", "body": "I think you're backwards here. What 4chan really does is reveal what we're like when we don't self censor. It the collective id of the internet-- the things that most people think but are scared to say in public. Most people are really racist rude and vile most people aren't into anyone but themselves and 4chan reveals that because no one knows who you are."}, {"id": "cnee2d6", "body": "That's not really a defensible argument. It could be the case that people specifically are on 4chan just to put on a show. It's a a big joke to a lot of them. They're not saying things they necessarily believe. It's all about getting a reaction. \n\nHow is that any more true to yourself than something you say face to face? You have motivations either way. They're just different ones"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne6sx3", "body": ">Surrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\n>I'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nIs there any evidence or studies to support this? "}, {"id": "cne6sx3", "body": ">Surrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\n>I'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nIs there any evidence or studies to support this? "}, {"id": "cneagct", "body": "I got the idea about \"being around negative thinking will affect you negatively\" from the book \"Directional Thinking\" by Benjamin Chapin."}, {"id": "cneagct", "body": "I got the idea about \"being around negative thinking will affect you negatively\" from the book \"Directional Thinking\" by Benjamin Chapin."}, {"id": "cneq8vi", "body": "okay. I sort of agree with you. Was just curious if there had been any research you knew of"}, {"id": "cne6sx3", "body": ">Surrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\n>I'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nIs there any evidence or studies to support this? "}, {"id": "cnescvm", "body": "The man in the iron mask?"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne84va", "body": "Whelp, you've just described r/politics in a nutshell. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne5wxy", "body": "I consider myself a rational, good person, who cares about the truth. I occasionally browse 4chan, and because of that, lately I've been wondering if the Jews don't actually run some things. Apparently, they really do run Hollywood. Every source I can find corroborates this; even the Jews themselves.\n\nI never would have considered this to be anything but a joke if it weren't for what I read on 4chan. I never would have learned about Zionism, or how the UN switched its position directly from \"Zionism is a form of racism\" to \"To equate Zionism with racism is to reject Israel itself, a member of good standing of the United Nations.\" Not that I'm about go go blaming everything on the Jews, but it was interesting to learn a bit about organizations in society and how they represent themselves.\n\nI think my pattern of browsing is not unique, and that 4chan has its representation of non-bigoted users if you look hard enough. I personally see that ugly outer layer of offensive/idiotic users as a shield against certain types of people, people who aren't really ready to get down and interact with people and their ugly beliefs. \n\n\n\n"}, {"id": "cne5wxy", "body": "I consider myself a rational, good person, who cares about the truth. I occasionally browse 4chan, and because of that, lately I've been wondering if the Jews don't actually run some things. Apparently, they really do run Hollywood. Every source I can find corroborates this; even the Jews themselves.\n\nI never would have considered this to be anything but a joke if it weren't for what I read on 4chan. I never would have learned about Zionism, or how the UN switched its position directly from \"Zionism is a form of racism\" to \"To equate Zionism with racism is to reject Israel itself, a member of good standing of the United Nations.\" Not that I'm about go go blaming everything on the Jews, but it was interesting to learn a bit about organizations in society and how they represent themselves.\n\nI think my pattern of browsing is not unique, and that 4chan has its representation of non-bigoted users if you look hard enough. I personally see that ugly outer layer of offensive/idiotic users as a shield against certain types of people, people who aren't really ready to get down and interact with people and their ugly beliefs. \n\n\n\n"}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cnebowu", "body": "The rest of your comment aside, your points about the gay agenda's \"homosexual evangelism\" and the \"sissy hypno porn\" seem somewhat far-fetched to me. While I'm sure you're right about there existing some number of gay men who'd like to convert otherwise wholly straight men to their side, I have trouble believing 4chan is a tactical arm of some large yet hidden gay agenda to \"feminize\" men on the Internet against their wills. \n\nHowever, I'm never one to shun evidence for controversies, improbable views or \"inconvenient truths,\" and since you claim to have some, surely you'd be willing to help me out. Here are my questions:\n\n1. Would you elaborate on the scale, goals, and mechanisms of the gay agenda and their \"homosexual evangelism\"? I'm having trouble imagining it in the large and influential way you seem to suggest it does. \n\n2. Do you have any evidence that this \"sissy hypno porn\" is a tool crafted by the gay agenda and not just a byproduct of a small subset of a highly diverse userbase posting on an uncensored image board during a period of shifting societal taste in pornography? (I'd also be interested in some examples of this sissy hypno porn if you know any good examples.)\n\n3. Do you have any evidence that mere exposure to said sissy hypno porn will, over time, bend otherwise straight men against their wills to the plot of the aforementioned gay agenda? Is mere exposure on 4chan tantamount to mind control?\n\n4. Why would gay men, who are generally agreed to be men who are attracted to masculine features, want to feminize the features they were first attracted to? This seems somewhat paradoxical to me. \n\nThank you for your patience with these questions. If possible, please try to substantiate your response with reputable sources instead of anecdotes and hearsay -- it will save us a lot of time in the end and make for a good discussion. \n\n**EDIT:** It's now been about two days since I asked this and you've yet to reply. Don't worry though -- I'm still watching for one so feel free to still respond."}, {"id": "cnebowu", "body": "The rest of your comment aside, your points about the gay agenda's \"homosexual evangelism\" and the \"sissy hypno porn\" seem somewhat far-fetched to me. While I'm sure you're right about there existing some number of gay men who'd like to convert otherwise wholly straight men to their side, I have trouble believing 4chan is a tactical arm of some large yet hidden gay agenda to \"feminize\" men on the Internet against their wills. \n\nHowever, I'm never one to shun evidence for controversies, improbable views or \"inconvenient truths,\" and since you claim to have some, surely you'd be willing to help me out. Here are my questions:\n\n1. Would you elaborate on the scale, goals, and mechanisms of the gay agenda and their \"homosexual evangelism\"? I'm having trouble imagining it in the large and influential way you seem to suggest it does. \n\n2. Do you have any evidence that this \"sissy hypno porn\" is a tool crafted by the gay agenda and not just a byproduct of a small subset of a highly diverse userbase posting on an uncensored image board during a period of shifting societal taste in pornography? (I'd also be interested in some examples of this sissy hypno porn if you know any good examples.)\n\n3. Do you have any evidence that mere exposure to said sissy hypno porn will, over time, bend otherwise straight men against their wills to the plot of the aforementioned gay agenda? Is mere exposure on 4chan tantamount to mind control?\n\n4. Why would gay men, who are generally agreed to be men who are attracted to masculine features, want to feminize the features they were first attracted to? This seems somewhat paradoxical to me. \n\nThank you for your patience with these questions. If possible, please try to substantiate your response with reputable sources instead of anecdotes and hearsay -- it will save us a lot of time in the end and make for a good discussion. \n\n**EDIT:** It's now been about two days since I asked this and you've yet to reply. Don't worry though -- I'm still watching for one so feel free to still respond."}, {"id": "cnfvbye", "body": "/r/sissyhypno \n\nTL;DR: There's no real evidence to support it being gay evangelism. A symptom of a porn addiction... that's much more likely. \n\nHow many guys started off at 11 or 12 plugging \"boobs\" into google? That's what I did when I was a kid. But at 22... that doesn't really \"work\" for me anymore. There is a tendency in porn use to progress from the \"softer,\" more \"innocent\" stuff to the \"hard,\" more \"extreme\" stuff. \n\nNow, that doesn't mean every (straight) guy goes from \"bikini pics\" to \"lesbian\" to \"amateur teen porn\" to \"hardcore\" to \"bukkake\" to \"rape\" to \"feminization\" to \"gay porn\" in that order. Some guys don't ever progress from lesbian stuff. Some guys are content watching just one video to get off. But other guys... start to need a bit more novelty. They need a stronger hit. \n\n\"Hot Teen Solo\" videos just don't give guys that *rush* they're used to. So they search for something that does. For some guys, that's bukkake, rape, tentacles, gay porn, etc. That doesn't mean the individual *wants or intends* to be a rapist. That doesn't mean the individual is secretly a homosexual. They were chasing a high... and \"PG-13\" just doesn't have the kick that it used to. "}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cneea2e", "body": "Why are you bringing up the fact that women don't want to interact with you? I don't see that as anything but an indication that your anti-feminism stems from a personal bias against women for ignoring you. \n\nYou seem to be arguing that everyone who identifies as feminist, believes in some official feminist tenets, which just isn't true. Maybe you could argue that feminists who believe in egalitarianism are mislabeling themselves but you can't argue that everyone who identifies as feminist believes in Marxism and wants men to cease to exist. \n\nEdit: and what is the significant of the SCUM link you provided? "}, {"id": "cneea2e", "body": "Why are you bringing up the fact that women don't want to interact with you? I don't see that as anything but an indication that your anti-feminism stems from a personal bias against women for ignoring you. \n\nYou seem to be arguing that everyone who identifies as feminist, believes in some official feminist tenets, which just isn't true. Maybe you could argue that feminists who believe in egalitarianism are mislabeling themselves but you can't argue that everyone who identifies as feminist believes in Marxism and wants men to cease to exist. \n\nEdit: and what is the significant of the SCUM link you provided? "}, {"id": "cneegbx", "body": "[deleted]"}, {"id": "cneegbx", "body": "[deleted]"}, {"id": "cneelzm", "body": "Sorry petrus4, your comment has been removed: \n\n> Comment Rule 2\\. \"Don't be rude or hostile to other users. Your comment will be removed even if the rest of it is solid.\" [See the wiki page for more information.](http://www.reddit.com/r/changemyview/wiki/rules#wiki_rule_2) \n\nIf you would like to appeal, please [message the moderators by clicking this link.](http://www.reddit.com/message/compose?to=%2Fr%2Fchangemyview&subject=Removed+Comment+Rule+2+Post+Appeal&message=petrus4+would+like+to+appeal+the+removal+of+[his/her+post](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneegbx\\))"}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cneqwn9", "body": "WtfAmIReading.png"}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cne9scw", "body": "You are just a reactionary antisemite.\n\nYou proved the OP right. 4Chan exposed you to antifeminism, ethnopluralism and the jewish world conspiracy. Congratulations."}, {"id": "cne9scw", "body": "You are just a reactionary antisemite.\n\nYou proved the OP right. 4Chan exposed you to antifeminism, ethnopluralism and the jewish world conspiracy. Congratulations."}, {"id": "cnea9ew", "body": "\"I read evidence and came to my own conclusions\"\n\nNope. Definitely corrupted and turned to the dark side by evil forces beyond his control by the hacker known as 4chan"}, {"id": "cnea9ew", "body": "\"I read evidence and came to my own conclusions\"\n\nNope. Definitely corrupted and turned to the dark side by evil forces beyond his control by the hacker known as 4chan"}, {"id": "cneanq3", "body": "\"People on the internet told me that I'm totally justified in my antisemitism.\""}, {"id": "cneanq3", "body": "\"People on the internet told me that I'm totally justified in my antisemitism.\""}, {"id": "cneavrr", "body": "> there is such abundant evidence for it.\n\n> whether it is positive or negative, it is there.\n\n>Am I advocating violent anti-Semitism, here? No. \n\n>I don't think that any particular racial or cultural group can truly claim to have it.\n\nI can see how you'd be emotionally charged and unwilling to objectively look at the words this person is saying, but try to understand through their perspective and not shout racist in the streets. \n"}, {"id": "cneavrr", "body": "> there is such abundant evidence for it.\n\n> whether it is positive or negative, it is there.\n\n>Am I advocating violent anti-Semitism, here? No. \n\n>I don't think that any particular racial or cultural group can truly claim to have it.\n\nI can see how you'd be emotionally charged and unwilling to objectively look at the words this person is saying, but try to understand through their perspective and not shout racist in the streets. \n"}, {"id": "cneb9sz", "body": "The thought that the jews control the world is in and of itself antisemitic, and also dumb. The \"evidence\" is only seen by anti-semites. You can't say dumb anti-semitic shit and then make it ok by saying you are not an antisemite. Your words and actions say something else.\n\nOhoho the Rothschilds are \"secretive\"? Shit I can tell you straight out a shitton of other fucking billionaires who don't like their private life on the shelf. Like the Piech family for example. \n\nAnd if you're part of every anti-semitic conspiracy story in the world there is propably a good reason why you stay out of the showlight.\n\nedit: And the view on the fortune 500 is hilarious too. Have you/ he actually looked at it? "}, {"id": "cneb9sz", "body": "The thought that the jews control the world is in and of itself antisemitic, and also dumb. The \"evidence\" is only seen by anti-semites. You can't say dumb anti-semitic shit and then make it ok by saying you are not an antisemite. Your words and actions say something else.\n\nOhoho the Rothschilds are \"secretive\"? Shit I can tell you straight out a shitton of other fucking billionaires who don't like their private life on the shelf. Like the Piech family for example. \n\nAnd if you're part of every anti-semitic conspiracy story in the world there is propably a good reason why you stay out of the showlight.\n\nedit: And the view on the fortune 500 is hilarious too. Have you/ he actually looked at it? "}, {"id": "cnebicm", "body": "Whether Antisemitism is a valid viewpoint or not is irrelevant to the discussion at hand. The issue is whether 4chins makes people antisemites, homophobes, racist or not. I would heavily argue that it does not. It does offer very many different viewpoints to that of the normal website, and whether that person interprets the information one way or another is entirely up to them. \n\nThis person found a viewpoint, *looked up evidence to support it or not* and came to a conclusion. This is entirely upon the person and entirely separate from 4chan itself. That's like saying \"watching Fargo will make you believe there actually was buried treasure\" When the person who said they believed buried treasure existed saw the movie and then went to the evidence themselves to garner a conclusion."}, {"id": "cnebicm", "body": "Whether Antisemitism is a valid viewpoint or not is irrelevant to the discussion at hand. The issue is whether 4chins makes people antisemites, homophobes, racist or not. I would heavily argue that it does not. It does offer very many different viewpoints to that of the normal website, and whether that person interprets the information one way or another is entirely up to them. \n\nThis person found a viewpoint, *looked up evidence to support it or not* and came to a conclusion. This is entirely upon the person and entirely separate from 4chan itself. That's like saying \"watching Fargo will make you believe there actually was buried treasure\" When the person who said they believed buried treasure existed saw the movie and then went to the evidence themselves to garner a conclusion."}, {"id": "cnebswu", "body": "Na it doesn't make them antisemites. It just reassures them in it."}, {"id": "cnebswu", "body": "Na it doesn't make them antisemites. It just reassures them in it."}, {"id": "cnebzdv", "body": "So if the worst thing about 4chan is that it makes someone who already feels negatively towards Jews feel more so because of an image posted of a man with a big nose with the caption of \"Zionist conspiracy\" then oh heavens no, I think I'm starting to hate the gays."}, {"id": "cne9scw", "body": "You are just a reactionary antisemite.\n\nYou proved the OP right. 4Chan exposed you to antifeminism, ethnopluralism and the jewish world conspiracy. Congratulations."}, {"id": "cneapaw", "body": "The only thing you have demonstrated to me with this reply, is your own lack of self-control. I have not been told anything here, which has convinced me to change my perspective."}, {"id": "cneapaw", "body": "The only thing you have demonstrated to me with this reply, is your own lack of self-control. I have not been told anything here, which has convinced me to change my perspective."}, {"id": "cnebjk5", "body": "I don't argue with antisemites. I just expose them, that's enough.\n\nWere Schumpeter, Smith, Foucault or Heidegger Jews? You just show that you have no clue about economic theory or any social science. And Marx himself, even though born jewish, wasn't all too distant from antisemitism and racism."}, {"id": "cnebjk5", "body": "I don't argue with antisemites. I just expose them, that's enough.\n\nWere Schumpeter, Smith, Foucault or Heidegger Jews? You just show that you have no clue about economic theory or any social science. And Marx himself, even though born jewish, wasn't all too distant from antisemitism and racism."}, {"id": "cnebuxp", "body": "> I don't argue with antisemites. I just expose them, that's enough.\n\nThere is a difference between being an anti-Semite on the one hand, and observing ethnic monopolies in certain areas on the other. I explicitly stated that I do not condone violence or any other form of hostile activity taken against Jews, and I stand by that here.\n\nBut please, don't let that stop you from mischaracterising me. I understand that you have a strawman to build."}, {"id": "cnebuxp", "body": "> I don't argue with antisemites. I just expose them, that's enough.\n\nThere is a difference between being an anti-Semite on the one hand, and observing ethnic monopolies in certain areas on the other. I explicitly stated that I do not condone violence or any other form of hostile activity taken against Jews, and I stand by that here.\n\nBut please, don't let that stop you from mischaracterising me. I understand that you have a strawman to build."}, {"id": "cnebzn4", "body": "You only observe those \"ethnic\" monopolies when you are an antisemite. It's called confirmation bias. You obviously don't know important economists and social scientists who aren't jewish. That doesn't show that there is an ethnic monopoly it just shows that you are ignorant and should'nt talk about a topic where you have no clue."}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cne92n7", "body": "Glad you wrote this. The overwhelming feeling from reddit is that 4chan is a **bad** place-- we have already decided they're wrong. The amount of debate over misogyny and racism here proves that this isn't the case. \n\n>The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer exist.\n\n>If you are a man who advocates feminism, then I would encourage you to read this[1] , and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you\n\nThis is an encapsulation of a problem I'm seeing a lot lately. The modern definition of feminism, as your average modern 20-something-year-old will gather from wikipedia, is no different from egalitarianism. The modern definition, on the surface, *claims* to be about equality across both genders.\n\nYet we see money being poured into women's education, to the point where the graduation rate is higher for women and they get better grades, where before it was the opposite. This is a point of contention. Why should a movement about equality produce such unequal results? On the other hand, having no program at all, things would surely revert back to the way they were, with women being extremely under-represented.\n\nBut maybe that's the way things are supposed to be? We've been artificially inflating the economical presence of women, when they are natural homebodies. Surely the balance should be in favor of men. Maybe this is right, but the fact is, before the whole push for equality, women were definitely underrepresented in professional fields, even accounting for their staying at home. \n\nI hate to be the middle-grounder, but to me it seems like the ideal fraction for women to take up, is somewhere between that past under-representation, and the diversity-fueled over-representation we're seeing today. One side says women are still under-privileged, the other side says women are trying to squash out men, and people are interested in helping that happen. The former is an exaggeration of the present fueled by the past, the latter is a reaction to a perceived threat.\n\nMoney being poured into diversity is also a point of contention. I see it as a multi-use tool for simultaneously empowering one party while rightfully worrying another, with the goal being to drive the two parties against each other, but i'm a conspiracy theorist.\n\nI also disagree that the SCUM manifesto is feminism's manifesto. Feminism to women, is mainly an outlet for perceived injustices from men. It can also be an outlet for man-hate, as a consequence of being a women's organization-- there is bound to be a shared interest in hating common enemies. But in precisely the same way that 4chan and some parts of reddit are an outlet for perceived injustices, while harboring misogyny at the same time. \n \n\n\n"}, {"id": "cne92n7", "body": "Glad you wrote this. The overwhelming feeling from reddit is that 4chan is a **bad** place-- we have already decided they're wrong. The amount of debate over misogyny and racism here proves that this isn't the case. \n\n>The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer exist.\n\n>If you are a man who advocates feminism, then I would encourage you to read this[1] , and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you\n\nThis is an encapsulation of a problem I'm seeing a lot lately. The modern definition of feminism, as your average modern 20-something-year-old will gather from wikipedia, is no different from egalitarianism. The modern definition, on the surface, *claims* to be about equality across both genders.\n\nYet we see money being poured into women's education, to the point where the graduation rate is higher for women and they get better grades, where before it was the opposite. This is a point of contention. Why should a movement about equality produce such unequal results? On the other hand, having no program at all, things would surely revert back to the way they were, with women being extremely under-represented.\n\nBut maybe that's the way things are supposed to be? We've been artificially inflating the economical presence of women, when they are natural homebodies. Surely the balance should be in favor of men. Maybe this is right, but the fact is, before the whole push for equality, women were definitely underrepresented in professional fields, even accounting for their staying at home. \n\nI hate to be the middle-grounder, but to me it seems like the ideal fraction for women to take up, is somewhere between that past under-representation, and the diversity-fueled over-representation we're seeing today. One side says women are still under-privileged, the other side says women are trying to squash out men, and people are interested in helping that happen. The former is an exaggeration of the present fueled by the past, the latter is a reaction to a perceived threat.\n\nMoney being poured into diversity is also a point of contention. I see it as a multi-use tool for simultaneously empowering one party while rightfully worrying another, with the goal being to drive the two parties against each other, but i'm a conspiracy theorist.\n\nI also disagree that the SCUM manifesto is feminism's manifesto. Feminism to women, is mainly an outlet for perceived injustices from men. It can also be an outlet for man-hate, as a consequence of being a women's organization-- there is bound to be a shared interest in hating common enemies. But in precisely the same way that 4chan and some parts of reddit are an outlet for perceived injustices, while harboring misogyny at the same time. \n \n\n\n"}, {"id": "cneb8vd", "body": "> This is an encapsulation of a problem I'm seeing a lot lately. The modern definition of feminism, as your average modern 20-something-year-old will gather from wikipedia, is no different from egalitarianism. The modern definition, on the surface, claims to be about equality across both genders.\n\nI could write at length about the undesirability and danger, of expecting Wikipedia to serve as a truly accurate, objective source of information; but that is an entirely different subject.\n\nThe point is that the egalitarian argument is used by feminism as a form of cover; a means of protecting itself. It's very similar to the method that Freemasonry uses to protect itself from negative public opinion.\n\nMasonry is an organisation with a very regimented form of hierarchical structure; the degree system. This protects the organisation, because it has a large number of individuals at the lower levels, who are not only genuinely benevolent, but do not have the necessary power or authority to be otherwise. So while one person can express the opinion that Masonry is a Luciferian conspiracy, twenty other people might voice objections that their kind, elderly grandfather was a Mason, and that the Masons are therefore nothing more than a group of harmless old men, based on their own personal experience. In reality however, the Luciferian conspiracy genuinely does exist; it simply does so at the higher levels of the organisation.\n\nThe same is true with feminism. The majority of self-styled \"feminists,\" who you will come across on the Internet are reasonable, politicially centric, sane individuals who are genuinely interested in nothing more than gender equality. What the rank and file believe in, however, says absolutely nothing about what the movement's original founders and core members believe; those active individuals who are primarily responsible for the movement's continued existence. It is this proverbial inner circle who write things like the SCUM Manifesto and who want a single-gender society; they simply rely on the rank and file to make excuses for them when the mainstream public are justifiably disturbed by their toxicity and extremism.\n\nSo when I talk about feminism, I am not interested in what the average Redditor who is trying to be politically correct and hip, and who calls him or herself a feminist in order to do so, thinks. I'm a lot more interested in people like Lierre Keith, Valarie Solanas, and Germaine Greer; because they are the ones who are writing the sick material which impressionable and (largely) innocent women read, and have their minds contaminated with. If we liken feminism with a tree, it is important to understand that the roots are where the problem really lies; not the leaves or branches."}, {"id": "cne7veg", "body": "There are numerous ways in which 4chan will damage your perspective. There are, however, areas in which the 4chan view represents an inconvenient truth; things which most of us are aware of the validity of, but which you are not normally permitted to say out loud.\n\nHow will 4chan damage you?\n\n* Misogyny.\n\nI can't remember the last post I read on 4chan, anywhere, which contained any form of positive statement about women. Women are hated on 4chan more than virtually any other form of life. Someone who is cruel to a cat might well end up dead if 4chan gets wind of it, but if you abuse women, in any manner conceivable, you are considered a hero.\n\nI truthfully have very mixed feelings about this. On the one hand, I know of a couple of women offline who are decent people; but on the other, at 38 I've had a single sexual partner, and I'm as celibate as the majority of other men in my generation. The major objection I have with feminism, is that I know that their objective is not even a society where women are dominant. Feminists want a society where men literally no longer ***exist.***\n\nIf you are a man who advocates feminism, then I would encourage you to read [this](http://www.womynkind.org/scum.htm), and to recognise that any feminist who tries to claim that it is not representative of feminism, is lying to you. That document is the very heart and soul of feminism; it is how they truly think and feel about men. When I was on IRC in the mid 90s, on a few occasions I went into channels that were run by lesbians. The level of hatred that I saw towards men there has remained with me for the rest of my life. It was worse than what I've seen on 4chan; worse than anything I've ever seen anywhere else, other than maybe some of the descriptions I've read of war attrocities.\n\nI do not morally condone the attitude which most men on 4chan have towards women; but again, it's complicated. Offline, I'm currently living at a backpacker hostel, and during the busy season we have beautiful, young (late teens through to 30 or so) women showing up here on a moderately regular basis. There are virtually no men here who I can not make friends with, yet many of these women will refuse to even make eye contact with you if you try to speak to them; and there are times when I am speaking to them, when I can clearly tell that they are only putting up with me for the sake of politeness.\n\nAny discussion or even mention of feminism, should also acknowledge the degree to which the movement is infused with (I won't say influenced by, because that is not a strong enough term) the Frankfurt School and radical Marxism. To a large extent, this also means that feminists are pawns, in the sense that a lot of early Marxist-related ideology was developed by the Russians, who at the time were openly seeking to destroy Western society. Feminism is also, therefore, inherently destructive. The movement is a sociological (and especially biological/reproductive) wrecking ball, and that is by deliberate, purposeful design.\n \nSo there are valid arguments here to be made on both sides. I don't necessarily believe that women in other ages or societies have been inherently bad people, but the most cruel and vindictive human beings that I've known in life, have generally been Millennial women. To the extent that I am able to befriend women, it will almost always be women over the age of 35.\n\n* Homosexual evangelism.\n\nThere is an extremely strong gay presence on 4chan, and it isn't exclusively limited to /lgbt/. My main area of concern here, is a type of pornography called sissy hypno porn. If you don't know what sissy hypno porn is, it's loaded with subliminal messaging, which is designed to hypnotically/subconsciously feminise men and cause them to become compulsively addicted to fellatio, via Pavlovian conditioning.\n\nThis is another form of inconvenient truth. It is generally not permissible to express the idea that homosexual evangelism, or any kind of \"gay agenda,\" actually exists; yet the reality of sissy hypno porn, what I've read about its' effects, and the casual attitudes I've also seen expressed by some who exploit and abuse people who have been exposed to this form of mind control, tells me that it is very, very real.\n\n* Racism.\n\nThere is a lot of racism expressed on 4chan. Most of it is anti-black. While I believe that the Stormfront/white supremacist presence on the site is real, it is generally much smaller than most people think. Most of the racist material on 4chan is expressed by nihilistic trolls who primarily want to offend people, and who know that racism is one of the most reliable ways to do so.\n\nMy own perspective on race, is not as politically correct as the Reddit standard view, but is also not as harsh as that usually expressed on 4chan. I've truthfully always been an advocate of ***voluntary*** segregation, and the idea that there never would have been a black/white problem in America, if American whites had not kidnapped blacks from the African continent in the first place. I feel more or less the same way about the Boer/Afrikaans presence in Africa as well. Whites simply should not be there, as blacks should not be in America. If the two groups were not forcing each other to cohabit, there would not be a problem.\n\nI also do not believe that a lower median score on IQ tests, says anything about the inherent, general worth of a given ethnic group. It ***is*** true, as far as I'm concerned, that IQ testing carries a cultural bias; it measures performance against the types of mental activities which are customary for whites. You don't see whites being formally tested on hunting or other indigenous skills, and I'm guessing that if we were, a lot of us would do just as poorly as blacks are often claimed to on IQ tests.\n\nI am not a champion or advocate of contemporary Anglo/American society. I think it is probably the single most degenerate civilisation that has ever existed on this planet, to the point where it seriously carries the potential for causing human extinction. Yet at the same time, the levels of rage and vindictiveness that I have seen expressed online by Native Americans in particular, has told me that the indigenous model is nowhere near perfect either. I don't know what the solution is for us at the moment; but I don't think that any particular racial or cultural group can truly claim to have it.\n\n* Fascism.\n\nYou will be heavily exposed to fascist ideas and propaganda on 4chan, as well as sympathetic revisionism on the subjects of Adolf Hitler and the German Nazi party.\n\nMy perspective is that fascism is an inherently bogus (provably false) ideology. Said ideology is based on two points; the Zero-Sum Game, and the supposed necessity of war as a catalyst for human development. I believe that contemporary automation technology has to at least a certain degree rendered scarcity as a concept irrelevant. I also believe that the falsity of the idea that modern war is in any way beneficial or desirable, should be entirely self-evident to any genuinely sane or lucid human being. Unfortunately for most fascists I've known online, sane and lucid are not words that I can use to describe them.\n\n* The Jewish Conspiracy.\n\nThe mythical, central, all-controlling Zionist conspiracy, is another one of those ideas which is simply unthinkable on Reddit. You aren't merely forbidden from expressing it; holding it mentally is likely considered a literal thoughtcrime by most here. It would supposedly take us back to the Holocaust if we were to seriously entertain it.\n\nThe problem with rejecting it, however, is the fact that there is such abundant evidence for it. The Rothschilds, for example, are an incontrovertibly Jewish family, who Marx was (reasonably distantly, to be sure) related to, from a long line of rabbis. Rand, von Mises, Friedman, and Chomsky (in other words, the most fundamental economic and social thinkers usually quoted by people these days) are all Jews as well. Look into the ownership of Big Media and the Fortune 500; if you are objective about it, you will unavoidably start to notice a very uncomfortable ethnic pattern emerging.\n\nAm I advocating violent anti-Semitism, here? No. There ***is*** however, a fairly consistent and discernible tendency of Jewish individuals to occupy extremely influential positions within Western society. If they do their jobs well, then that doesn't even need to be at all a bad thing. All I'm saying is that whether it is positive or negative, it ***is*** there."}, {"id": "cne9bx8", "body": "I enjoyed reading your views on feminism and agree it is bullshit now. I'm not sure what younger women not being attracted to you has to do with it though? "}, {"id": "cne9bx8", "body": "I enjoyed reading your views on feminism and agree it is bullshit now. I'm not sure what younger women not being attracted to you has to do with it though? "}, {"id": "cneas6d", "body": "Feminism encourages an exclusive view of women as ***victims***. Women are never seen as engaging in negative, exclusionary, or otherwise antisocial behaviour; and my point was that they often do. My own supposed lack of good fortune with women is also not the sole issue, in the sense that I've observed women behaving in the same manner towards other men as well."}, {"id": "cneas6d", "body": "Feminism encourages an exclusive view of women as ***victims***. Women are never seen as engaging in negative, exclusionary, or otherwise antisocial behaviour; and my point was that they often do. My own supposed lack of good fortune with women is also not the sole issue, in the sense that I've observed women behaving in the same manner towards other men as well."}, {"id": "cnebsj1", "body": "No it isn't. Only in your own world."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne6yiz", "body": "I think you have your arrow of causation backwards. People don't go to 4chan and become shitty negative people, rather, shitty negative people flock to 4chan. **You saying browsing 4chan will make you a worse person, is kind of like saying that playing basketball will make you taller.**\n\nThis kind of logical fallacy happens all the time, but is also a really easy one to check for. When you're thinking about how A caused B, don't forget to check if instead B caused A. \n\nIn reality, it's a little of both. Some people will go to 4chan to see whats up, but never really get very involved in it. Alternatively, the people who are in that shitty negative state will be more likely to stick around and get involved in it.\n\nThe negative nature of 4chan kind of filters out people who don't really resonate with that. **Regularly browsing 4chan does not make you a worse person, instead, worse people browse 4chan more regularly.**"}, {"id": "cne6yiz", "body": "I think you have your arrow of causation backwards. People don't go to 4chan and become shitty negative people, rather, shitty negative people flock to 4chan. **You saying browsing 4chan will make you a worse person, is kind of like saying that playing basketball will make you taller.**\n\nThis kind of logical fallacy happens all the time, but is also a really easy one to check for. When you're thinking about how A caused B, don't forget to check if instead B caused A. \n\nIn reality, it's a little of both. Some people will go to 4chan to see whats up, but never really get very involved in it. Alternatively, the people who are in that shitty negative state will be more likely to stick around and get involved in it.\n\nThe negative nature of 4chan kind of filters out people who don't really resonate with that. **Regularly browsing 4chan does not make you a worse person, instead, worse people browse 4chan more regularly.**"}, {"id": "cne7ndh", "body": "I find this as questionable as OP's assertions. How can you be sure of that? It also assumes the moral aspect is the only element that attracts or repels people from it. Maybe people may like the freedom 4chan gives them, but they don't like the attitudes. Maybe they just are there for the occasional good content that originates in it. It is not necessarily because they are bitter and rude that they decide to stay.\n\nFor an instance I find reddit itself often too cynical, but I like the quality of discussions that happens in some subreddit, as well as the content curation elements of it."}, {"id": "cne7ndh", "body": "I find this as questionable as OP's assertions. How can you be sure of that? It also assumes the moral aspect is the only element that attracts or repels people from it. Maybe people may like the freedom 4chan gives them, but they don't like the attitudes. Maybe they just are there for the occasional good content that originates in it. It is not necessarily because they are bitter and rude that they decide to stay.\n\nFor an instance I find reddit itself often too cynical, but I like the quality of discussions that happens in some subreddit, as well as the content curation elements of it."}, {"id": "cne8kb2", "body": "I actually don't have much experience with 4chan. I didn't mean to make it sound like everyone on 4chan has questionable morals or are negative rude people. I am just a firm believer that exposure to this kind of content does not have power to significantly change the attitudes and ethics of a rational mature adult.\n\n*Here are 3 completely different statements that people can easily mix up and can cause a lot of confusion in discussions.*\n\nIt's like when people say,\n\n1.) Violent video games make people violent. \n\nThe more likely explanation is that \n\n2.) Violent people like violent video games. \n\nThis is NOT to be confused with the statement that \n\n3.) People who play video games are violent.\n\n\nAnother example:\n\n1.) Smoking weed leads to doing other drugs.\n\n2.) People who do other drugs have probably smoked weed.\n\n3.) People who smoke weed probably do other drugs.\n\nSo to bring the analogy full circle...\n\nOP says...\n\n1.) 4chan makes people such.\n\nI say...\n\n2.) People who suck frequent 4chan.\n\nYou *thought* I was implying that...\n\n3.) People who frequent 4chan suck.\n\nThe jest of my argument is #2 in these scenarios."}, {"id": "cne8kb2", "body": "I actually don't have much experience with 4chan. I didn't mean to make it sound like everyone on 4chan has questionable morals or are negative rude people. I am just a firm believer that exposure to this kind of content does not have power to significantly change the attitudes and ethics of a rational mature adult.\n\n*Here are 3 completely different statements that people can easily mix up and can cause a lot of confusion in discussions.*\n\nIt's like when people say,\n\n1.) Violent video games make people violent. \n\nThe more likely explanation is that \n\n2.) Violent people like violent video games. \n\nThis is NOT to be confused with the statement that \n\n3.) People who play video games are violent.\n\n\nAnother example:\n\n1.) Smoking weed leads to doing other drugs.\n\n2.) People who do other drugs have probably smoked weed.\n\n3.) People who smoke weed probably do other drugs.\n\nSo to bring the analogy full circle...\n\nOP says...\n\n1.) 4chan makes people such.\n\nI say...\n\n2.) People who suck frequent 4chan.\n\nYou *thought* I was implying that...\n\n3.) People who frequent 4chan suck.\n\nThe jest of my argument is #2 in these scenarios."}, {"id": "cne9zzv", "body": "You see, even though I agree with the idea that games don't make people violent, I don't think it's an appropriate analogy for this situation. It's questionable to say videogame violence incentive or is a predictor of real world violence, because real violence is not like game violence. Game characters can be reset by a button press, so everything you do to them has no permanent effects, unlike real world violence. But being rude to people on the internet is essentially the same as being rude to people in real life. You may feel more sheltered from peer pressure and backlash due to anonimity, but you are still offending someone.\n\nBesides, as far as ethical, rational mature adults go there are... sadly less of those than we might wish. There are plenty of influentiable and reckless people, young or even not so much. And unlike games who at least attempt to restrict exposure to people too young to know better, by warning parents and retailers with ratings, the 4chan is free for everyone who might find it.\n\nIn fact, while the peer pressure may not be attached to their own identity, the pre-existing behaviors in an environment may make people more inclined to act in similar ways. I don't think it's so cut and clear to say that all people who behave shittily on internet always behaved shittily from the beginning, and all people who don't would never do regardless of environment, and they wouldn't have a reason to stay in environments less moral than them.\n\nPeople interact, exchange ideas, get used to different situations. People change much more than they themselves realize."}, {"id": "cne9zzv", "body": "You see, even though I agree with the idea that games don't make people violent, I don't think it's an appropriate analogy for this situation. It's questionable to say videogame violence incentive or is a predictor of real world violence, because real violence is not like game violence. Game characters can be reset by a button press, so everything you do to them has no permanent effects, unlike real world violence. But being rude to people on the internet is essentially the same as being rude to people in real life. You may feel more sheltered from peer pressure and backlash due to anonimity, but you are still offending someone.\n\nBesides, as far as ethical, rational mature adults go there are... sadly less of those than we might wish. There are plenty of influentiable and reckless people, young or even not so much. And unlike games who at least attempt to restrict exposure to people too young to know better, by warning parents and retailers with ratings, the 4chan is free for everyone who might find it.\n\nIn fact, while the peer pressure may not be attached to their own identity, the pre-existing behaviors in an environment may make people more inclined to act in similar ways. I don't think it's so cut and clear to say that all people who behave shittily on internet always behaved shittily from the beginning, and all people who don't would never do regardless of environment, and they wouldn't have a reason to stay in environments less moral than them.\n\nPeople interact, exchange ideas, get used to different situations. People change much more than they themselves realize."}, {"id": "cng8vn2", "body": "You raise some really good points. I agree with you, especially in that there is a huge difference between shooting characters in a video game and interacting with actual people online.\n\nThe people we surround ourselves with have big impact on the type of person we are continually becoming. So I guess it really comes down to what communities one chooses to interact with on 4chan that would determine whether it has the potential to make them a worse person or not.\n\nI love how I almost always come to some mutual understanding with people during discussion on this sub :)"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cneyhn7", "body": ">On boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact. It will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nTo be fair that's not specific to 4chan and that phenomenon has been around forever(Tumblr's community is heavily guilty of this same thing). It's also a product of individual stupidity, if your believing something random people are telling you without it being backed by proof and your own individual research, well that's your own gullibility.\n\n\nAs for 4chan making people into a worse person, I would strong disagree. I'd say more it just lets people be free, free to test the waters and do whatever without your idea's, jokes, concepts tied to any identity. Every thought stands of its own individual merits.\n\n\nI've been around 4chan since 2004 and the only way I would ever describe it would be *chaotic neutral*. One day groups from or within it might organize some raid for the lolz, [another day they're saving a kitten,](http://www.inquisitr.com/18170/4chan-b-goes-after-cat-abusers-wins/) \n[finding the girl who threw a puppy in a river,](http://www.techhive.com/article/204615/Video_of_Puppies_Thrown_into_River_Spark_Outcry_and_Sleuthing.html) \n[saving a girl from bullying and suicide,](http://www.dailydot.com/news/anonymous-kylie-suicide-trolls-bully/) \n[paying some poor dudes rent,](http://i.imgur.com/kdYBh.jpg) \n[organizing against the harmful practices of a cult,](https://en.wikipedia.org/wiki/Project_Chanology) \n[bringing more exposure to a rape victim,](http://www.dailydot.com/news/steubenville-rape-confession-video-anonymous/)\n[give some random vet the best birthday ever,](https://gigaom.com/2010/09/02/4chan-decides-to-do-something-nice-for-a-change/)\n[helping some guy buy food for his dogs,](http://i.imgur.com/tKwU3.jpg)\n[raising 5grand for a womens charity,](http://i.imgur.com/yGwmwN4.png)\n[raising 5grand for suicide prevention](https://www.crowdrise.com/nshgamers/fundraiser/loping) \n\nI've honestly seen more positive activism stem from the anonymity culture than I have from any other site.\n\nThe problem is a lot of people only understand the surface of chan boards like 4chan and equate the anonymity as some cheap way for them to be hateful under the guise of free speech, but that couldn't really be further from the truth. \n\n\nTo understand why the board encourages to *hate* is to understand who goes there and it's obviously the social outcasts. So why would a bunch of social outcasts who get made fun of encourage hate and let such raw emotion reign supreme? Quite honestly it dilutes it. Getting called a *faggot* on 4chan constantly helps you to brush it off when you hear it on the street, and the nice thing about the anonymity of the 4chan board is essentially you have a new identity with each post letting you brush it off even more. That last post you made someone made fun of you, well cool no one knows that the person who just made the post people are laughing at was the same post they were making fun of. You're no longer the *faggot* you're the *comedian* until you make a new post and you're the *troll*.\n\n4chan style sites don't create pessimistic, negative, and depressed people it just attracts them and quite honestly it's nice to be able to show raw emotion and not have it permanently tied to your identity. You never have to worry about people being like \"oh that dude, that dude always has problems -ignored-\"\n\nI've used 4chan a bunch of times to let out my problems about being depressed, suicidal and raped. It's wonderful because I can let it all out and continue to be a member of that community without the community permanently tying what happened to me to my identity.\nIf I fully discussed my rape irl i was always going to feel broken because everyone I talked to would then associate it with my identity and it would be something I would never escape. Even on reddit i was originally hesitant to be open about it because of the username system would tie it to my reddit identity. But on 4chan I could discuss it all i wanted and it was a massive emotional relief. In real life you don't know if your emotional troubles are going to annoy or be a burden to whoever is kind enough to listen, you don't know if they're just being kind and don't truly care, but on 4chan style board, if no one cares they're not going to respond and if they feel your problems are stupid they grant you the right to start over immediately and don't force anyone to carry their past with them.\n\nIt's the mindset i got from 4chan that helps me and others move on from our problems, that we shouldn't drag them around to each *new thing* we do but instead move on and start over.\n\nIt's this aspect that attracts the people you describe, the site however doesn't create these people it merely attracts them and for many like myself, helps them get out of that mindset in their real life. \n\nI've been browsing that site for 10 years, and arguably i'm more optimistic and positive because i've been exposed to that raw humanity.\n\n\nI wrote all of this in all honesty not thinking anything would change your view based on your last sentence.\n\n>Thinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nAs it seems you hold the belief that even if people like myself don't feel they are being effected by this site negatively, you are insisting they are and are just ignorant to their own emotions and experiences.\n\n**edit**: my terrible grammar\n"}, {"id": "cneyhn7", "body": ">On boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact. It will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nTo be fair that's not specific to 4chan and that phenomenon has been around forever(Tumblr's community is heavily guilty of this same thing). It's also a product of individual stupidity, if your believing something random people are telling you without it being backed by proof and your own individual research, well that's your own gullibility.\n\n\nAs for 4chan making people into a worse person, I would strong disagree. I'd say more it just lets people be free, free to test the waters and do whatever without your idea's, jokes, concepts tied to any identity. Every thought stands of its own individual merits.\n\n\nI've been around 4chan since 2004 and the only way I would ever describe it would be *chaotic neutral*. One day groups from or within it might organize some raid for the lolz, [another day they're saving a kitten,](http://www.inquisitr.com/18170/4chan-b-goes-after-cat-abusers-wins/) \n[finding the girl who threw a puppy in a river,](http://www.techhive.com/article/204615/Video_of_Puppies_Thrown_into_River_Spark_Outcry_and_Sleuthing.html) \n[saving a girl from bullying and suicide,](http://www.dailydot.com/news/anonymous-kylie-suicide-trolls-bully/) \n[paying some poor dudes rent,](http://i.imgur.com/kdYBh.jpg) \n[organizing against the harmful practices of a cult,](https://en.wikipedia.org/wiki/Project_Chanology) \n[bringing more exposure to a rape victim,](http://www.dailydot.com/news/steubenville-rape-confession-video-anonymous/)\n[give some random vet the best birthday ever,](https://gigaom.com/2010/09/02/4chan-decides-to-do-something-nice-for-a-change/)\n[helping some guy buy food for his dogs,](http://i.imgur.com/tKwU3.jpg)\n[raising 5grand for a womens charity,](http://i.imgur.com/yGwmwN4.png)\n[raising 5grand for suicide prevention](https://www.crowdrise.com/nshgamers/fundraiser/loping) \n\nI've honestly seen more positive activism stem from the anonymity culture than I have from any other site.\n\nThe problem is a lot of people only understand the surface of chan boards like 4chan and equate the anonymity as some cheap way for them to be hateful under the guise of free speech, but that couldn't really be further from the truth. \n\n\nTo understand why the board encourages to *hate* is to understand who goes there and it's obviously the social outcasts. So why would a bunch of social outcasts who get made fun of encourage hate and let such raw emotion reign supreme? Quite honestly it dilutes it. Getting called a *faggot* on 4chan constantly helps you to brush it off when you hear it on the street, and the nice thing about the anonymity of the 4chan board is essentially you have a new identity with each post letting you brush it off even more. That last post you made someone made fun of you, well cool no one knows that the person who just made the post people are laughing at was the same post they were making fun of. You're no longer the *faggot* you're the *comedian* until you make a new post and you're the *troll*.\n\n4chan style sites don't create pessimistic, negative, and depressed people it just attracts them and quite honestly it's nice to be able to show raw emotion and not have it permanently tied to your identity. You never have to worry about people being like \"oh that dude, that dude always has problems -ignored-\"\n\nI've used 4chan a bunch of times to let out my problems about being depressed, suicidal and raped. It's wonderful because I can let it all out and continue to be a member of that community without the community permanently tying what happened to me to my identity.\nIf I fully discussed my rape irl i was always going to feel broken because everyone I talked to would then associate it with my identity and it would be something I would never escape. Even on reddit i was originally hesitant to be open about it because of the username system would tie it to my reddit identity. But on 4chan I could discuss it all i wanted and it was a massive emotional relief. In real life you don't know if your emotional troubles are going to annoy or be a burden to whoever is kind enough to listen, you don't know if they're just being kind and don't truly care, but on 4chan style board, if no one cares they're not going to respond and if they feel your problems are stupid they grant you the right to start over immediately and don't force anyone to carry their past with them.\n\nIt's the mindset i got from 4chan that helps me and others move on from our problems, that we shouldn't drag them around to each *new thing* we do but instead move on and start over.\n\nIt's this aspect that attracts the people you describe, the site however doesn't create these people it merely attracts them and for many like myself, helps them get out of that mindset in their real life. \n\nI've been browsing that site for 10 years, and arguably i'm more optimistic and positive because i've been exposed to that raw humanity.\n\n\nI wrote all of this in all honesty not thinking anything would change your view based on your last sentence.\n\n>Thinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nAs it seems you hold the belief that even if people like myself don't feel they are being effected by this site negatively, you are insisting they are and are just ignorant to their own emotions and experiences.\n\n**edit**: my terrible grammar\n"}, {"id": "cneywno", "body": "\u2206 A lot of good arguments have been made but I think you brought up some other valid points that others didn't.\n\nI think another thing is that over the years the sense of humor has just been lost to me. I don't feel like calling someone a fag is all that funny anymore and I don't want to be in on the joke, so I end up taking things seriously instead."}, {"id": "cneywno", "body": "\u2206 A lot of good arguments have been made but I think you brought up some other valid points that others didn't.\n\nI think another thing is that over the years the sense of humor has just been lost to me. I don't feel like calling someone a fag is all that funny anymore and I don't want to be in on the joke, so I end up taking things seriously instead."}, {"id": "cneyy8x", "body": "Confirmed: 1 delta awarded to /u/FoxRaptix. ^[[History](/r/changemyview/wiki/user/FoxRaptix)]\n\n^[[Wiki](http://www.reddit.com/r/changemyview/wiki/deltabot)][[Code](https://github.com/alexames/DeltaBot)][[Subreddit](http://www.reddit.com/r/DeltaBot/)]"}, {"id": "cneywno", "body": "\u2206 A lot of good arguments have been made but I think you brought up some other valid points that others didn't.\n\nI think another thing is that over the years the sense of humor has just been lost to me. I don't feel like calling someone a fag is all that funny anymore and I don't want to be in on the joke, so I end up taking things seriously instead."}, {"id": "cnfej3i", "body": "Awesome, glad i could change your view"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne6kko", "body": "I'm not going to deny there are some very toxic boards that can be damaging to your rationality if browsed frequently and without questioning (/r9k/ and /pol/ especially) but you cannot make a blanket statement about the entire website that way. I browse quite a few of the hobby boards like /diy/, /o/, and /n/. If you haven't visited them, you'd be surprised by how inane they are. It's just people talking about what it says on the tin, cars, bikes, home improvement, electronics, etc... No discussion of SJWs or Jews or feminism. To go even further, much of the racism and sexism on other boards is ironic shitposting or poor attempts at trolling. I'd go so far as to say that, on a whole, reddit is more legitimately racist and sexist than 4chan."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne7yru", "body": "You already browse Reddit, it couldn't make you any worse.\n\nSeriously, there are plenty of sites that get demonised like this, and after Gawker broke the Violentacrez story, Reddit was considered the cesspit of the internet and nobody had talked about 4chan for a while. \n\nAlso, don't forget the witch hunt that started on Reddit following the Boston Marathon bombing - if you want to talk about literally becoming a worse person because of browsing a website, that would be one of the better examples.\n\nSo who knows, maybe 4chan is just as bad, but from the perspective of where this CMV is posted, browsing 4chan won't make you any worse than you already are for being a redditor. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne8tpy", "body": "Who one hang's out with & what one chooses to surround themselves around affects them. I don't know how anyone can change that."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnebgqa", "body": "I would argue that the best way of behaving is similar to [the Robustness Principle](http://en.wikipedia.org/wiki/Robustness_principle), be conservative in what you do and be liberal in what you accept from others. 4chan is liberal in what they give and accept to the point of anarchism, while here on Reddit dissidents are punished hard by the community which encourages people to be conservative both in their actions and what they're willing to accept from others.\n\nSo with this in mind, writing often and infrequently voting on Reddit while reading often and infrequently posting on 4chan will, if anything, make you a better person than participating in Reddit alone."}, {"id": "cnebgqa", "body": "I would argue that the best way of behaving is similar to [the Robustness Principle](http://en.wikipedia.org/wiki/Robustness_principle), be conservative in what you do and be liberal in what you accept from others. 4chan is liberal in what they give and accept to the point of anarchism, while here on Reddit dissidents are punished hard by the community which encourages people to be conservative both in their actions and what they're willing to accept from others.\n\nSo with this in mind, writing often and infrequently voting on Reddit while reading often and infrequently posting on 4chan will, if anything, make you a better person than participating in Reddit alone."}, {"id": "cnkfh1v", "body": "actually 4chan is very conservatives as in defending their \"culture\", hence the \"secret club mentality\"\n\nThis is why when your post is garbage they will always tell you to fuck off back to [insert website here]"}, {"id": "cnkfh1v", "body": "actually 4chan is very conservatives as in defending their \"culture\", hence the \"secret club mentality\"\n\nThis is why when your post is garbage they will always tell you to fuck off back to [insert website here]"}, {"id": "cnklt3t", "body": "But being told to fuck off on 4chan is par for the course. You won't get banned for it."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnebv6z", "body": "Yes, but you could say the same thing about Reddit, or any other website for that matter.."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cned66o", "body": "I go to 4chan every day, it's one of my 'daily tabs'. I find it in general less petulant or offensive than many subs here on Reddit. The reason to go to any site is to indulge in novelty, and while the vast majority of 4chan is fairly old hat, that's true of every popular online culture. But within any cultural engagement, there's bound to be some spectacular performances of creative thought and expression. You can go there and witness social art installations like \"Too Soon Girl\" take place right in front of you, concepts and collaborations which generations of artists would have died for. If you can be offended, perhaps you will be offended, but you will know if and how by the time 4chan has run it's course. That's useful information to gauge your own responses on. You know your enemy, you know yourself. I'm sure a lot of more severe nerds will say that 4chan is too mainstream, too many newfags, that wizardchan or some other such obvious derivative fansite-that-hates-4chan is a better alternative, they're heralds of a broader future full of insignificant cliques. there's bound to be a big fish, and provided Mootykins doesn't go ballistic 4chan will be it. If you just want to mope about how depraved it is, you're welcome to, but that's rather saying more about you. \n\n"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnefx0j", "body": "I found 4chan when I was 11. I'm 21 now. Avid /b/ browser.\n\nI think /b/ is just a big inside joke, filled with fingerboxes, gore threads, girls seeking attention, traps, webm porn, and bait threads. However, occasionally, there are intellectual threads where others share their opinions and debate respectfully. \n\nGenerally, raid threads do nothing. It's rare to see an OP follow through with the atrocious thing they stated they would do. Even in suicide threads, 70% are telling OP not to do it.\n\nHate threads are for the angsty individuals who would likely never act out on those they are hating against and are just contributing because they want to feel a sense of belonging. So that using words \"fag\" and \"nigger\" are said but would never be used in real life.\n\n4chan has made me more tolerant of others' opinions, lest they might affect mine if the arguments are convincing enough. It's a good place to find what you're looking for or waste some time."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnehdqx", "body": "Reddit is much worse than 4chan.\n\n4chan you shouldn't takes peoples post seriously or with any credence because they are anonymous. Its like giant joke, where people post dumb shit but occasionally post some great insight that they couldnt if they werent posting anonymously. \n\nReddit however, has subreddits, popular subreddits can have all sorts of insane shit that become effective echo chambers. You can't have an echo chamber in a place that is hardly moderated, however because of subreddits, the mods of those subreddits can ban whomever disagrees with thier message. For example SRS. \n\nBut overall, using the internet doesn't make you a bad person. Even if you use 4chan and Reddit a lot chances are it does not translate at all with your personal and professinal relationships. You don't curse people out in real life and espouse your shitty views. Some people who can be easily influenced and swayed can do that, but its a small minority, like bronies who try and translate thier experince to the real world.\n\nOverall pessism you are describing is one that simply comes from knowledge. Reddit and 4chan give you a but load of non bullshit information if you know how to decipher it and because of such you will have more negative views about humanity in general. \n\nWithout the filter, this how people really are. 4chan and reddit are reflection of users who use it, not the places themselves. And users are society. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cneiazf", "body": "because reddit isnt a total echo chamber itself that downvotes posts to oblivion because it goes against the majority of users' views and ideals. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cneik52", "body": "The thing about reddit, people karma whore and circle jerk about the same opinion. This leads to not getting to hear different opinions. That being said, there are less trolls."}, {"id": "cneik52", "body": "The thing about reddit, people karma whore and circle jerk about the same opinion. This leads to not getting to hear different opinions. That being said, there are less trolls."}, {"id": "cneitu2", "body": "*fewer* trolls. reddit has *fewer* trolls because you can count them.\n\n/being an asshole. Just had to step into the reddit generalization you aptly mentioned :)"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnerjx4", "body": "You make many assumptions, but if I'm understanding you correctly, your argument seems to boil down to believing that anonymity makes people careless about their arguments, therefore making them invalid, and that surrounding yourself in an environment of negativity will make you a negative person. \n\nBy your argument, watching violent movies will make you a violent person, listening to heavy-metal will make you angry, and maybe country music will make you kill yourself!\n"}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne8jx4", "body": "I think this isn't ALWAYS true. Some people aren't changed by others that easily. And I think your argument applies only to boards like /b/ or /pol/. If you go on 4chan right now to the /wg/ board (wallpapers) or the /vr/ board, almost everyone there is nice. They are the boards to people with dedication and interests, though. "}, {"id": "cne8jx4", "body": "I think this isn't ALWAYS true. Some people aren't changed by others that easily. And I think your argument applies only to boards like /b/ or /pol/. If you go on 4chan right now to the /wg/ board (wallpapers) or the /vr/ board, almost everyone there is nice. They are the boards to people with dedication and interests, though. "}, {"id": "cne908s", "body": "I think those boards are bit more niche and have less users.\n\nBut I get your point, in my experience /vg/ has been pretty good since people in those threads generally like the games they're talking about and not just wildly pissing about."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cne9lw7", "body": "Almost any large online community that offers anonymity will provide you with an experience that leads to being cynical about humanity. The only very large community that still seems to be good, interesting, and well moderated is metafilter, in my experience. \n\nReddit as a whole isn't any worse or better than 4chan is, because there's as little impetus for people to post under their own names, and as much encouragement for 'unpopular', 'niche', views. I've been a redditor since a few months after reddit started up, but over the years I've found that I just don't want to read unmoderated, large, or frontpage subreddits. I originally came to reddit from Fark because as a woman, reddit was pretty welcoming. Not now. My kids and their friends sometimes talk to me about reddit, and I encourage them to seek out smaller, more moderated subreddits that have interesting discussions. I've been on reddit for almost 8 years now, and I wouldn't encourage anyone to go on reddit without some warning, or education. 4chan is disturbing on a lot of levels, but not really any moreso than a lot of subreddits are. "}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cnea2er", "body": "I don't think it necessarily makes you a worse person, but I think it can influence you in negative ways. I had a roommate who had a fucked up view on some things, and I could clearly tell that 4chan had warped his ideologies in some ways. At the same time though, I would hesitate to call him a bad person. If anything he's almost nicer than me a lot of the time."}, {"id": "2rawgb", "body": "Because of the anonymity on 4chan people are more prone to not think through, care about what they post and are quicker to throw out insults. They will care about how people respond to them, but since it's largely negative they will stoop down to the same level rather than go to any high ground since they are not linked to an identity.\n\nSurrounding the entire site there's a general pessimistic group mentality, and people are subconsciously encouraged to take part of it in order to feel like they are a part of the group. Some boards will have specific groups of people who they are encouraged to hate, women, SJWs, casual gamers, Jews, and any reasonable argument against a poster can be made redundant by saying or thinking they are a part of these agendas or groups.\n\nOn boards you will find echo chambers where people are more prone to believe rumors than proof. Things about e-celebrities will start as rumors, ideas about them or things will get taken out of context and it will be posted continually until it's taken as fact.\nIt will reach conspiracy theory levels of \"proof\" where people will simply believe it because they feel as if they are a part of a group-effort that's uncovering something.\n\nSurrounding yourself with this will in general make you into a more pessimistic, negative and possibly depressive person.\n\nI'm not saying that every person who browses 4chan is depressed or negative, but that the majority of them are affected negatively by browsing the site.\n\nThinking that you are unaffected by this doesn't necessarily mean you are, but instead means that you are unaware of how much it affects you.\n\nEDIT: [Awarded Delta](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cneyhn7?context=3)\n_____\n\n> *Hello, users of CMV! This is a footnote from your moderators. We'd just like to remind you of a couple of things. Firstly, please remember to* ***[read through our rules](http://www.reddit.com/r/changemyview/wiki/rules)***. *If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which,* ***[downvotes don't change views](http://www.reddit.com/r/changemyview/wiki/guidelines#wiki_upvoting.2Fdownvoting)****! If you are thinking about submitting a CMV yourself, please have a look through our* ***[popular topics wiki](http://www.reddit.com/r/changemyview/wiki/populartopics)*** *first. Any questions or concerns? Feel free to* ***[message us](http://www.reddit.com/message/compose?to=/r/changemyview)***. *Happy CMVing!*"}, {"id": "cneaisw", "body": "That's stupid. \n\nExposing yourself to something and gaining knowledge does not make you a worse person. \n\nIf you're dim enough to not take it for what it is, coupled with malleable enough to change, you may become a worse; it is anything but a foregone conclusion. "}, {"id": "cneaisw", "body": "That's stupid. \n\nExposing yourself to something and gaining knowledge does not make you a worse person. \n\nIf you're dim enough to not take it for what it is, coupled with malleable enough to change, you may become a worse; it is anything but a foregone conclusion. "}, {"id": "cneal2j", "body": "I think [this guy explained it well.](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cne9gb0)"}, {"id": "cneal2j", "body": "I think [this guy explained it well.](http://www.reddit.com/r/changemyview/comments/2rawgb/cmv_i_believe_that_regularly_browsing_4chan_will/cne9gb0)"}, {"id": "cneaufg", "body": "Being affected =/= 'worse'. "}]} | 491,950 | 491,950 | 0.767639 |
b7918b2e342bb2abc7647b6e2ab205e172b58d82 | 5,002 | js | JavaScript | public/assets/js/custom/view-request.js | oneji/pharma | 9581ce165007b7f894b98932740607caa279de41 | [
"MIT"
] | 1 | 2020-04-17T13:27:04.000Z | 2020-04-17T13:27:04.000Z | public/assets/js/custom/view-request.js | oneji/pharma | 9581ce165007b7f894b98932740607caa279de41 | [
"MIT"
] | 2 | 2022-02-19T00:47:43.000Z | 2022-02-27T03:12:00.000Z | resources/assets/js/custom/view-request.js | oneji/pharma | 9581ce165007b7f894b98932740607caa279de41 | [
"MIT"
] | null | null | null | $(document).ready(function() {
var itemId = null;
var quantity = null;
var requestId = $('#request-id').text();
$('.edit-item-btn').click(function(e) {
e.preventDefault();
itemId = $(this).data('id');
quantity = $(this).data('quantity');
$('#editRequestItemModal .current-quantity').text('Текущее количество: ' + quantity);
$('#editRequestItemModal input[name=changed_quantity]').val(quantity);
// Show modal
$('#editRequestItemModal').modal('open');
});
$('.remove-item-btn').click(function(e) {
e.preventDefault();
itemId = $(this).data('id');
// Show modal
$('#removeRequestItemModal').modal('open');
});
$('#editRequestItemForm').submit(function(e) {
e.preventDefault();
var form = $(this);
var formData = form.serializeArray();
var data = {};
formData.map(d => {
data[d.name] = d.value
});
data['request_id'] = requestId;
$.ajax({
url: '/requests/updateItem/' + itemId,
type: 'PUT',
data: data,
success: function(item){
console.log(item);
$('.request-pl-table').find(`tr[data-id=${itemId}]`).find('.quantity-cell').html(generateChangedQuantityMarkup(item));
$('.request-pl-table').find(`tr[data-id=${itemId}]`).find('.comment-cell').html(item.comment);
// Show modal
$('#editRequestItemModal').modal('close');
}
});
});
$('#removeRequestItemForm').submit(function(e) {
e.preventDefault();
var form = $(this);
var formData = form.serializeArray();
var data = {};
formData.map(d => {
data[d.name] = d.value
});
data['request_id'] = requestId;
$.ajax({
url: '/requests/removeItem/' + itemId,
type: 'DELETE',
data: data,
success: function(item){
console.log(item);
$('.request-pl-table').find(`tr[data-id=${itemId}]`).addClass('removed-item');
$('.request-pl-table').find(`tr[data-id=${itemId}]`).find('.comment-cell').html(item.comment);
// Show modal
$('#removeRequestItemModal').modal('close');
}
});
});
$('.pay-request-btn').click(function(e) {
e.preventDefault();
swal({
title: "Закрыть долг по заявке?",
text: "Закрыть долг значит, что все выплаты были сделаны.",
icon: "warning",
buttons: {
cancel: 'Отмена',
delete: 'Выплачено'
},
}).then(function(e) {
if(e) {
$('#setAsPaidForm').submit();
} else {
}
});
});
function generateChangedQuantityMarkup(item) {
var icon = item.quantity > item.changed_quantity ? 'arrow_downward' : 'arrow_upward';
return `
<span class="badge green m-0">${item.changed_quantity}</span>
<i class="material-icons">${icon}</i>
`;
}
$('#request_priority').change(function() {
let priorityVal = $(this).val();
$.ajax({
url: '/requests/setPriority/' + requestId,
type: 'POST',
data: {
priority: priorityVal,
_token: $('meta[name="csrf-token"]').attr('content')
},
success: function(result){
if(result.ok) {
$('.request-priority-label').remove();
if(Number(priorityVal) === 1) {
$('.request-title-block').append(`
<span class="badge green request-priority-label">Высокий приоритет</span>
`);
} else if(Number(priorityVal) === 2) {
$('.request-title-block').append(`
<span class="badge orange request-priority-label">Средний приоритет</span>
`);
} else if(Number(priorityVal) === 3) {
$('.request-title-block').append(`
<span class="badge red request-priority-label">Низкий приоритет</span>
`);
}
}
}
});
});
$('#payment_deadline').change(function() {
let paymentDeadline = $(this).val();
$.ajax({
url: '/requests/setPaymentDeadline/' + requestId,
type: 'POST',
data: {
_token: $('meta[name="csrf-token"]').attr('content'),
deadline: paymentDeadline
},
success: function(result){
console.log(result);
}
});
});
}); | 30.315152 | 134 | 0.461415 |
b7919ad4ccaa4e9b2dc19fdfa66189e50b45a2b5 | 878 | js | JavaScript | src/index.js | yjtec/js-cas | 5c592a6b554af8f86b470aaf735dafcd331627b0 | [
"MIT"
] | null | null | null | src/index.js | yjtec/js-cas | 5c592a6b554af8f86b470aaf735dafcd331627b0 | [
"MIT"
] | null | null | null | src/index.js | yjtec/js-cas | 5c592a6b554af8f86b470aaf735dafcd331627b0 | [
"MIT"
] | null | null | null | import { join, dirname, basename } from 'path';
import { existsSync, readFileSync, writeFileSync } from 'fs';
import Mustache from 'mustache';
export default function(api,opts={}){
const { config, paths } = api;
api.onOptionChange(()=>{
api.rebuildTmpFiles();
});
api.addRuntimePluginKey('cas');
api.addRendererWrapperWithComponent(()=>{
const wrapperTpl=readFileSync(
join(__dirname,'../template/wrapper.jsx.tpl'),
'utf-8'
);
const wrapperContent = Mustache.render(wrapperTpl,{
...opts
});
const wrapperPath = join(paths.absTmpDirPath,'./CasWrapper.jsx');
writeFileSync(wrapperPath, wrapperContent, 'utf-8');
return wrapperPath;
});
api.modifyAFWebpackOpts(memo => {
return {
...memo,
alias:{
...(memo.alias || {}),
'yjtec-cas':join(__dirname,'./cas.js'),
}
}
})
} | 27.4375 | 69 | 0.620729 |
b7928e3c94830698501352e9a343fdd7031c7b69 | 7,285 | js | JavaScript | node_modules/ng-file-upload/src/select.js | KnethBT/mandatory1 | a61107da8e61a8b872edee2c4746d71c2c656758 | [
"0BSD"
] | 1 | 2019-05-24T10:28:35.000Z | 2019-05-24T10:28:35.000Z | node_modules/ng-file-upload/src/select.js | KnethBT/mandatory1 | a61107da8e61a8b872edee2c4746d71c2c656758 | [
"0BSD"
] | null | null | null | node_modules/ng-file-upload/src/select.js | KnethBT/mandatory1 | a61107da8e61a8b872edee2c4746d71c2c656758 | [
"0BSD"
] | null | null | null | ngFileUpload.directive('ngfSelect', ['$parse', '$timeout', '$compile', 'Upload', function ($parse, $timeout, $compile, Upload) {
var generatedElems = [];
function isDelayedClickSupported(ua) {
// fix for android native browser < 4.4 and safari windows
var m = ua.match(/Android[^\d]*(\d+)\.(\d+)/);
if (m && m.length > 2) {
var v = Upload.defaults.androidFixMinorVersion || 4;
return parseInt(m[1]) < 4 || (parseInt(m[1]) === v && parseInt(m[2]) < v);
}
// safari on windows
return ua.indexOf('Chrome') === -1 && /.*Windows.*Safari.*/.test(ua);
}
function linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile, upload) {
/** @namespace attr.ngfSelect */
/** @namespace attr.ngfChange */
/** @namespace attr.ngModel */
/** @namespace attr.ngModelOptions */
/** @namespace attr.ngfMultiple */
/** @namespace attr.ngfCapture */
/** @namespace attr.ngfValidate */
/** @namespace attr.ngfKeep */
var attrGetter = function (name, scope) {
return upload.attrGetter(name, attr, scope);
};
function isInputTypeFile() {
return elem[0].tagName.toLowerCase() === 'input' && attr.type && attr.type.toLowerCase() === 'file';
}
function fileChangeAttr() {
return attrGetter('ngfChange') || attrGetter('ngfSelect');
}
function changeFn(evt) {
if (upload.shouldUpdateOn('change', attr, scope)) {
var fileList = evt.__files_ || (evt.target && evt.target.files), files = [];
for (var i = 0; i < fileList.length; i++) {
files.push(fileList[i]);
}
upload.updateModel(ngModel, attr, scope, fileChangeAttr(),
files.length ? files : null, evt);
}
}
upload.registerModelChangeValidator(ngModel, attr, scope);
var unwatches = [];
unwatches.push(scope.$watch(attrGetter('ngfMultiple'), function () {
fileElem.attr('multiple', attrGetter('ngfMultiple', scope));
}));
unwatches.push(scope.$watch(attrGetter('ngfCapture'), function () {
fileElem.attr('capture', attrGetter('ngfCapture', scope));
}));
attr.$observe('accept', function () {
fileElem.attr('accept', attrGetter('accept'));
});
unwatches.push(function () {
if (attr.$$observers) delete attr.$$observers.accept;
});
function bindAttrToFileInput(fileElem) {
if (elem !== fileElem) {
for (var i = 0; i < elem[0].attributes.length; i++) {
var attribute = elem[0].attributes[i];
if (attribute.name !== 'type' && attribute.name !== 'class' &&
attribute.name !== 'id' && attribute.name !== 'style') {
if (attribute.value == null || attribute.value === '') {
if (attribute.name === 'required') attribute.value = 'required';
if (attribute.name === 'multiple') attribute.value = 'multiple';
}
fileElem.attr(attribute.name, attribute.value);
}
}
}
}
function createFileInput() {
if (isInputTypeFile()) {
return elem;
}
var fileElem = angular.element('<input type="file">');
bindAttrToFileInput(fileElem);
fileElem.css('visibility', 'hidden').css('position', 'absolute').css('overflow', 'hidden')
.css('width', '0px').css('height', '0px').css('border', 'none')
.css('margin', '0px').css('padding', '0px').attr('tabindex', '-1');
generatedElems.push({el: elem, ref: fileElem});
document.body.appendChild(fileElem[0]);
return fileElem;
}
var initialTouchStartY = 0;
function clickHandler(evt) {
if (elem.attr('disabled') || attrGetter('ngfSelectDisabled', scope)) return false;
var r = handleTouch(evt);
if (r != null) return r;
resetModel(evt);
// fix for md when the element is removed from the DOM and added back #460
try {
if (!isInputTypeFile() && !document.body.contains(fileElem[0])) {
generatedElems.push({el: elem, ref: fileElem});
document.body.appendChild(fileElem[0]);
fileElem.bind('change', changeFn);
}
} catch(e){/*ignore*/}
if (isDelayedClickSupported(navigator.userAgent)) {
setTimeout(function () {
fileElem[0].click();
}, 0);
} else {
fileElem[0].click();
}
return false;
}
function handleTouch(evt) {
var touches = evt.changedTouches || (evt.originalEvent && evt.originalEvent.changedTouches);
if (evt.type === 'touchstart') {
initialTouchStartY = touches ? touches[0].clientY : 0;
return true; // don't block event default
} else {
evt.stopPropagation();
evt.preventDefault();
// prevent scroll from triggering event
if (evt.type === 'touchend') {
var currentLocation = touches ? touches[0].clientY : 0;
if (Math.abs(currentLocation - initialTouchStartY) > 20) return false;
}
}
}
var fileElem = elem;
function resetModel(evt) {
if (upload.shouldUpdateOn('click', attr, scope) && fileElem.val()) {
fileElem.val(null);
upload.updateModel(ngModel, attr, scope, fileChangeAttr(), null, evt, true);
}
}
if (!isInputTypeFile()) {
fileElem = createFileInput();
}
fileElem.bind('change', changeFn);
if (!isInputTypeFile()) {
elem.bind('click touchstart touchend', clickHandler);
} else {
elem.bind('click', resetModel);
}
function ie10SameFileSelectFix(evt) {
if (fileElem && !fileElem.attr('__ngf_ie10_Fix_')) {
if (!fileElem[0].parentNode) {
fileElem = null;
return;
}
evt.preventDefault();
evt.stopPropagation();
fileElem.unbind('click');
var clone = fileElem.clone();
fileElem.replaceWith(clone);
fileElem = clone;
fileElem.attr('__ngf_ie10_Fix_', 'true');
fileElem.bind('change', changeFn);
fileElem.bind('click', ie10SameFileSelectFix);
fileElem[0].click();
return false;
} else {
fileElem.removeAttr('__ngf_ie10_Fix_');
}
}
if (navigator.appVersion.indexOf('MSIE 10') !== -1) {
fileElem.bind('click', ie10SameFileSelectFix);
}
if (ngModel) ngModel.$formatters.push(function (val) {
if (val == null || val.length === 0) {
if (fileElem.val()) {
fileElem.val(null);
}
}
return val;
});
scope.$on('$destroy', function () {
if (!isInputTypeFile()) fileElem.remove();
angular.forEach(unwatches, function (unwatch) {
unwatch();
});
});
$timeout(function () {
for (var i = 0; i < generatedElems.length; i++) {
var g = generatedElems[i];
if (!document.body.contains(g.el[0])) {
generatedElems.splice(i, 1);
g.ref.remove();
}
}
});
if (window.FileAPI && window.FileAPI.ngfFixIE) {
window.FileAPI.ngfFixIE(elem, fileElem, changeFn);
}
}
return {
restrict: 'AEC',
require: '?ngModel',
link: function (scope, elem, attr, ngModel) {
linkFileSelect(scope, elem, attr, ngModel, $parse, $timeout, $compile, Upload);
}
};
}]);
| 31.951754 | 128 | 0.575978 |
b792e6e32708d549a2d8d3e40fe4e7c896b479f1 | 4,977 | js | JavaScript | resources/js/views/User/Plots/PlotMainPage.js | ArtemPobedennyi/portal.umbrellaproject.cc | 2676f3125193b23c6c300799a770876fed072b12 | [
"MIT"
] | null | null | null | resources/js/views/User/Plots/PlotMainPage.js | ArtemPobedennyi/portal.umbrellaproject.cc | 2676f3125193b23c6c300799a770876fed072b12 | [
"MIT"
] | null | null | null | resources/js/views/User/Plots/PlotMainPage.js | ArtemPobedennyi/portal.umbrellaproject.cc | 2676f3125193b23c6c300799a770876fed072b12 | [
"MIT"
] | null | null | null | import React, { useState, useEffect, } from "react";
import { useHistory } from "react-router-dom";
import { useDispatch, useSelector } from 'react-redux';
// core components
import GridContainer from "@/components/Grid/GridContainer.js";
import GridItem from "@/components/Grid/GridItem.js";
// styles
import { makeStyles } from "@material-ui/core/styles";
import styles from "@/assets/jss/material-dashboard-pro-react/views/commonPageStyle.js";
const useStyles = makeStyles(styles);
// actions
import { LogoutAction, } from '@/redux/actions/AuthActions';
export default function PlotMainPage() {
const history = useHistory();
const dispatch = useDispatch();
const { isAuthenticated, isAdmin, } = useSelector((state) => state.userAuth);
useEffect(() => {
if(isAdmin && isAuthenticated) {
history.push('/admin');
return;
} else if(!isAuthenticated) {
dispatch(LogoutAction(history));
return;
}
}, [isAdmin, isAuthenticated]);
useEffect(() => {
let backgroundImg = 'url(/images/cityplots/box1_blur.png)';
document.getElementById('plot_main_block').style.backgroundImage = backgroundImg;
}, [])
const handleMouseEnter = (id) => {
let backgroundImg = '';
if(id === 1) {
backgroundImg = 'url(/images/cityplots/box1_blur.png)';
} else if(id === 2) {
backgroundImg = 'url(/images/cityplots/box2_blur.png)';
} else if(id === 3) {
backgroundImg = 'url(/images/cityplots/box3_blur.png)';
} else if(id === 4) {
backgroundImg = 'url(/images/cityplots/box4_blur.png)';
}
document.getElementById('plot_main_block').style.backgroundImage = backgroundImg;
};
const goTocityplotPage = (id) => {
history.push('/plots/' + id);
}
return(
<div className="plot-main-container">
<GridContainer className="plot-grid-container" id="plot_main_block">
<GridItem xs={12} sm={12} md={3} className="plot-block plot-1" onMouseEnter={() => handleMouseEnter(1)} onClick={() => goTocityplotPage(10123)}>
<div className="block-body">
{/* <div className="title-container">
<h5 className="card-title">SURVIVORS</h5>
<p className="card-text"><span>BASIC</span> <span>cityplot</span></p>
</div>
<div className="rarity-container">
<label className="card-text common">COMMON</label>
<label className="card-text uncommon">UNCOMMON</label>
</div> */}
</div>
</GridItem>
<GridItem xs={12} sm={12} md={3} className="plot-block plot-2" onMouseEnter={() => handleMouseEnter(2)} onClick={() => goTocityplotPage(10124)}>
<div className="block-body">
{/* <div className="title-container">
<h5 className="card-title">SURVIVORS</h5>
<p className="card-text"><span>TACTICAL</span> cityplot</p>
</div>
<div className="rarity-container">
<label className="card-text unique">UNIQUE</label>
</div> */}
</div>
</GridItem>
<GridItem xs={12} sm={12} md={3} className="plot-block plot-3" onMouseEnter={() => handleMouseEnter(3)} onClick={() => goTocityplotPage(10125)}>
<div className="block-body">
{/* <div className="title-container">
<h5 className="card-title">SCIENTIST</h5>
<p className="card-text"><span>ALPHA</span> TYPE</p>
</div>
<div className="rarity-container">
<label className="card-text common">COMMON</label>
<label className="card-text uncommon">UNCOMMON</label>
</div> */}
</div>
</GridItem>
<GridItem xs={12} sm={12} md={3} className="plot-block plot-4" onMouseEnter={() => handleMouseEnter(4)} onClick={() => goTocityplotPage(10126)}>
<div className="block-body">
{/* <div className="title-container">
<h5 className="card-title">SCIENTIST</h5>
<p className="card-text"><span>OMEGA</span> TYPE</p>
</div>
<div className="rarity-container">
<label className="card-text unique">UNIQUE</label>
</div> */}
</div>
</GridItem>
</GridContainer>
</div>
);
}; | 45.66055 | 160 | 0.514768 |
b793537a809b17efcbe5575bdfbd6884f40a8d32 | 1,431 | js | JavaScript | orgrobo/static/js/controller.js | abhikpal/organic-robot-web-app | 8dce2fbb92a26873e76801607f998a577b398764 | [
"MIT"
] | null | null | null | orgrobo/static/js/controller.js | abhikpal/organic-robot-web-app | 8dce2fbb92a26873e76801607f998a577b398764 | [
"MIT"
] | null | null | null | orgrobo/static/js/controller.js | abhikpal/organic-robot-web-app | 8dce2fbb92a26873e76801607f998a577b398764 | [
"MIT"
] | null | null | null | $(document).ready(function() {
namespace = '/controller';
socket = io.connect('http://' + document.domain + ':' + location.port + namespace);
socket.on('data', function(msg) {
$('#sensor-range').text(msg.range);
$('#sensor-angle').text(msg.angle);
});
$('#move-f').on('click', function() {
current_direction = 'f';
send_controls(current_direction, $('#num-steps').val())
$('#direction-indicator').html(get_glyphcon(current_direction));
return false;
});
$('#move-b').on('click', function() {
current_direction = 'b';
send_controls(current_direction, $('#num-steps').val())
$('#direction-indicator').html(get_glyphcon(current_direction));
return false;
});
$('#move-l').on('click', function() {
current_direction = 'l';
send_controls(current_direction, $('#num-steps').val())
$('#direction-indicator').html(get_glyphcon(current_direction));
return false;
});
$('#move-r').on('click', function() {
current_direction = 'r';
send_controls(current_direction, $('#num-steps').val())
$('#direction-indicator').html(get_glyphcon(current_direction));
return false;
});
$('#num-steps').on('change', function() {
send_controls(current_direction, $('#num-steps').val())
return false;
});
});
current_direction = 'n';
| 32.522727 | 87 | 0.573725 |
b793d34fc907264ec19570457d0b8afcc87757dc | 1,140 | js | JavaScript | routes/access.js | zamd/user-controlled-access-sample | 7fbf3b88cd631f1ff25a630b1e3e7eea635b9580 | [
"MIT"
] | null | null | null | routes/access.js | zamd/user-controlled-access-sample | 7fbf3b88cd631f1ff25a630b1e3e7eea635b9580 | [
"MIT"
] | null | null | null | routes/access.js | zamd/user-controlled-access-sample | 7fbf3b88cd631f1ff25a630b1e3e7eea635b9580 | [
"MIT"
] | null | null | null | const express = require('express'),
router = express.Router(),
passport = require('passport');
const api = require('../lib/apiClient');
router.get('/', function(req, res) {
res.render('access', { title: 'Manage access' });
});
router.get('/switch', function(req, res, next) {
const userId = req.query.ro;
const permissions = req.query.permissions;
return passport.authenticate('auth0',{scope: `openid profile user_controlled_access/${userId}`})(req,res,next);
});
//TODO: add CSRF token
router.post('/', async function(req, res) {
const access_request = req.body;
if (access_request.email) {
try {
await api.createAccess(access_request, req.user);
res.redirect(`access/summary`)
} catch(err) {
console.log(err);
res.redirect('access');
}
}
});
router.get('/summary', async function(req, res) {
const userControlledAccess = await api.getAppMetadataByEmail(req.user.email);
const vm = {
shared_access: userControlledAccess.shared_access,
user: req.user.email
}
res.render('access-summary',{title: "Sharing summary", vm})
});
module.exports = router; | 26.511628 | 113 | 0.663158 |
b79670bc1f183fb075d093213b0accdece81c02e | 1,394 | js | JavaScript | docs/assets/js/modals.js | alinaavanesyan/alina | 26a30895d8c6f42bb2ce70c9986b7d327bb4c478 | [
"MIT"
] | null | null | null | docs/assets/js/modals.js | alinaavanesyan/alina | 26a30895d8c6f42bb2ce70c9986b7d327bb4c478 | [
"MIT"
] | 1 | 2017-11-04T07:15:34.000Z | 2017-11-04T07:15:34.000Z | docs/assets/js/modals.js | alinaavanesyan/alina | 26a30895d8c6f42bb2ce70c9986b7d327bb4c478 | [
"MIT"
] | 1 | 2017-11-02T02:36:40.000Z | 2017-11-02T02:36:40.000Z | $(function() { const triggerSelector = '.ic4f-mtrig';
var modalId = 'modal';
var smallSuffix = '-s';
var fileExt = '.jpg';
var $modal = $('#modal');
var $modalCap = $('#modal-caption');
$(triggerSelector).each(function(){
var $img = $(this);
var srcSmall = $img.attr('src');
var srcLarge = srcSmall; //use same src as default
// build large image url
var pos = srcSmall.lastIndexOf(smallSuffix + fileExt);
if (pos != -1) {
srcLarge = srcSmall.substring(0, pos) + fileExt;
}
$($img).on('click', function() {
var modalImgId = '#modal-img';
if ($(modalImgId).length === 0) {
$('<img id="modal-img" alt=" ">').prependTo('#modal');
var $modalImg = $(modalImgId);
}
$modalImg.attr('src', srcLarge);
setCaption($img);
$modal
.fadeIn(100)
.on('click', function() {
$modal.fadeOut(100); // close modal
$modalCap.text(''); // reset caption
$modalImg.remove(); // remove large img from tree
});
});
});
function setCaption($myimg) {
// check if there exists a parent figure element
$figure = $myimg.closest('figure')
if ($figure.length) {
// check if this figure has a caption
$caption = $figure.find('figcaption');
if ($caption.length) {
$modalCap.html($caption.html());
}
}
}
});
| 27.333333 | 62 | 0.549498 |