I hereby claim:
- I am skipjac on github.
- I am skip (https://keybase.io/skip) on keybase.
- I have a public key ASCX8kPbL_oHxuVUuWG0bqfjYKdx7YWystJ54VqnJdPHOwo
To claim this, I am signing this object:
| var data = 'Orders[Count=1, Order [customer=Customer [id=6a665314-44ac-4fd9-af73-ed975fb19018, name=Tarik, givenname=Taaza, birthday=Wed Apr 20 05:12:19 CEST 2016, plz=50933, street=Aachener Str., house=746-750, city=Köln], name=Installation, note=not ready, created=Wed Apr 20 05:12:19 CEST 2016, status=not ready]]' | |
| function ordersJSONize(str) { | |
| return str | |
| //right bracket replacement | |
| .replace(/]/g,'}') | |
| //left bracket replacement | |
| .replace(/\[/g,'{') | |
| // equal sign replacement | |
| .replace(/\b=|!(\s=)/g,':') |
I hereby claim:
To claim this, I am signing this object:
| {{#each categories}} | |
| {{! CMS promoted articles }} | |
| {{#is id 202178748}} | |
| <h2>{{name}}</h2> | |
| {{#each sections}} | |
| {{#each articles}} | |
| {{#if promoted}} | |
| <li> | |
| <a href="{{url}}">{{title}}</a> | |
| </li> |
| $('input').keyup(function(e){ | |
| var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; | |
| if(e.target.name === 'request[anonymous_requester_email]'){ | |
| var match = re.test(e.target.value); | |
| console.log(match); | |
| }; | |
| }); |
| var userRole = HelpCenter.user.role; | |
| if (userRole === "anonymous") { | |
| $(".banners").hide(); | |
| } |
| $(document).ready(function(){ | |
| function setDefaultValue(field, setDefault){ | |
| $('.'+field).one('DOMNodeInserted', function(d){ | |
| var inputTar = $(d.currentTarget).children('select') | |
| var inputNest = $(d.currentTarget).children('a.nesty-input'); | |
| var TestObj = inputTar[0]; | |
| var TestNest = inputNest[0]; | |
| $('#'+TestObj.id).append('<option value="-">-</option>'); | |
| $('#'+TestObj.id+' option').removeAttr('selected').filter('[value='+setDefault+']').attr('selected', true); | |
| $(TestNest).text(setDefault); |
| //make a function to hide options as they are passed into it. | |
| var skip1 = function(k){ | |
| $('.nesty-panel').on('DOMNodeInserted', function(e){ | |
| $(this).children('ul').children(k).hide(); | |
| }); | |
| } | |
| // call the function with the option value with a # in front | |
| skip1('#sss_a_1') | |
| //make a function to show the option |
| HC.api('user',function(x){console.log(x);}) | |
| Object { identifier: "da39a3ee5e6b4b0d3255bfef95601890afd80709", | |
| role: "anonymous", | |
| avatar_url: "https://assets.zendesk.com/images/frame_user.png", | |
| email: null, | |
| name: null, | |
| orgainizations: [] | |
| } |
| //remove the options from the select | |
| $('#request_issue_type_select option[value="43517"]').remove(); | |
| //remove the option from the nesty-input after it's been created. | |
| $('div').one('DOMNodeInserted', function(e){ | |
| $('.nesty-panel').one('DOMNodeInserted', function(e){ | |
| $(this).children('ul').children().remove('#43517'); | |
| }); | |
| }); |