$scope.$$childHead.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling.$$nextSibling
Was trying to find a very specific text box and as an AngularJS noob, this was the only way I could find it at first. I eventually figured out how to not do this before it ever got committed to production though. :)
function focused(evt, errors) {
let form = evt.target
const output = errors.map((error)=> {
// Find first component with error on form and set focus to it
let focusedInput = (Object.keys(error) == "phonebookId") ? Object.keys(error) :
(Object.keys(error) == "phonebook_str") ? Object.keys(error) :
(Object.keys(error) == "message") ? Object.keys(error) :
(Object.keys(error) == "image") ? Object.keys(error) :
(Object.keys(error) == "buttonLink") ? Object.keys(error) :
(Object.keys(error) == "messageSms") ? Object.keys(error) : false
return focusedInput.shift()
})
const selector = output.shift()
form.querySelector('[id="' + selector + '"]').focus()
return selector
}
What can I say... If you plan to work with freelancers with low rate then you should be ready to find it in them code :)
+[[>+]>[+>]+]
if (type == cSTR_Integer) {
type = cSTR_Integer;
} else if (ctype == cSTR_String) {
type = cSTR_String;
}
int my_strcmp(const char *out, const char *in ){
for( ;*(in) , *(out) && *(in) == *(out); *out++,*in++ );
return *in <= *out ? *out > *in : -1 ;
}
I don't know why but it works )))
<?php
function add_points ($resources, $userid) {
return false;
}
function remove_points ($resources, $userid) {
return false;
}
function get_userdata () {
return '';
}
<form>
Login : <input type=textbox name=login><br>
Password : <input type=password name=pass><br>
<input type=button value="OK" onCLick="if (login.value=='admin'&&pass.value=='123456') window.location.replace('admin.php'); ">
</form>
If Not task.PlannedEffort Is Nothing AndAlso task.PlannedEffort > 0 AndAlso Not _context.SystemSettingHelper.GetSystemSetting(SystemSetting.StatusInProgress).Split(","c).Any(Function(x) x.Trim = origIssue.fields.status.name.Trim()) AndAlso Not _context.SystemSettingHelper.GetSystemSetting(SystemSetting.StatusDone).Split(","c).Any(Function(x) x.Trim = origIssue.fields.status.name.Trim()) Then
' ...
End If
// TODO: remember to buy a second screen
if(wyraz.charAt(i) <"A"
&& wyraz.charAt(i) != "-"
&& wyraz.charAt(i) != " "
&& wyraz.charAt(i) != "."
&& wyraz.charAt(i) != "&"
&& wyraz.charAt(i) != "_"
&& wyraz.charAt(i) != "\""
&& wyraz.charAt(i) != "'"
) {
if(polska_litera(wyraz.charAt(i) ) == 0 )
return NO;
}
if(wyraz.charAt(i) >"Z"
&& wyraz.charAt(i) != "-"
&& wyraz.charAt(i) != " "
&& wyraz.charAt(i) != "."
&& wyraz.charAt(i) != "&"
&& wyraz.charAt(i) != "_"
&& wyraz.charAt(i) != "\""
&& wyraz.charAt(i) != "'"
)
Just PKP :)
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
for module in next_possible_modules:
import math; math.factorial(40000) # approx. a 1 second operation
end_time = start_time + timedelta(minutes=module.duration)
dotychczasowyPostep += predkosc * 1;
public bool IsTrue(bool value) {
return value.ToString().length() == 4;
}
public boolean checkFalse(Boolean bool)
{
if (bool.booleanValue() == Boolean.FALSE.booleanValue())
{
return Boolean.FALSE.booleanValue();
}
else
{
return Boolean.TRUE.booleanValue();
}
}
var show = true;
function toggleShow(){
if(show === true){
show = false;
return show;
}else{
show = true;
return show;
}
}
return show = !show
, dude...