Search completed in 1.49 seconds.
Date.prototype.getDay() - JavaScript
the get
day() method returns the
day of the week for the specified date according to local time, where 0 represents sun
day.
... for the
day of the month, see date.prototype.getdate().
... syntax dateobj.get
day() return value an integer number, between 0 and 6, corresponding to the
day of the week for the given date, according to local time: 0 for sun
day, 1 for mon
day, 2 for tues
day, and so on.
...And 4 more matches
Date.prototype.getUTCDay() - JavaScript
the getutc
day() method returns the
day of the week in the specified date according to universal time, where 0 represents sun
day.
... syntax dateobj.getutc
day() return value an integer number corresponding to the
day of the week for the given date, according to universal time: 0 for sun
day, 1 for mon
day, 2 for tues
day, and so on.
... examples using getutc
day() the following example assigns the week
day portion of the current date to the variable week
day.
... var to
day = new date(); var week
day = to
day.getutc
day(); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getutc
day' in that specification.
firstdayofweek - Archive of obsolete content
« xul reference home first
dayofweek type: integer which
day of the week to display as the first
day in the grid.
... the values range from 0 to 6, where 0 is sun
day and 6 is satur
day.
Software accessibility: Where are we today?
where are we to
day?
...here's how non-print readers use desktop software to
day: text-to-speech (tts) makes the computer talk to the user: those who can't read print at all usually use talking programs (text-to-speech).
Date and time formats used in HTML - HTML: Hypertext Markup Language
a year is normally 365
days long, except during leap years.
...although the calendar year is normally 365
days long, it actually takes the planet earth approximately 365.2422
days to complete a single orbit around the sun.
...adding a
day to the year every four years essentially makes the average year 365.25
days long, which is close to correct.
...And 15 more matches
<input type="date"> - HTML: Hypertext Markup Language
the resulting value includes the year, month, and
day, but not the time.
... for date inputs, the value of step is given in
days; and is treated as a number of milliseconds equal to 86,400,000 times the step value (the underlying numeric value is in milliseconds).
... the default value of step is 1, indicating 1
day.
...And 14 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
<input> elements of type datetime-local create input controls that let the user easily enter both a date and a time, including the year, month, and
day as well as the time in hours and minutes.
...in other words, an implementation should allow any valid combination of year, month,
day, hour, and minute - even if such a combination is invalid in the user's local time zone (such as times within a
daylight saving time spring-forward transition gap).
...in the following example we are setting a minimum datetime of 2017-06-01t08:30 and a maximum datetime of 2017-06-30t16:30: <form> <label for="party">enter a date and time for your party booking:</label> <input id="party" type="datetime-local" name="partydate" min="2017-06-01t08:30" max="2017-06-30t16:30"> </form> the result here is that: only
days in june 2017 can be selected — only the "
days" part of the date value will be editable, and dates outside june can't be scrolled to in the datepicker widget.
...And 13 more matches
Making decisions in your code — conditionals - Learn web development
} — check out the following more involved example, which could be part of a simple weather forecast application: <label for="weather">select the weather type to
day: </label> <select id="weather"> <option value="">--make a choice--</option> <option value="sunny">sunny</option> <option value="rainy">rainy</option> <option value="snowing">snowing</option> <option value="overcast">overcast</option> </select> <p></p> const select = document.queryselector('select'); const para = document.queryselector('p'); select.addeventlistener('change', setweathe...
...r); function setweather() { const choice = select.value; if (choice === 'sunny') { para.textcontent = 'it is nice and sunny outside to
day.
...cheese available for making cheese on toast.'); } else { console.log('no cheese on toast for you to
day.'); } and, returning to our previous example about the child doing a chore for their parent, you could write it like this: let shoppingdone = false; if (shoppingdone) { // don't need to explicitly specify '=== true' let childsallowance = 10; } else { let childsallowance = 5; } nesting if ...
...And 12 more matches
Browser Detection and Cross Browser Support - Archive of obsolete content
as a member of the netscape evangelism team who has spent over a year investigating existing web content, i can say without a doubt that most compatibility problems found on the web to
day are due to a lack of understanding of the standards combined with inadequate and inappropriate browser detection strategies.
... in the earliest
days of the web, html was very simple, not standardized and did not include any support for client side scripting.
...this script and variants of it can be found to
day on many web sites where it is a common source of detection problems.
...And 10 more matches
Proxy Auto-Configuration (PAC) file - HTTP
ns and environment these functions can be used in building the pac file: hostname based conditions isplainhostname() dnsdomainis() localhostordomainis() isresolvable() isinnet() related utility functions dnsresolve() convert_addr() myipaddress() dnsdomainlevels() url/hostname based conditions shexpmatch() time based conditions week
dayrange() daterange() timerange() logging utility alert() there was one associative array (object) already defined, because at the time javascript code was unable to define it by itself: proxyconfig.bindings note: pactester (part of the pacparser package) was used to test the following syntax examples.
... examples shexpmatch("http://home.netscape.com/people/ari/index.html" , "*/ari/*"); // returns true shexpmatch("http://home.netscape.com/people/montulli/index.html", "*/ari/*"); // returns false week
dayrange() syntax week
dayrange(wd1, wd2, [gmt]) note: (before firefox 49) wd1 must be less than wd2 if you want the function to evaluate these parameters as a range.
... parameters wd1 and wd2 one of the ordered week
day strings: "sun"|"mon"|"tue"|"wed"|"thu"|"fri"|"sat" gmt is either the string "gmt" or is left out.
...And 10 more matches
Numbers and dates - JavaScript
the date object range is -100,000,000
days to 100,000,000
days relative to 01 january, 1970 utc.
... the parameters in the preceding syntax can be any of the following: nothing: creates to
day's date and time.
... for example, to
day = new date();.
...And 8 more matches
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
the structure the formattoparts() method returns, looks like this: [ { type: '
day', value: '17' }, { type: 'week
day', value: 'mon
day' } ] possible types are the following:
day the string used for the
day, for example "17".
...
dayperiod the string used for the
day period, for example, "am", "pm", "in the morning", or "noon" era the string used for the era, for example "bc" or "ad".
... week
day the string used for the week
day, for example "m", "mon
day", or "montag".
...And 8 more matches
Checking when a deadline is due - Web APIs
the main complication here is checking the stored deadline info (month, hour,
day, etc.) against the current time and date taken from a date object.
... <select> elements for inputting the
day, month and year of the deadline.
... because these values are the most ambiguous for users to enter (7, sun
day, sun?
...And 7 more matches
Date - JavaScript
instead, it is defined in ecma-262 that a maximum of ±100,000,000 (one hundred million)
days relative to january 1, 1970 utc (that is, april 20, 271821 bce ~ september 13, 275760 ce) can be represented by the standard date object (equivalent to ±8,640,000,000,000,000 milliseconds).
... in addition to methods to read and alter individual components of the local date and time (such as get
day() and sethours()), there are also versions of the same methods that read and manipulate the date and time using utc (such as getutc
day() and setutchours()).
... instance methods date.prototype.getdate() returns the
day of the month (1–31) for the specified date according to local time.
...And 7 more matches
Extentsions FAQ - Archive of obsolete content
return to mozilla-dev-extensions faq fri
day, september 22 - 29, 2006 (↑ top) how to write an xpcom component in c++ that can communicate to a com component?
... fri
day, september 29 - october 6, 2006 (↑ top) is there anyway, via plugin or extension, for firefox to mimic the functionality of ie in this respect?
... fri
day, october 06 - 13, 2006 (↑ top) any suggestions to remove tool tip appears on the menu it when it should not?
...And 6 more matches
PRExplodedTime
syntax #include <prtime.h> typedef struct prexplodedtime { print32 tm_usec; print32 tm_sec; print32 tm_min; print32 tm_hour; print32 tm_m
day; print32 tm_month; print16 tm_year; print8 tm_w
day; print16 tm_y
day; prtimeparameters tm_params; } prexplodedtime; description the prexplodedtime structure represents clock/calendar time.
... prexplodedtime has the familiar time components: year, month,
day of month, hour, minute, second.
... it also has a microsecond component, as well as the
day of week and the
day of year.
...And 6 more matches
Forms related code snippets - Archive of obsolete content
"-decr-year-" + nid; odecrmonth.id = sprefs + "-decr-month-" + nid; oincrmonth.id = sprefs + "-incr-month-" + nid; oincryear.id = sprefs + "-incr-year-" + nid; odecryear.onmousedown = oincryear.onmousedown = odecrmonth.onmousedown = oincrmonth.onmousedown = onheadclick; for (var nthid = 0; nthid < 7; nthid++) { oth = document.createelement("th"); oth.innerhtml = s
days[nthid]; ohrow.appendchild(oth); } othead.appendchild(ohrow); ocapt.appendchild(odecryear); ocapt.appendchild(odecrmonth); ocapt.appendchild(oincryear); ocapt.appendchild(oincrmonth); ocapt.appendchild(this.display); this.container.appendchild(ocapt); this.container.appendchild(othead); this.current.setdate(1); this.write
days(); otarget.onclick = function () {...
... otable.parentnode.removechild(otable); return; } otable.style.zindex = nzindex++; otable.style.position = "absolute"; otable.style.left = otarget.offsetleft + "px"; otable.style.top = (otarget.offsettop + otarget.offsetheight) + "px"; otarget.parentnode.insertbefore(otable, otarget); }; ainstances.push(this); } datepicker.prototype.write
days = function () { const nendblanks = (this.current.get
day() + bzeroismon
day * 6) % 7, nend = amonthlengths[this.current.getmonth()] + nendblanks, ntotal = nend + ((7 - nend % 7) % 7); var otd, otr; if (this.otbody) { this.container.removechild(this.otbody); } this.otbody = document.createelement("tbody"); for (var n
day, o
day, niter = 0; niter < nt...
...otal; niter++) { if (niter % 7 === 0) { otr = document.createelement("tr"); this.otbody.appendchild(otr); } n
day = niter - nendblanks + 1; otd = document.createelement("td"); if (niter + 1 > nendblanks && niter < nend) { otd.classname = sprefs + "-active-cell"; otd.id = sprefs + "-
day-" + this.id + "-" + n
day; otd.onclick = on
dayclick; otd.appendchild(document.createtextnode(n
day)); } else { otd.classname = sprefs + "-empty-cell"; } otr.appendchild(otd); } this.display.innerhtml = smonthsnames[this.current.getmonth()] + " " + this.current.getfullyear(); this.container.appendchild(this.otbody); }; function ondocclick (opssevt) { const oevt = opssevt || /* ie */ window.
...And 5 more matches
Index - Archive of obsolete content
these
days, we recommend using the add-on sdk instead, but there are times when you need the additional control offered by a more direct approach.
...between resolving conflicts, finding a good time to land, watching the tree, and marking bugs as fixed, it takes around half a
day.
... 745 svg and canvas in mozilla presentations, svg to
day's web browsers offer somewhat limited graphics capabilities to web developers.
...And 5 more matches
A Web PKI x509 certificate primer
generate csr using this command: openssl req -new -key key.pem -
days 1096 -extensions v3_ca -batch -out example.csr -utf8 -subj '/cn=www.example.com' this creates a new certificate signing request (csr) that will be valid for 3 years.
...self-sign csr (using sha256) and append the extensions described in the file "openssl x509 -req -sha256 -
days 3650 -in example.csr -signkey key.pem -set_serial $any_integer -extfile openssl.ss.cnf -out example.pem" you can now use example.pem as your certfile cas included in firefox when you visit a secure website, firefox will validate the website’s certificate by checking that the certificate that signed it is valid, and checking that the certificate that signed the parent certificate is valid and so forth up to a root certificate that is known to be valid.
... generate csr "openssl req -new -key rootkey.pem -
days 5480 -extensions v3_ca -batch -out root.csr -utf8 -subj '/c=us/o=orgname/ou=someinternalname' make a new certificate signing request (csr) that will be valid for 15 years.
...And 5 more matches
Date.prototype.setMonth() - JavaScript
syntax dateobj.setmonth(monthvalue[,
dayvalue]) versions prior to javascript 1.3 dateobj.setmonth(monthvalue) parameters monthvalue a zero-based integer representing the month of the year offset from the start of the year.
...
dayvalue optional.
... an integer from 1 to 31, representing the
day of the month.
...And 5 more matches
Intl.DateTimeFormat() constructor - JavaScript
dayperiod the way
day periods should be expressed.
...implementations are required to support at least the following subsets: week
day, year, month,
day, hour, minute, second week
day, year, month,
day year, month,
day year, month month,
day hour, minute, second hour, minute implementations may support other subsets, and requests will be negotiated against all available subset-representation combinations to find the best match.
... week
day the representation of the week
day.
...And 5 more matches
calICalendarView - Archive of obsolete content
for instance, when the showdate method of the the calendar-multi
day-view (an implementation of this interface) will sometimes show an entire week of dates, and sometimes show only the single date passed in.
...attribute calidatetime enddate; readonly attribute boolean supportsdisjointdates; readonly attribute boolean hasdisjointdates; void setdatelist(in unsigned long acount, [array,size_is(acount)] in calidatetime adates); void getdatelist(out unsigned long acount, [array,size_is(acount),retval] out calidatetime adates); attribute caliitembase selecteditem; attribute calidatetime selected
day; attributes displaycalendar the displaycalendar is an implementation of the calicalendar interface.
...typically, one more
day must be added to it, in order to make it exclusive.
...And 4 more matches
2006-10-27 - Archive of obsolete content
on the same
day tony replied to gavin's posting stating the possible choices to solve the problem.
... peter weilbacher responded to alex's posting on the same
day, stating that he is not sure what packaging system solaris 10 x86 uses but thinks that he might need to install the developer packages of x and/or xrender and freetype which should contain the libxrender.* and libfreetype.* files that are need for the linking.
...later that
day alex able to successful complete his firefox 2 build by using masaki'swork around that he had posted.
...And 4 more matches
HTML table basics - Learn web development
a table allows you to quickly and easily look up values that indicate some kind of connection between different types of data, for example a person and their age, or a
day of the week, or the timetable for a local swimming pool.
... name mass (1024kg) diameter (km) density (kg/m3) gravity (m/s2) length of
day (hours) distance from sun (106km) mean temperature (°c) number of moons notes terrestial planets mercury 0.330 4,879 5427 3.7 4222.6 57.9 167 0 closest to the sun venus 4.87 12,104 5243 8.9 2802.0 108.2 464 0 earth 5.97 12,756 5514 9.8 24.0 149.6 15 1 our world ...
...this was commonly used because css support across browsers used to be terrible; table layouts are much less common nowa
days, but you might still see them in some corners of the web.
...And 4 more matches
Date.prototype.setDate() - JavaScript
the setdate() method sets the
day of the date object relative to the beginning of the currently set month.
... syntax dateobj.setdate(
dayvalue) parameters
dayvalue an integer representing the
day of the month.
... description if the
dayvalue is outside of the range of date values for the month, setdate() will update the date object accordingly.
...And 4 more matches
XUL user interfaces - Archive of obsolete content
"1.0"?> <?xml-stylesheet type="text/css" href="style7.css"?> <!doctype window> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="css getting started - xul demonstration" onload="init();"> <script type="application/javascript" src="script7.js"/> <label class="head-1" value="xul demonstration"/> <vbox> <groupbox class="demo-group"> <caption label="
day of week calculator"/> <grid> <columns> <column/> <column/> </columns> <rows> <row> <label class="text-prompt" value="date:" accesskey="d" control="date-text"/> <textbox id="date-text" type="timed" timeout="750" oncommand="refresh();"/> </row> <row> <label value="
day:"/> ...
... <hbox id="
day-box"> <label class="
day" value="sun
day" disabled="true"/> <label class="
day" value="mon
day" disabled="true"/> <label class="
day" value="tues
day" disabled="true"/> <label class="
day" value="wednes
day" disabled="true"/> <label class="
day" value="thurs
day" disabled="true"/> <label class="
day" value="fri
day" disabled="true"/> <label class="
day" value="satur
day" disabled="true"/> </hbox> </row> </rows> </grid> <hbox class="buttons"> <button id="clear" label="clear" accesskey="c" oncommand="cleardate();"/> <button id="to
day" label="to
day" accesskey="t" oncommand="setto
day();"/> </hbox> </groupbox> <statusbar> <status...
...kground-color: -moz-dialog; font: -moz-dialog; padding: 2em; } .head-1 { font-weight: bold; font-size: 200%; padding-left: 5px; } /* the group box */ .demo-group { padding: 1em; } .demo-group grid { margin-bottom: 1em; } .demo-group column { margin-right: .5em; } .demo-group row { margin-bottom: .5em; } .demo-group .buttons { -moz-box-pack: end; } /* the
day-of-week labels */ .
day { margin-left: 1em; } .
day[disabled] { color: #777; } .
day:first-child { margin-left: 4px; } /* the left column labels */ .text-prompt { padding-top: .25em; } /* the date input box */ #date-text { max-width: 8em; } /* the status bar */ statusbar { width: 100%; border: 1px inset -moz-dialog; margin: 4px; padding: 0px 4px; } #status { ...
...And 3 more matches
Responsive design - Learn web development
previous overview: css layout next in the early
days of web design, pages were built to target a particular screen size.
... in the early
days of responsive design, our only option for performing layout was to use floats.
... .col { width: 6.25%; /* 60 / 960 = 0.0625 */ } this approach will be found in many places across the web to
day, and it is documented here in the layout section of our legacy layout methods article.
...And 3 more matches
Localization and Plurals
pluralrule=2 seconds=seconde;secondes minutes=minute;minutes hours=heure;heures
days=jour;jours like many other times when localizing words, gender agreement might force you to rearrange words in a way that the gender is always the same.
... pluralrule=0 seconds=秒 minutes=分 hours=時
days=日 polish there's a singular form for 1, a plural form for 2-4, and another for 5-21 at which point 22 is the same as 2.
... pluralrule=9 seconds=sekunda;sekundy;sekund minutes=minuta;minuty;minut hours=godzina;godziny;godzin
days=dzień;dni;dni even though the last 2 plural forms of "
day" are the same, both are still needed, because there needs to be 3 plural forms for each word.
...And 3 more matches
Date() constructor - JavaScript
syntax new date() new date(value) new date(datestring) new date(year, monthindex [,
day [, hours [, minutes [, seconds [, milliseconds]]]]]) note: the only correct way to instantiate a new date object is by using the new operator.
... individual date and time component values given at least a year and month, this form of date() returns a date object whose component values (year, month,
day, hour, minute, second, and millisecond) all come from the following parameters.
... any missing fields are given the lowest possible value (1 for
day and 0 for every other component).
...And 3 more matches
Date.prototype.setUTCFullYear() - JavaScript
syntax dateobj.setutcfullyear(yearvalue[, monthvalue[,
dayvalue]]) parameters yearvalue an integer specifying the numeric value of the year, for example, 1995.
...
dayvalue optional.
... an integer between 1 and 31 representing the
day of the month.
...And 3 more matches
New Skin Notes - Archive of obsolete content
--dria took two
days, but i finally got this sorted out.
...it looks odd when someone who uses devmo on regular basis sees some violet links just because he already worked with this site yester
day.also, the current color for visited links makes them less visible.
...your statement that "it looks odd when someone who uses devmo on regular basis sees some violet links just because he already worked with this site yester
day" holds true for every single place on the web, yet visited links use different styling on most sites.
...And 2 more matches
datepicker - Archive of obsolete content
there are several ways to set the selected
day.
...if not specified, the datepicker defaults to the current
day.
... attributes disabled, first
dayofweek, readonly, type, tabindex, value properties date, dateleadingzero, datevalue, disabled, month, monthleadingzero, open, readonly, tabindex, value, year, yearleadingzero examples <datepicker type="grid" value="2007-03-26"/> attributes disabled type: boolean indicates whether the element is disabled or not.
...And 2 more matches
2006-10-20 - Archive of obsolete content
in jan vávra's case he is modifying the thunderbird installer so he needs to modify "mail/installer/windows/packages-static" announcements decommissioning sparky on fri
day on october 17th j.
... preed@mozilla.com irc: preed on irc.mozilla.org phone: 650.903.0800 x256 uploading language packs to amo on october 17th benjamin smedberg brought the following to the attention of the localizers and the build team: that he is planning to upload the firefox 2 language packages currently located at http://releases.mozilla.org/pub/mozi...rc3/win32/xpi/ to addons.mozilla.org in the next few
days.
... discussions sparky and comet going away on fri
day on october 19th j.
...And 2 more matches
XForms Input Element - Archive of obsolete content
(xhtml/xul) datepicker - used to represent data of type xsd:date (xhtml/xul) calendar - used to represent data of type xsd:date when appearance attribute also has the value 'full' (xhtml/xul) month list - used to represent data of type xsd:gmonth (xhtml only)
days list - used to represent data of type xsd:g
day (xhtml only) number field - used to represent data of numeric type (fx 3.0 only, xul only) more detail about each of these widgets follows below.
...
days list this widget is similar to a combo box populated with the sequence of the possible
days in a month.
...characteristics used when the instance node is of type xsd:g
day or a type derived from it.
...And 2 more matches
HTML text fundamentals - Learn web development
semantics are relied on everywhere around us—we rely on previous experience to tell us what the function of an every
day object is; when we see something, we know what its function will be.
...lists are everywhere in life—from your shopping list to the list of directions you subconsciously follow to get to your house every
day, to the lists of instructions you are following in these tutorials!
... playable code <h2>live output</h2> <div class="output" style="min-height: 50px;"> </div> <h2>editable code</h2> <p class="a11y-label">press esc to move focus away from the code area (tab inserts a tab character).</p> <textarea id="code" class="input" style="min-height: 200px; width: 95%"><h1>important notice</h1> <p>on sun
day january 9th 2010, a gang of goths were spotted stealing several garden gnomes from a shopping center in downtown milwaukee.
...And 2 more matches
From object to iframe — other embedding technologies - Learn web development
they have since fallen out of fashion due to many problems, including accessibility, security, file size, and more; these
days most mobile devices don't support such plugins anymore, and desktop support is on the way out.
... finally, the <iframe> element appeared (along with other ways of embedding content, such as <canvas>, <video>, etc.) this provides a way to embed an entire web document inside another one, as if it were an <img> or other such element, and is used regularly to
day.
...it is unlikely that you'll come across any browser that doesn't support <iframe>s these
days.
...And 2 more matches
Accessibility and Mozilla
accessibility api cross-referencethis cross-reference helps us see the difference between to
day's accessibility api's.
...since this is a worldwide effort, there is always a good chance to find someone to chat with there,
day or night.accessibility information for ui designers and developerswhen you design user interfaces with accessibility in mind, they will work for more people.
...since this is a worldwide effort, there is always a good chance to find someone to chat with there,
day or night.information for external developers dealing with accessibilityboth end users and developers are invited for discussion on the live irc channel at irc.mozilla.org/#accessibility.
...And 2 more matches
Localization formats
for example, below is the entire introduction used for a certificate that was presented to those who downloaded firefox during the download
day campaign.
..." "allez-y et montrez-le en téléchargeant et en imprimant votre " "certificat personnalisé firefox 3 download
day." advantages of gettext gettext has very powerful tools to update this site (if you use the actual english strings in msgids, not unique identifier strings like certificate_intro) very established with a large set of powerful tools harder to screw things up because existing tools will not allow localizers to edit the l10n file where they shouldn't separates localizable strings available for localizers for the rest of the code, protecting it from unintended changes disadvantage of gettext .po file needs to be compiled into a .mo...
... case study: download
day in the above gettext example, notice how the web developer used "certificate_intro" as the value of the msgid.
...And 2 more matches
Mozilla Development Strategies
you (or someone else) will be back in that code some
day.
...at least one of them should be updated every
day.
...if you update every
day for a week, you might not have any conflicts, but if you update once a week and you've changed a lot of code, you'll most likely have conflicts.
...And 2 more matches
PRTimeParameters
syntax #include <prtime.h> typedef struct prtimeparameters { print32 tp_gmt_offset; print32 tp_dst_offset; } prtimeparameters; description each geographic location has a standard time zone, and if
daylight saving time (dst) is practiced, a
daylight time zone.
... tp_dst_offset if
daylight savings time (dst) is in effect, the dst adjustment from the local standard time.
... for example, the us pacific time zone has both a standard time zone (pacific standard time, or pst) and a
daylight time zone (pacific
daylight time, or pdt).
...And 2 more matches
PR_NormalizeTime
for example, if you have a ] object that represents the date 3 march 1998 and you want to say "forty
days from 3 march 1998", you can simply add 40 to the tm_m
day field and then call pr_normalizetime().
... to calculate the optional field values tm_w
day and tm_y
day.
... for example, suppose you want to compute the
day of week for 3 march 1998.
...And 2 more matches
Frecency algorithm
100 (places.frecency.firstbucketweight, 4
days bucket size, in places.frecency.firstbucketcutoff) ....
... 70 (places.frecency.secondbucketweight, 14
days bucket size, in places.frecency.secondbucketcutoff) ....
... 50 (places.frecency.thirdbucketweight, 31
days bucket size, in places.frecency.thirdbucketcutoff) ....
...And 2 more matches
<input type="month"> - HTML: Hypertext Markup Language
you can set a default value for the input control by including a month and year inside the value attribute, like so: <label for="b
day-month">what month were you born in?</label> <input id="b
day-month" type="month" name="b
day-month" value="2017-06"> one thing to note is that the displayed date format differs from the actual value; most user agents display the month and year in a locale-appropriate form, based on the set locale of the user's operating system, whereas the date value is always formatted yyyy-mm.
... when the above value is submitted to the server, for example, it will look like b
day-month=1978-06.
... you can also get and set the date value in javascript using the htmlinputelement.value property, for example: <label for="b
day-month">what month were you born in?</label> <input id="b
day-month" type="month" name="b
day-month" value="2017-06"> var monthcontrol = document.queryselector('input[type="month"]'); monthcontrol.value = '1978-06'; additional attributes in addition to the attributes common to <input> elements, month inputs offer the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options max the latest year and month to accept as a valid input min the earliest year and month to accept as a valid input readonly a boolean which,...
...And 2 more matches
Date.prototype.setUTCMonth() - JavaScript
syntax dateobj.setutcmonth(monthvalue[,
dayvalue]) parameters monthvalue an integer between 0 and 11, representing the months january through december.
...
dayvalue optional.
... an integer from 1 to 31, representing the
day of the month.
...And 2 more matches
Intl.RelativeTimeFormat() constructor - JavaScript
possible values are: "always" (default, e.g., 1
day ago), or "auto" (e.g., yester
day).
...rtf.format(-1, "
day"); // > "1
day ago" // format relative time using positive value (1).
... rtf.format(1, "
day"); // > "in 1
day" using the auto option if numeric:auto option is passed, it will produce the string yester
day or tomorrow instead of 1
day ago or in 1
day.
...And 2 more matches
Intl.RelativeTimeFormat.prototype.format() - JavaScript
possible values are: "year", "quarter", "month", "week", "
day", "hour", "minute", "second".
...rtf.format(-1, "
day"); // > "1
day ago" // format relative time using positive value (1).
... rtf.format(1, "
day"); // > "in 1
day" using the auto option if numeric:auto option is passed, it will produce the string yester
day or tomorrow instead of 1
day ago or in 1
day.
...And 2 more matches
XUL accessibility guidelines - Archive of obsolete content
learn more accessibility platform features mozilla community software accessibility - where are we to
day?
...for example, the first item in the privacy panel in the firefox option dialog (discussed and shown above) is [checkbox] remember visited pages for the last [textbox]
days.
... the difficulty here arises from the fact that the correct label for the checkbox ("remember visited pages for the last x
days.") includes three different pieces, the second of which is the current value entered into the textbox.
... <checkbox id="rememberhistory
days" aria-labelledby="history
daysprelabel historybox history
dayspostlabel"> <label id="history
daysprelabel">remember visited pages for the last</label> <textbox id="history
days" aria-labelledby="history
daysprelabel historybox history
dayspostlabel"/> <label id="history
dayspostlabel" >
days.</label> the aria-labelledby attribute comes in handy for controls embedded within controls (usually embe...
What is RSS - Archive of obsolete content
it was much much different than to
day's rss.
...like rss 0.90, netscape's rss 0.91 was also a format for providing a summary of a website, and not really a syndication format (as it is to
day).
...(this tutorial uses rss 2.0.) how rss is used to
day to
day, rss is mostly used for syndication.
...0700</lastbuilddate> <link>http://news.example.com/</link> <item> <title>news flash: i like bread</title> <guid ispermalink="false">4d4a0a12-f188-4c97-908b-eea27213c2fe</guid> <pubdate>wed, 27 jul 2005 00:30:30 -0700</pubdate> <link>http://news.example.com/artcle/554</link> </item> <item> <title>big news to
day: birds fly</title> <guid ispermalink="false">c4a63f09-b45b-466b-8773-6ff264001ab7</guid> <pubdate>tue, 19 jul 2005 04:32:51 -0700</pubdate> <link>http://news.example.com/artcle/553</link> </item> <item> <title>fire is hot</title> <guid ispermalink="false">c1795324-d5ea-44fa-95b1-b5ce2090d4f1</guid> <pubdate>su...
Server-Side JavaScript - Archive of obsolete content
here's a radical idea: use one language to write entire web apps -- the same language which billions of web pages already use, every
day.
... the simplicity of using javascript on the server was part of netscape's original vision back in the
day with netscape livewire.
...to
day with computing cycles having increased more than 10-fold and mozilla's work on rhino (javascript interpreter in java) and spidermonkey (javascript interpreter in c) and javascript itself, we have very solid foundations for javascript to be extraordinarily useful and applicable on the server-side again -- with performance in the same range as popular server-side environments like php and ruby on rails.
...server-side javascript is another way in which, as this article quotes eich, "mozilla wants to 'get people thinking about javascript as a more general-purpose language' and show them that 'it really is a platform for writing full applications.'" many vendors to
day are embedding mozilla rhino or mozilla spidermonkey into web server environments.
Handling common JavaScript problems - Learn web development
these
days, most cross-browser javascript problems are seen: when poor-quality browser-sniffing code, feature-detection code, and vendor prefix usage block browsers from running code they could otherwise use just fine.
...this was more useful back when dhtml was a popular buzzword, and implementing an effect involved a lot of complex javascript, but these
days browsers have a lot of built in css3 features and apis to implementing effects more easily.
... using bad browser sniffing code all browsers have a user-agent string, which identifies what the browser is (version, name, os, etc.) in the bad only
days when pretty much everyone used netscape or internet explorer, developers used to use so-called browser sniffing code to detect which browser the user was using, and give them appropriate code to work on that browser.
...the only real use case for browser sniffing code in the modern
day is if you are implementing a fix for a bug in a very specific version of a particular browser.
Command line crash course - Learn web development
the terminal originates from around the 1950s-60s and its original form really doesn’t resemble what we use to
day (for that we should be thankful).
... many developers to
day are using unix-based tools (e.g.
...many tutorials and tools that exist on the web to
day support (and sadly assume) unix-based systems, but not to worry — they are available on most systems.
... better programs exist for providing a terminal experience on windows, such as powershell (see here to find installers), and gitbash (which comes as part of the git for windows toolset) however, the best option for windows in the modern
day is the windows subsystem for linux (wsl) — a compatibility layer for running linux operating systems directly from inside windows 10, allowing you to run a “true terminal” directly on windows, without needing a virtual machine.
Client-side tooling overview - Learn web development
there are some extremely well-established tools that have become common "household names" amongst the development community, and new tools are being written and released every
day to solve specific problems.
... the modern tooling ecosystem to
day's modern developer tooling ecosystem is huge, so it's useful to have a broad idea of what main problems the tools are solving.
... git is the source code control system that most people use these
days.
...transformation offers two main benefits (amongst others): the ability to write code using the latest language features and have that transformed into code that works on every
day devices.
Storage access policy: Block cookies from trackers
if we discover that an origin is abusing this heuristic to gain tracking access, that origin will have the additional requirement that it must have received user interaction as a first party within the past 30
days.
...the tracking origin must have received user interaction as a first party within the past 30
days, and the storage access permission expires after 15 minutes.
... http: yes js: no storage access expiration the storage access grant expires after 30
days.
... each time the heuristic is activated, or a success call to the storage access api is made, the pre-existing storage access expiration will be extended by 30
days, counting from the time the previous access was granted.
nsIAnnotationService
removed at 30
days.
...removed at 180
days.
... expire_
days 6 for short-lived temporary data that you still want to outlast a session.
... removed at 7
days.
nsIFeed
skip
days nsiarray an array of
days of the week on which the feed should not be fetched.
... each entry in the array is the name of one
day of the week to skip.
... for example, to skip fetching on mon
days, a feed that does not want to be fetched on mon
days would specify "mon
day" in this array.
... skiphours nsiarray an array of the hours of the
day during which the feed should not be fetched.
Index - Web APIs
3095 pointer events api, landing, overview, pointer events much of to
day's web content assumes the user's pointing device will be a mouse.
...however, the reality is the vast majority of to
day's web content is designed only to work with mouse input.
... 4286 using touch events guide, touchevent, touch to
day, most web content is designed for keyboard and mouse input.
...this article offers a brief high-level overview of how dtmf works over webrtc, then provides a guide for every
day developers about how to send dtmf over an rtcpeerconnection.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
a classic example we all know from our browser settings is the setting “delete history after x
days”.
... “delete history after” is to the left of the textbox, x is the number, for example 21, and the word “
days” follows the textbox, forming a sentence that is easy to understand.
... if you’re using a screen reader, have you noticed that, when you go to this setting in firefox, it tells you “delete history after 21
days”?, followed by the announcement that you’re in a textbox, and that it contains the number 21.
...“
days” could easily be “months” or “years”, and in many ordinary dialogs, there is no way to find this out other than navigating around with screen reviewing commands.
Web Accessibility: Understanding Colors and Luminance - Accessibility
luminance is of particular importance, however, because at the end of the
day, understanding of what it is and how it is employed enables accessibility for those who are color-blind, as well as those who can perceive color.
... this is because the companies behind the evolution of digital technology set the standards, and these standards still retain a powerful presence to
day.
... in speaking specifically to relative luminance, wcag's definition of relative luminance notes: "note 2: almost all systems used to
day to view web content assume srgb encoding.
... measuring relative luminance when evaluating luminance, bear in mind the w3c's wiki on relative luminance "almost all systems used to
day to view web content assume srgb encoding.
Writing Web Audio API code that works in every browser - Developer guides
writing for to
day (and tomorrow) first, get a copy of audiocontext-monkeypatch by chris wilson.
...for example, the way to create instances of gainnode used to be var gain = audiocontext.creategainnode(); but nowa
days it is just var gain = audiocontext.creategain(); since the old method names are not present in firefox, existing code may crash with something like creategainnode is not a function, and you now know why.
...for example, up until a couple of
days ago pannernode did not support the default hrtf panning model yet, and attempting to use a pannernode with that configuration simply resulted in silence or a mono output coming out from that node, depending on the build you used.
... to
day the support is already present in nightly, but not quite yet in aurora.
Expressions and operators - JavaScript
suppose you define the following variables: var myfun = new function('5 + 2'); var shape = 'round'; var size = 1; var foo = ['apple', 'mango', 'orange']; var to
day = new date(); the typeof operator returns the following results for these variables: typeof myfun; // returns "function" typeof shape; // returns "string" typeof size; // returns "number" typeof foo; // returns "object" typeof to
day; // returns "object" typeof doesntexist; // returns "undefined" for the keywords true and null, the typeof operator returns the ...
... for example, the following code uses instanceof to determine whether the
day is a date object.
... because the
day is a date object, the statements in the if statement execute.
... var the
day = new date(1995, 12, 17); if (the
day instanceof date) { // statements to execute } operator precedence the precedence of operators determines the order they are applied when evaluating an expression.
Date.prototype.getDate() - JavaScript
the getdate() method returns the
day of the month for the specified date according to local time.
... syntax dateobj.getdate() return value an integer number, between 1 and 31, representing the
day of the month for the given date according to local time.
... examples using getdate() the second statement below assigns the value 25 to the variable
day, based on the value of the date object xmas95.
... var xmas95 = new date('december 25, 1995 23:15:30'); var
day = xmas95.getdate(); console.log(
day); // 25 specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getdate' in that specification.
Date.prototype.getUTCDate() - JavaScript
the getutcdate() method returns the
day (date) of the month in the specified date according to universal time.
... syntax dateobj.getutcdate() return value an integer number, between 1 and 31, representing the
day of the month in the given date according to universal time.
... examples using getutcdate() the following example assigns the
day portion of the current date to the variable
day.
... var to
day = new date(); var
day = to
day.getutcdate(); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getutcdate' in that specification.
Date.prototype.setUTCDate() - JavaScript
the setutcdate() method sets the
day of the month for a specified date according to universal time.
... syntax dateobj.setutcdate(
dayvalue) parameters
dayvalue an integer from 1 to 31, representing the
day of the month.
...for example, if you use 40 for
dayvalue, and the month stored in the date object is june, the
day will be changed to 10 and the month will be incremented to july.
... examples using setutcdate() var thebig
day = new date(); thebig
day.setutcdate(20); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.setutcdate' in that specification.
Date.prototype.toLocaleDateString() - JavaScript
the default value for each date-time component property is undefined, but if the week
day, year, month,
day properties are all undefined, then year, month, and
day are assumed to be "numeric".
...in order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // formats below assume the local time zone of the locale; // america/los_angeles for the us // us english uses month-
day-year order console.log(date.tolocaledatestring('en-us')); // → "12/19/2012" // british english uses
day-month-year order console.log(date.tolocaledatestring('en-gb')); // → "20/12/2012" // korean uses year-month-
day order console.log(date.tolocaledatestring('ko-kr')); // → "2012.
...�� "24/12/20" // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case indonesian console.log(date.tolocaledatestring(['ban', 'id'])); // → "20/12/2012" using options the results provided by tolocaledatestring() can be customized using the options argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a week
day along with a long date var options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; console.log(date.tolocaledatestring('de-de', options)); // → "donnerstag, 20.
... dezember 2012" // an application may want to use utc and make that visible options.timezone = 'utc'; options.timezonename = 'short'; console.log(date.tolocaledatestring('en-us', options)); // → "thurs
day, december 20, 2012, gmt" specifications specification ecmascript (ecma-262)the definition of 'date.prototype.tolocaledatestring' in that specification.
Date.prototype.toLocaleString() - JavaScript
but, if the week
day, year, month, and
day properties are all undefined, then year, month, and
day are assumed to be "numeric".
...in order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: let date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // formats below assume the local time zone of the locale; // america/los_angeles for the us // us english uses month-
day-year order and 12-hour time with am/pm console.log(date.tolocalestring('en-us')); // → "12/19/2012, 7:00:00 pm" // british english uses
day-month-year order and 24-hour time without am/pm console.log(date.tolocalestring('en-gb')); // → "20/12/2012 03:00:00" // korean uses year-month-
day order and 12-hour time with am/pm console.log(date.tolocalestring('ko-kr')); // → "2012.
... 12:00:00" // when requesting a language that may not be supported, such as // balinese, include a fallback language (in this case, indonesian) console.log(date.tolocalestring(['ban', 'id'])); // → "20/12/2012 11.00.00" using options the results provided by tolocalestring() can be customized using the options argument: let date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a week
day along with a long date let options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; console.log(date.tolocalestring('de-de', options)); // → "donnerstag, 20.
... dezember 2012" // an application may want to use utc and make that visible options.timezone = 'utc'; options.timezonename = 'short'; console.log(date.tolocalestring('en-us', options)); // → "thurs
day, december 20, 2012, gmt" // sometimes even the us needs 24-hour time console.log(date.tolocalestring('en-us', { hour12: false })); // → "12/19/2012, 19:00:00" avoid comparing formatted date values to static values most of the time, the formatting returned by tolocalestring() is consistent.
Date.prototype.toString() - JavaScript
date.prototype.tostring() returns a string representation of the date in the format specified in ecma-262 which can be summarised as: week
day: 3 letter english week
day name, e.g.
..."sep" space date: 2 digit
day in month, e.g.
..."2018" space hour: 2 digit hour of
day, e.g.
...console.log(new date()), or when a date is used in a string concatenation, such as var to
day = 'to
day is ' + new date().
Intl.DateTimeFormat - JavaScript
in order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // results below use the time zone of america/los_angeles (utc-0800, pacific standard time) // us english uses month-
day-year order console.log(new intl.datetimeformat('en-us').format(date)); // → "12/19/2012" // british english uses
day-month-year order console.log(new intl.datetimeformat('en-gb').format(date)); // → "19/12/2012" // korean uses year-month-
day order console.log(new intl.datetimeformat('ko-kr').format(date)); // → "2012.
...→ "24/12/19" // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case indonesian console.log(new intl.datetimeformat(['ban', 'id']).format(date)); // → "19/12/2012" using options the date and time formats can be customized using the options argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0, 200)); // request a week
day along with a long date var options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; console.log(new intl.datetimeformat('de-de', options).format(date)); // → "donnerstag, 20.
... dezember 2012" // an application may want to use utc and make that visible options.timezone = 'utc'; options.timezonename = 'short'; console.log(new intl.datetimeformat('en-us', options).format(date)); // → "thurs
day, december 20, 2012, gmt" // sometimes you want to be more precise options = { hour: 'numeric', minute: 'numeric', second: 'numeric', timezone: 'australia/sydney', timezonename: 'short' }; console.log(new intl.datetimeformat('en-au', options).format(date)); // → "2:00:00 pm aedt" // sometimes you want to be very precise options.fractionalseconddigits = 3; console.log(new intl.datetimeformat('en-au', options).format(date)); // → "2:00:00.200 pm aedt" // sometimes even the us needs 24-hour time options = { year: 'numeric', month: 'numeric',
day: 'numeric', hour...
...d: 'numeric', hour12: false, timezone: 'america/los_angeles' }; console.log(new intl.datetimeformat('en-us', options).format(date)); // → "12/19/2012, 19:00:00" // to specify options but use the browser's default locale, use 'default' console.log(new intl.datetimeformat('default', options).format(date)); // → "12/19/2012, 19:00:00" // sometimes it's helpful to include the period of the
day options = {hour: "numeric",
dayperiod: "short"}; console.log(new intl.datetimeformat('en-us', options).format(date)); // → 10 at night the used calendar and numbering formats can also be set independently via options arguments: var options = {calendar: 'chinese', numberingsystem: 'arab'}; var dateformat = new intl.datetimeformat('default', options); var usedoptions = dateformat.resolvedoptio...
Numeric Controls - Archive of obsolete content
a numeric textbox would normally be used when the value was important to the user, for instance, a field to enter a number of
days, or the maximum size of a file.
...this way, you do not have to check for valid dates, ensure that the
day isn't greater than the number of
days in the month, handle leap years, and so forth.
...this type has three fields for entering the year, month and date, as well as a dropdown button for displaying a popup calendar grid for selecting a
day.
2006-10-20 - Archive of obsolete content
discussions sparky and comet going away on fri
day preed wants to get rid of sparky and comet (both older desktop class linux boxes).
... decommissioning sparky on fri
day preed wants to get rid of sparky (a linux build box) and wants to know if there are reasons wy not to do it.
...meeting notes gecko status meeting october 19 (*thurs
day*) gecko 1.9 status meeting.
2006-10-20 - Archive of obsolete content
announced by tim on fri
day october 13, 2006.
... discussions none for this week meetings upcoming firefox test
day - testing will be emphasized on ajax/web 2.0, dhtml, and plugin heavy sites!
... meet in irc chat room #test
day on fri
day october 20, 2006 7am-5pm pacific time.
Date.prototype.toLocaleFormat() - Archive of obsolete content
names for months and
days of the week are localized using the operating system's locale.
... however, ordering of the
day and month and other localization tasks are not handled automatically since you have control over the order in which they occur.
... examples using tolocaleformat() var to
day = new date(); var date = to
day.tolocaleformat('%a, %b %e, %y'); in this example, tolocaleformat() returns a string such as "wednes
day, october 3, 2007".
Implementation Status - Archive of obsolete content
5.2.1 additional xforms datatypes to allow empty content unsupported 5.2.2 xforms:listitem supported 5.2.3 xforms:listitems supported 5.2.4 xforms:
daytimeduration supported 5.2.5 xforms:yearmonthduration supported 5.2.6 xforms:email unsupported 5.2.7 xforms:card-number unsupported supported types: string, normalized string, token, language, boolean, g
day, gmonth, gyear, gyearmonth, gm...
...onth
day, date, time, datetime, duration, integer, nonpositiveinteger, negativeinteger, positiveinteger, long, int, short, unsignedlong, unsignedint, unsignedshort, byte, unsignedbyte, float, decimal, anyuri, base64binary, hexbinary, qname 6.
... 334333; 7.8.3 digest() unsupported 7.8.4 hmac() unsupported 7.9.1 local-date() supported 7.9.2 local-datetime() supported 7.9.3 now() supported 7.9.4
days-from-date() supported 7.9.5
days-to-date() unsupported 7.9.6 seconds-from-datetime() supported 7.9.7 seconds-to-datetime() unsupported 7.9.8 adjust-datetime-to-timezone() unsupported 7...
Gecko FAQ - Gecko Redirect 1
outeach, abouteachprefix, and parsetype javascript 1.5, including ecma-262 edition 3 (ecmascript) compliance, except for date.todatestring and date.totimestring, which are not implemented transfer protocols: http 1.1 (including gzip compression), ftp ssl unicode oji (open java interface) image formats png gif jpeg, pjpeg does "full support" mean that gecko has zero bugs to
day or will have zero bugs at some point in the future?
... gecko runs to
day on win32 (windows xp service pack 2, windows vista, windows 7, windows 8, windows 8.1, windows 10), mac os x 10.5 and later, and linux.
...ary networking library (necko) platform-specific graphics rendering and widget sets for win32, x, and mac user preferences library mozilla plug-in api (npapi) to support the navigator plug-in interface open java interface (oji), with sun java 1.2 jvm rdf back end font library security library (nss) original document information author(s): angus other contributors: ekrock, vidur, hid
day, drunclear copyright information: portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a creative commons license ...
Mobile accessibility - Learn web development
long gone are the
days when mobile devices ran completely different web technologies to desktop browsers, forcing developers to use browser sniffing and serve them completely separate sites (although quite a few companies still detect usage of mobile devices and serve them a separate mobile domain).
... these
days, mobile devices can usually handle fully-featured websites, and the main platforms even have screenreaders built in to enable visually impaired users to use them successfully.
...in addition, many image requirements can be fulfilled using the svg vector images format, which is well-supported across browsers to
day.
CSS FAQ - Learn web development
<style type="text/css"> .news { background: black; color: white; } .to
day { font-weight: bold; } </style> <div class="news to
day"> ...
... content of to
day's news ...
... .news { color: black; } .corpname { font-weight: bold; color: red; } <!-- news item text is black, but corporate name is red and in bold --> <div class="news"> (reuters) <span class="corpname">general electric</span> (ge.nys) announced on thurs
day...
The HTML5 input types - Learn web development
previous overview: forms next in the previous article we looked at the <input> element, covering the original values of the type attribute available since the early
days of html.
... weeks start on mon
day and run to sun
day.
... additionally, the first week 1 of each year contains the first thurs
day of that year—which may not include the first
day of the year, or may include the last few
days of the previous year.
Video and audio content - Learn web development
video and audio on the web web developers have wanted to use video and audio on the web for a long time, ever since the early 2000s when we started to have bandwidth fast enough to support any kind of video (video files are much larger than text or even images.) in the early
days, native web technologies such as html didn't have the ability to embed video and audio on the web, so proprietary (or plugin-based) technologies like flash (and later, silverlight) became popular for handling such content.
...including webm and mp4 sources should be enough to play your video on most platforms and browsers these
days.
... active learning: embedding your own audio and video for this active learning, we'd (ideally) like you to go out into the world and record some of your own video and audio — most phones these
days allow you to record audio and video very easily, and provided you can transfer it on to your computer, you can use it.
Index - Learn web development
153 test your skills: fundamental layout comprehension assessment, beginner, css, layout, learn if you have worked through this module then you will have already covered the basics of what you need to know to do css layout to
day, and to work with older css as well.
... 252 use html to solve common problems codingscripting, html the following links point to solutions to common every
day problems you'll need to solve with html.
... 310 basic native form controls beginner, controls, example, forms, guide, html, input, web, widgets this article has covered the older input types — the original set introduced in the early
days of html that is well supported in all browsers.
Client-side storage - Learn web development
since the early
days of the web, sites have used cookies to store information to personalize user experience on websites.
... these
days, there are easier mechanisms available for storing client-side data, therefore we won't be teaching you how to use cookies in this article.
... however, this does not mean cookies are completely useless on the modern-
day web — they are still used commonly to store data related to user personalization and state, e.g.
Storing the information you need — Variables - Learn web development
in the early
days of javascript, constants didn't exist.
... in modern javascript, we have the keyword const, which lets us store values that can never be changed: const
daysinweek = 7; const hoursin
day = 24; const works in exactly the same way as let, except that you can't give a const a new value.
... in the following example, the second line would throw an error: const
daysinweek = 7;
daysinweek = 8; test your skills!
Introducing a complete toolchain - Learn web development
many of to
day's code editors (such as vs code and atom) have integration support for a lot of tools via plugins.
... netlify is a hosting service for static websites (that is, websites that entirely consist of files that do not change in real time), which lets us deploy multiple times a
day and freely hosts static sites of all kinds.
... let's use the postcss-preset-env, which lets us "use tomorrow's css to
day".
AsyncTestUtils extended framework
if you pass an object, it should be an object with one or more of the following attributes: minutes, hours,
days, weeks.
...for example, {weeks: 2,
days: 3} would be a message sent exactly 17
days ago.
...(we will probably auto-correct that in the future.) if your set definition was {count: 3, age: {
days: 7}, age_incr: {
days: -1}}, then you would generate messages from 7, 6, and 5
days ago.
Querying Places
basic query search parameters const unsigned long time_relative_epoch = 0 const unsigned long time_relative_to
day = 1 const unsigned long time_relative_now = 2 attribute prtime begintime attribute unsigned long begintimereference readonly attribute boolean hasbegintime readonly attribute prtime absolutebegintime attribute prtime endtime attribute unsigned long endtimereference readonly attribute boolean hasendtime readonly attribute prtime absoluteendtime attribute astring searchterms readonly att...
...lean domainishost attribute autf8string domain readonly attribute boolean hasdomain attribute boolean uriisprefix attribute nsiuri uri readonly attribute boolean hasuri attribute boolean annotationisnot attribute autf8string annotation readonly attribute boolean hasannotation readonly attribute unsigned long foldercount basic query configuration options const unsigned short group_by_
day = 0 const unsigned short group_by_host = 1 const unsigned short group_by_domain = 2 const unsigned short group_by_folder = 3 const unsigned short sort_by_none = 0 const unsigned short sort_by_title_ascending = 1 const unsigned short sort_by_title_descending = 2 const unsigned short sort_by_date_ascending = 3 const unsigned short sort_by_date_descending = 4 const unsigned short sort_by_ur...
... example of querying for any pages i've visited that contain the word "firefox" in the title/url or that i've visited to
day from mozilla.org.
mozIRegistry
which explains how this information came to be associated with the notion of a "registry." some
day (i hope) this page will be properly titled so that everybody knows it is the place to come to in order to find out how they are supposed to link together the various xpcom components that together form the mozilla browser.
... nsrepository this is basically the same as is provided to
day (see mozilla/xpcom/public/nsrepository.h).
... the primary change to this component is that we will modify it to utilize the new moziregistry interface versus the nsreg.h functions it calls to
day.
nsINavHistoryQuery
time_relative_to
day 1 the time is relative to this morning at midnight.
... normally used for queries relative to to
day.
... for example, a "past week" query would be (to
day-6
days -> to
day+1
day).
nsINavHistoryResultNode
even if you ask for all uris for a given date range long ago, this might contain to
day's date if the uri was visited to
day.
...for
days, this is midnight on the morning of the
day in question in utc.
... title autf8string title of the web page or of the node's grouping (
day, host, folder, and so on.).
IDBRequest: error event - Web APIs
() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }); dbopenrequest.addeventlistener('success', event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore ...
...= transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); objectstorerequest.addeventlistener('error', () => { console.log(`error adding new item: ${newitem.tasktitle}`); }); }); the same example, using the onerror property instead of addeventlistener(): // open the database const dbopenrequest = window.indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; db.onerror = () => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the ob...
...jectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); objectstorerequest.onerror = ()...
IDBTransaction: complete event - Web APIs
() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `complete` ...
... transaction.addeventlistener('complete', event => { console.log('transaction was competed'); }); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2019 }; const objectstorerequest = objectstore.add(newitem); }; using the oncomplete property: // open the database const dbopenrequest = window.indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; db.onerror = () => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createind...
...ex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `complete` transaction.oncomplete = event => { console.log('transaction was competed'); }; const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2019 }; const ob...
IDBTransaction: error event - Web APIs
eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); transaction.addeventlistener('er...
...ror', () => { console.log(`error adding new item: ${newitem.tasktitle}`); }); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); }; the same example, using the onerror property instead of addeventlistener(): // open the database const dbopenrequest = window.indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); o...
...bjectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); transaction.onerror = () => { console.log(`error adding new item: ${newitem.tasktitle}`); }; const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); }; ...
Key Values - Web APIs
vk_guide qt::key_guide (0x0100011a) keycode_guide (172) "guidenext
day" if the guide is currently displayed, this button tells the guide to display the next
day's content.
... vk_next_
day "guideprevious
day" if the guide is currently displayed, this button tells the guide to display the previous
day's content.
... vk_prev_
day "info" toggles the display of information about the currently selected content, program, or media.
Storage Access API - Web APIs
access requests are automatically denied if the browser detects that the user hasn’t interacted with the embedded content in a first-party context recently (in firefox, "recently" is "within 30
days").
...design properties unique to firefox are summarized here: if the embedded origin tracker.example has already obtained first-party storage access on the top-level origin foo.example, and the user visits a page from foo.example embedding a page from tracker.example again in less than 30
days, the embedded origin will have storage access immediately when loading.
... in firefox, the storage access grants are phased out after 30 calendar
days passing, whereas in safari the storage access grants are phased out after 30
days of browser usage passed without user interaction.
Using the aria-valuetext attribute - Accessibility
examples example 1: the snippet below shows a simple slider for selecting a
day of the week.
... the value of the slider is numeric, and the aria-valuetext attribute is used to provide the name of the
day.
... <div role="slider" aria-valuenow="1" aria-valuemin="1" aria-valuemax="7" aria-valuetext="sun
day"> working examples: notes used with aria roles progressbar scrollbar slider spinbutton related aria techniques aria-valuenow compatibility tbd: add support information for common ua and at product combinations additional resources wai-aria specification for the aria-valuetext attribute ...
Backwards Compatibility of Flexbox - CSS: Cascading Style Sheets
the history of flexbox as with all css specifications the flexbox specification went through a large number of changes before it became the candidate recommendation that we have to
day.
...to create a flex container you would use display: box and there were a number of box-* properties, which did things that you will recognise from flexbox to
day.
...this is becoming less and less of a requirement to
day as support is widespread.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
<input type="color" name="color"/> html5 date a control for entering a date (year, month, and
day, with no time).
... opens a date picker or numeric wheels for year, month,
day when active in supporting browsers.
... if not explicitly included, step defaults to 1 for number and range, and 1 unit type (second, week, month,
day) for the date/time input types.
If-Range - HTTP
header type request header forbidden header name no syntax if-range: <
day-name>, <
day> <month> <year> <hour>:<minute>:<second> gmt if-range: <etag> directives <etag> an entity tag uniquely representing the requested resource.
... <
day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
... <
day> 2 digit
day number, e.g.
Inheritance and the prototype chain - JavaScript
pe = proto; var inst = new bar; console.log(inst.foo_prop); console.log(inst.bar_prop); function foo(){} foo.prototype = { foo_prop: "foo val" }; function bar(){} var proto = object.create( foo.prototype, { bar_prop: { value: "bar val" } } ); bar.prototype = proto; var inst = new bar; console.log(inst.foo_prop); console.log(inst.bar_prop) support in all in-use-to
day browsers which are all non-microsoft browsers plus ie9 and up.
...); bar.prototype = proto; var inst = new bar; console.log(inst.foo_prop); console.log(inst.bar_prop); function foo(){} foo.prototype = { foo_prop: "foo val" }; function bar(){} var proto; proto=object.setprototypeof( { bar_prop: "bar val" }, foo.prototype ); bar.prototype = proto; var inst = new bar; console.log(inst.foo_prop); console.log(inst.bar_prop) support in all in-use-to
day browsers which are all non-microsoft browsers plus ie9 and up.
...r proto = { bar_prop: "bar val", __proto__: foo.prototype }; bar.prototype = proto; var inst = new bar; console.log(inst.foo_prop); console.log(inst.bar_prop); var inst = { __proto__: { bar_prop: "bar val", __proto__: { foo_prop: "foo val", __proto__: object.prototype } } }; console.log(inst.foo_prop); console.log(inst.bar_prop) support in all in-use-to
day browsers which are all non-microsoft browsers plus ie11 and up.
Warning: Date.prototype.toLocaleFormat is deprecated - JavaScript
var to
day = new date(); var date = to
day.tolocaleformat('%a, %e.
... var to
day = new date(); var options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; var date = to
day.tolocaledatestring('de-de', options); console.log(date); // "freitag, 10.
... var options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; var dateformatter = new intl.datetimeformat('de-de', options) var dates = [date.utc(2012, 11, 20, 3, 0, 0), date.utc(2014, 04, 12, 8, 0, 0)]; dates.foreach(date => console.log(dateformatter.format(date))); // "donnerstag, 20.
Date.prototype.toUTCString() - JavaScript
description the value returned by toutcstring() is a string in the form www, dd mmm yyyy hh:mm:ss gmt, where: format sring description www
day of week, as three letters (e.g.
... sun, mon, ...) dd
day of month, as two digits with leading zero if required mmm month, as three letters (e.g.
... examples using toutcstring() let to
day = new date('wed, 14 jun 2017 00:00:00 pdt'); let utcstring = to
day.toutcstring(); // wed, 14 jun 2017 07:00:00 gmt specifications specification ecmascript (ecma-262)the definition of 'date.prototype.toutcstring' in that specification.
Intl.RelativeTimeFormat - JavaScript
rtf.format(-1, "
day"); // > "1
day ago" // format relative time using positive value (1).
... rtf.format(1, "
day"); // > "in 1
day" using formattoparts the following example shows how to create a relative time formatter returning formatted parts const rtf = new intl.relativetimeformat("en", { numeric: "auto" }); // format relative time using the
day unit.
... rtf.formattoparts(-1, "
day"); // > [{ type: "literal", value: "yester
day"}] rtf.formattoparts(100, "
day"); // > [{ type: "literal", value: "in " }, // > { type: "integer", value: "100", unit: "
day" }, // > { type: "literal", value: "
days" }] specifications specification status comment ecmascript internationalization api (ecma-402)the definition of 'relativetimeformat' in that specification.
eval() - JavaScript
but, in the code using eval(), the browser cannot assume this since what if your code looked like the following: function date(n){ return ["mon
day","tues
day","wednes
day","thurs
day","fri
day","satur
day","sun
day"][n%7 || 0]; } function loosejsonparse(obj){ return eval("(" + obj + ")"); } console.log(loosejsonparse( "{a:(4-1), b:function(){}, c:new date()}" )) thus, in the eval() version of the code, the browser is forced to make the expensive lookup call to check to see if there are any local variables called date().
... function date(n){ return ["mon
day","tues
day","wednes
day","thurs
day","fri
day","satur
day","sun
day"][n%7 || 0]; } function runcodewithdatefunction(obj){ return function('"use strict";return (' + obj + ')')()( date ); } console.log(runcodewithdatefunction( "function(date){ return date(5) }" )) the code above may seem inefficiently slow because of the triple nested function, but let's analyze the benefits of the above efficient method: it allows the code in the string passed to ...
... console.log(function('"use strict";return(function(a){return a(5)})')()(function(a){ return"mon
day tues
day wednes
day thurs
day fri
day satur
day sun
day".split(" ")[a%7||0]})); there are also additional safer (and faster!) alternatives to eval() or function() for common use-cases.
Digital audio concepts - Web media technologies
some audio does travel through water, or even through the rock comprising the planet itself (if you've ever heard the rumble or boom of an earthquake, you've experienced this phenomenon), but nearly all of the sounds you hear every
day travel to your ears through the air.
... the sounds a person hears every
day are, then, actually vibrations in the air which cause the inner workings of the ear.
... stereo audio is probably the most commonly used channel arrangement in web audio, and 16-bit samples are used for the majority of
day-to-
day audio in use to
day.
Web video codec guide - Web media technologies
it's a motion compensation based codec that is widely used to
day for all sorts of media, including broadcast television, rtp videoconferencing, and as the video codec for blu-ray discs.
...that said, 8 bits per component is still the most commonly-used color format in use to
day, so this is only a minor inconvenience in most cases.
... recommendations for every
day videos first, let's look at the best options for videos presented on a typical web site such as a blog, informational site, small business web site where videos are used to demonstrate products (but not where the videos themselves are a product), and so forth.
Twitter - Archive of obsolete content
example: jetpack.lib.twitter.statuses.update({ data: { status: "o frabjous
day!" }, username: "basic_auth_username", password: "basic_auth_password", success: function () console.log("hey!") }); user authentication you can supply a username and password to methods that require authentication using the second, more advanced call style described above.
... example usage tweeting jetpack.lib.twitter.statuses.update({ status: "o frabjous
day!" }); firefox will prompt for a username and password if the user is not already authenticated with twitter.
Using addresses of stack variables with NSPR threads on win16 - Archive of obsolete content
with the speed of to
day's processors (even those running win-16), the copying of 10 - 50 kilobytes of data between two locations in memory is barely measurable 1.
... original document information author: larryh@netscape.com, wan teh chang last updated date: december 1, 2004 this note is about writing win16-portable code that uses nspr threads, probably not interesting to to
day's developers ...
Introduction to XUL - Archive of obsolete content
some
day, there will be a complete description of this mechanism at packages, but for now there's a good but somewhat out of date document at configurable chrome available for more information.
... </window> </package> and a window (or other service) could be instantiated by first parsing the whole package and then picking out a window from its contents package *package = loadpackage("http://xxx/package.xul"); instantiatewindow(package, getnodewithid("main"); this happy scheme doesn't work to
day, because the code expects the result of parsing an xml document to be a window.
The Joy of XUL - Archive of obsolete content
it uses simple xul components like boxes, grids, and stacks to compose views for the weeks,
days, and months.
... fortunately, an implementation of the libical library was already available for macintosh so, with the cross platform nature of xpcom, a macintosh calendar implementation was working within a few
days.
Manipulating Lists - Archive of obsolete content
here is an example: example 1 : source view <script> function additem(){ document.getelementbyid('thelist').appenditem("thurs
day", "thu"); } </script> <listbox id="thelist"/> <button label="add" oncommand="additem();"/> the appenditem() takes two arguments, the label, in this case 'thurs
day', and a value 'thu'.
...the syntax is as follows: list.insertitemat(3, "thurs
day", "thu"); list.removeitemat(3); the insertitemat() function takes an additional argument, the position to insert the new item.
2006-09-29 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - september 22 - september 29, 2006 announcements lightning and sunbird 0.3 rc1 test
day!
... clint announced the lightning and sunbird 0.3 rc1 test
day oct.3 to oct.
2006-11-03 - Archive of obsolete content
more tbox changes on the way, most hitting on fri
day preed discusses killing more tboxes.
... bon echo status meeting: october 31st, 2006: (possibly final meeting) get notes here weekly project status meeting mon
day oct 30 1pm *pst*: get notes here ...
2006-10-06 - Archive of obsolete content
discussions none for this week meetings community test
day - on fri
day october 6th, 2006 in irc chat room #test
day there will be a test
day focusing on safe browsing between 7am to 5pm pdt.
... bug
day - in irc chat room #bug
day on oct 3rd.
2006-12-01 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - november 24 - december 01, 2006 announcements december 5th test
day coming up!
... test
day for sunbird and lightning on tues
day december 5th.
Element - Archive of obsolete content
rss elements a <author> (rss author element) b c <category> (rss category element) <channel> (rss channel element) <cloud> (rss cloud element) <comments> (rss comments element) <copyright> (rss copyright element) d <
day> (rss
day element) <description> (rss description element) <docs> (rss docs element) e <enclosure> (rss enclosure element) f g <generator> (rss generator element) <guid> (rss guid element) h <height> (rss height element) <hour> (rss hour element) i <image> (rss image element) <item> (rss item element) j k l <language> (rss language element) <lastbuilddate> (rss last build date element) <link> (rss link element) m <managingeditor> (rss managing editor element) n <name> (rss name element) o p <pubdate> (rss p...
...ublished date element) q r <rating> (rss rating element) <rss> (rss's root "rss" element) s <skip
days> (rss skip
days element) <skiphours> (rss skip hours element) <source> (rss source element) t <textinput> (rss text input element) <title> (rss title element) <ttl> (rss ttl element) u <url> (rss url element) v w <webmaster> (rss web master element) <width> (rss width element) x y z ...
Introduction to SSL - Archive of obsolete content
although the fourth question is not technically part of the ssl protocol, it is the client's responsibility to support this requirement, which provides some assurance of the server's identity and thus helps protect against a form of security attack known as "man in the middle." an ssl-enabled client goes through these steps to authenticate a server's identity: is to
day's date within the validity period?
... is to
day's date within the validity period?
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
now more than 10 years later, with netscape's technology group having been transformed into the mozilla foundation, server-side javascript is seeing a strong resurgence because of the simplicity it provides to web developers reinvigorated by the fact that to
day's cpus can process javascript more than 10x faster than the cpus of the mid-90's ever could.
...advances such as ajax and running ajax on the server side with the jaxer server boosted by to
day's faster javascript engines and radically faster ones like tracemonkey to come from mozilla, sets the stage for significant use of server-side javascript now.
Introduction to game development for the Web - Game development
and we're not talking about simple card games or multi-player social games that have in the olden
days been done using flash®.
...no waiting breathlessly for approval while someone hidden within another company decides whether or not your critical bug fix will ship to
day or tomorrow.
Localization - MDN Web Docs Glossary: Definitions of Web-related terms
the following are common factors to consider: language unit of measure (e.g., kilometers in europe, miles in u.s.) text direction (e.g., european languages are left-to-right, arabic right-to-left) capitalization in latin script (e.g., english uses capitals for week
days, spanish uses lowercase) adaptation of idioms (e.g., "raining cats and dogs" makes no sense when translated literally) use of register (e.g., in japanese respectful speech differs exceptionally from casual speech) number format (e.g., 10 000,00 in germany vs.
... 10,000.00 in the u.s.) date format currency cultural references paper size color psychology compliance with local laws local holi
days personal names learn more general knowledge localization at mozilla on mdn localization on wikipedia ...
MVC - MDN Web Docs Glossary: Definitions of Web-related terms
in the early
days of the web, mvc architecture was mostly implemented on the server-side, with the client requesting updates via forms or links, and receiving updated views back to display in the browser.
... however, these
days, more of the logic is pushed to the client with the advent of client-side data stores, and xmlhttprequest allowing partial page updates as required.
Polyfill - MDN Web Docs Glossary: Definitions of Web-related terms
although this reason for polyfilling is very rare to
day, it was especially prevalent back in the
days of ie6, netscape, and nnav where each browser implemented javascript very differently.
...using a polyfill to handle browser-specific implementations is practically non-existent to
day because modern browsers mostly implement a broad set of apis according to standard semantics.
How much does it cost to do something on the Web? - Learn web development
because ftp is inherently insecure, you should make sure to use sftp — the secure, encrypted version of ftp that most hosting sites you'll deal with these
days will offer by default — or another secure solution like rsync over ssh.
...for example, your provider may have a plan that includes up to several thousand visitors per
day, for “reasonable” bandwidth usage.
What is a URL? - Learn web development
in the early
days of the web, a path like this represented a physical file location on the web server.
... nowa
days, it is mostly an abstraction handled by web servers without any physical reality.
Basic native form controls - Learn web development
in this particular article we will look at the original set of form controls, available in all browsers since the early
days of the web.
... summary this article has covered the older input types — the original set introduced in the early
days of html that is well supported in all browsers.
Advanced text formatting - Learn web development
for example: <p>my birth
day is on the 25<sup>th</sup> of may 2001.</p> <p>caffeine's chemical formula is c<sub>8</sub>h<sub>10</sub>n<sub>4</sub>o<sub>2</sub>.</p> <p>if x<sup>2</sup> is 9, x must equal 3 or -3.</p> the output of this code looks like so: representing computer code there are a number of elements available for marking up computer code using html: <code>: for marking up generic pieces of computer code.
... the basic example above just provides a simple machine readable date, but there are many other options that are possible, for example: <!-- standard simple date --> <time datetime="2016-01-20">20 january 2016</time> <!-- just year and month --> <time datetime="2016-01">january 2016</time> <!-- just month and
day --> <time datetime="01-20">20 january</time> <!-- just time, hours and minutes --> <time datetime="19:30">19:30</time> <!-- you can do seconds and milliseconds too!
What’s in the head? Metadata in HTML - Learn web development
l support favicons in more common formats like .gif or .png, but using the ico format will ensure it works as far back as internet explorer 6.) adding the following line into your html's <head> block to reference it: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> here is an example of a favicon in a bookmarks panel: there are lots of other icon types to consider these
days as well.
... applying css and javascript to html just about all websites you'll use in the modern
day will employ css to make them look cool, and javascript to power interactive functionality, such as video players, maps, games, and more.
Fetching data from the server - Learn web development
note: in the early
days, this general technique was known as asynchronous javascript and xml (ajax), because it tended to use xmlhttprequest to request xml data.
... this is normally not the case these
days (you'd be more likely to use xmlhttprequest or fetch to request json), but the result is still the same, and the term "ajax" is still often used to describe the technique.
Useful string methods - Learn web development
<h2>live output</h2> <div class="output" style="min-height: 125px;"> <ul> </ul> </div> <h2>editable code</h2> <p class="a11y-label">press esc to move focus away from the code area (tab inserts a tab character).</p> <textarea id="code" class="playable-code" style="height: 290px; width: 95%"> const list = document.queryselector('.output ul'); list.innerhtml = ''; let greetings = ['happy birth
day!', 'merry christmas my love', 'a happy christmas to all the family', 'you\'re all i want for christmas', 'get well soon']; for (let i = 0; i < greetings.length; i++) { let input = greetings[i]; // your conditional test needs to go inside the parentheses // in the line below, replacing what's currently there if (greetings...
...addeventlistener('click', function() { if(solution.value === 'show solution') { textarea.value = solutionentry; solution.value = 'hide solution'; } else { textarea.value = userentry; solution.value = 'show solution'; } updatecode(); }); const jssolution = 'const list = document.queryselector(\'.output ul\');' + '\nlist.innerhtml = \'\';' + '\nlet greetings = [\'happy birth
day!\',' + '\n \'merry christmas my love\',' + '\n \'a happy christmas to all the family\',' + '\n \'you\\\'re all i want for christmas\',' + '\n \'get well soon\'];' + '\n' + '\nfor (let i = 0; i < greetings.length; i++) {' + '\n let input = greetings[i];' + '\n if (greetings[i].indexof(\'christmas\') !== -1) {' + '\n let result = ...
Multimedia: Images - Learn web development
other formats improve on jpeg's capabilities in regards to compression, but are not available on every browser: webp — created by google and nowa
days supported by all major browsers except safari.
... given the narrow support for jpeg-xr and jpeg2000, and also taking decode costs into the equation, the only serious contender for jpeg to
day is webp.
Introduction to client-side frameworks - Learn web development
javascript frameworks power much of the impressive software on the modern web – including many of the websites you likely use every
day.
...they don't bring brand-new powers to javascript; they give you easier access to javascript's powers so you can build for to
day's web.
Introduction to automated testing - Learn web development
previous overview: cross browser testing next manually running tests on several browsers and devices, several times per
day, can get tedious, and time-consuming.
... setting up node and npm most tools these
days are based on node.js, so you'll need to install it from nodejs.org: download the installer for your system from the above site.
Accessibility Features in Firefox
screen magnifier users can also benefit from firefox's powerful features to
day, as caret and focus tracking are fully enabled.
... here are a couple of success stories from businesses who contributed accessibility code because they needed an accessible web browser which supported their software: contributes accessible web applications (dhtml and ajax) ibm realized it needed a way to enable accessibility for ever more powerful web applications, beyond what you see on typical web pages to
day.
CSUN Firefox Materials
screen magnifier users can also benefit from firefox's powerful features to
day, as caret and focus tracking are fully enabled.
...here are a couple of success stories from businesses who contributed accessibility code because they needed an accessible web browser which supported their software: ibm contributes accessible web applications (dhtml and ajax) ibm realized it needed a way to enable accessibility for ever more powerful web applications, beyond what you see on typical web pages to
day.
What to do and what not to do in Bugzilla
if you need faster access to get canconfirm or editbugs, especially in order to triage bugs or to participate in a bug
day, then you can ask in #bmo on irc, or you may create a bug requesting permissions.
...as a result, bugs which are unconfirmed for more than a few
days do not qualify for the blocker severity.
Contributing to the Mozilla code base
step 4b: follow it up once you've asked for a review, a reviewer will often respond within a
day or two, reviewing the patch, or saying when they will be able to review it, perhaps due to a backlog.
...if they don't respond within a
day or two, you can ask for help on matrix in the #introduction:mozilla.org or #developers:mozilla.org channels, or contact mike hoye directly.
Performance best practices for Firefox front-end engineers
interruptible reflow since the early
days, gecko has had the notion of interruptible reflow.
...note that a significant number of the graphics team members are in the us eastern time zone (utc-5 or utc-4 during
daylight saving time), so let that information guide your timing when you ask questions in the gfx room .
Hacking with Bonsai
the process everyone who checks into the tree, joins a group called "the hook" at 8:00 am pst every week
day morning, the source tree is closed.
...these people, when they check in, will be "on the hook" for the next
day's build.
IME handling guide
this is a technical term from windows but these
days, this is used on other platforms as well.
...however, especially on mobile devices nowa
days, ime is also used for inputting latin languages like autocomplete.
Mozilla Content Localized in Your Language
and what is the order of year, month and
day?
... reference material can be find here calendar calendar view: which date is considered the first
day of the week, sun
day or mon
day?
Optimizing Applications For NSPR
one can only determine the immediate setting of
daylight savings time, not what it would be at some arbitrary time in the past or the future.
...the implementation is well suited for high performance application, such as a server, but clients may find the win-95 version more suited (and adequate) for interactive applications such as are prevalent on to
day's workstations.
Date and Time
clock/calendar time, used for human interfaces, represents time in the familiar year, month,
day, hour, minute, second components.
... pr_msec_per_sec pr_usec_per_sec pr_nsec_per_sec pr_usec_per_msec pr_nsec_per_msec types and constants types and constants defined for nspr dates and times are: prtime prtimeparameters prexplodedtime time parameter callback functions in some geographic locations, use of
daylight saving time (dst) and the rule for determining the dates on which dst starts and ends have changed a few times.
An overview of NSS Internals
a high-level overview to the internals of network security services (nss) software developed by the mozilla.org projects traditionally used its own implementation of security protocols and cryptographic algorithms, originally called netscape security services, nowa
days called network security services (nss).
...it was originally developed for telecommunication systems at times where it was critical to minimize data as much as possible (although it still makes sense to use that principle to
day for good performance).
Index
2 an overview of nss internals api, intermediate, intro, nss, tools a high-level overview to the internals of network security services (nss) software developed by the mozilla.org projects traditionally used its own implementation of security protocols and cryptographic algorithms, originally called netscape security services, nowa
days called network security services (nss).
...it was originally developed for telecommunication systems at times where it was critical to minimize data as much as possible (although it still makes sense to use that principle to
day for good performance).
NSS functions
er_asciitotime mxr 3.5 and later der_decodetimechoice mxr 3.9 and later der_encode mxr 3.4 and later der_encodetimechoice mxr 3.9 and later der_generalizedtimetotime mxr 3.2 and later der_getinteger mxr 3.2 and later der_generalized
daytoascii mxr 3.11.7 and later der_lengths mxr 3.2 and later der_timetoutctime mxr 3.2 and later der_timechoice
daytoascii mxr 3.11.7 and later der_timetogeneralizedtime mxr 3.11.7 and later der_timetogeneralizedtimearena mxr 3.11.7 and later ...
... der_utc
daytoascii mxr 3.2 and later der_utctimetoascii mxr 3.2 and later der_utctimetotime mxr 3.2 and later dsau_decodedersig mxr 3.2 and later dsau_decodedersigtolen mxr 3.9 and later dsau_encodedersig mxr 3.2 and later dsau_encodedersigwithlen mxr 3.9 and later hash_begin mxr 3.4 and later hash_clone mxr 3.10 and later hash_create mxr 3.4 and later hash_destroy mxr 3.4 and later hash_end mxr 3.4 and later hash_gethashobject mxr 3.2 and late...
Utility functions
er_asciitotime mxr 3.5 and later der_decodetimechoice mxr 3.9 and later der_encode mxr 3.4 and later der_encodetimechoice mxr 3.9 and later der_generalizedtimetotime mxr 3.2 and later der_getinteger mxr 3.2 and later der_generalized
daytoascii mxr 3.11.7 and later der_lengths mxr 3.2 and later der_timetoutctime mxr 3.2 and later der_timechoice
daytoascii mxr 3.11.7 and later der_timetogeneralizedtime mxr 3.11.7 and later der_timetogeneralizedtimearena mxr 3.11.7 and later ...
... der_utc
daytoascii mxr 3.2 and later der_utctimetoascii mxr 3.2 and later der_utctimetotime mxr 3.2 and later dsau_decodedersig mxr 3.2 and later dsau_decodedersigtolen mxr 3.9 and later dsau_encodedersig mxr 3.2 and later dsau_encodedersigwithlen mxr 3.9 and later hash_begin mxr 3.4 and later hash_clone mxr 3.10 and later hash_create mxr 3.4 and later hash_destroy mxr 3.4 and later hash_end mxr 3.4 and later hash_gethashobject mxr 3.2 and late...
Future directions
that means the code as it is to
day won't match this document, and that's ok.
...also, we will some
day want a more modern c++ api.
JS_NewDateObject
syntax jsobject * js_newdateobject(jscontext *cx, int year, int mon, int m
day, int hour, int min, int sec); name type description cx jscontext * the context in which to create the new date object.
... m
day int the
day of the month to set the new object to.
Handling Mozilla Security Bugs
the applicant's nomination for membership will then be considered for a period of a few
days, during which members of the security bug group can speak out in favor of or against the applicant.
... however, we will ask all individuals and organizations reporting security bugs through bugzilla to follow the voluntary guidelines below: before making a security bug world-readable, please provide a few
days notice to the mozilla security bug group by sending an email to the private security bug group mailing list.
History Service Design
visits are expired based on user preferences, there is an hard limit on the minimum number of
days that should be retained, visits in that range won't never expire.
... finally expiration can be forced by the user himself to clean up the full history or slices of it (last hour, last
day, ...).
nsICRLManager
inherits from: nsisupports last changed in gecko 1.7 method overview wstring computenextautoupdatetime(in nsicrlinfo info, in unsigned long autoupdatetype, in double noof
days); void deletecrl(in unsigned long crlindex); nsiarray getcrls(); void importcrl([array, size_is(length)] in octet data, in unsigned long length, in nsiuri uri, in unsigned long type, in boolean dosilentdownload, in wstring crlkey); void reschedulecrlautoupdate(); boolean updatecrlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( ...
... in nsicrlinfo info, in unsigned long autoupdatetype, in double noof
days ); parameters info autoupdatetype noof
days return value deletecrl() delete the crl.
Building a Thunderbird extension 6: Adding JavaScript
window.addeventlistener("load", function(e) { startup(); }, false); window.setinterval( function() { startup(); }, 60000); //update date every minute function startup() { var mypanel = document.getelementbyid("my-panel"); var date = new date(); var
day = date.get
day(); var datestring = date.getfullyear() + "." + (date.getmonth()+1) + "." + date.getdate(); mypanel.label = "date: " + datestring; } the first part registers a new event listener that will be executed automatically when thunderbird loads.
... we use the function window.setinterval to update the date in case thunderbird is left running for more than one
day.
HTMLElement.hidden - Web APIs
the welcome panel <div id="welcome" class="panel"> <h1>welcome to foobar.com!</h1> <p>by clicking "ok" you agree to be awesome every
day!</p> <button class="button" id="okbutton">ok</button> </div> this html creates a panel (in a <div> block) that welcomes the user to a site and tells them what they're agreeing to by clicking the ok button.
...the follow-up panel looks like this in html: <div id="awesome" class="panel" hidden> <h1>thanks!</h1> <p>thank you <strong>so</strong> much for agreeing to be awesome to
day!
HTMLImageElement.longDesc - Web APIs
consider the following older html: <img src="taco-tues
day.jpg" longdesc="image-descriptions/taco-tues
day.html"> here, the longdesc is used to indicate that the user should be able to access a detailed description of the image taco-tues
day.jpg in the html file image-descriptions/taco-tues
day.html.
... this can be easily converted into modern html: <a href="image-descriptions/taco-tues
day.html"> <img src="taco-tues
day.jpg"> </a> with that, the image is a link to the html file describing the image in more detail.
HTMLInputElement.stepUp() - Web APIs
input type default step value example step declaration date 1 (
day) 7
day (one week) increments: <input type="date" min="2019-12-25" step="7"> month 1 (month) 12 month (one year) increments: <input type="month" min="2019-12" step="12"> week 1 (week) two week increments: <input type="week" min="2019-w23" step="2"> time 60 (seconds) 900 second (15 minute) increments: <input type="time" min="09:00" ste...
...p="900"> datetime-local 1 (
day) same
day of the week: <input type="datetime-local" min="019-12-25t19:30" step="7"> number 1 0.1 increments <input type="number" min="0" step="0.1" max="10"> range 1 increments by 2: <input type="range" min="0" step="2" max="10"> the method, when invoked, changes the form control's value by the value given in the step attribute, multiplied by the parameter, within the constraints set on the form control.
HTMLInputElement.webkitdirectory - Web APIs
for example, consider this file system: photoalbums birth
days jamie's 1st birth
day pic1000.jpg pic1004.jpg pic1044.jpg don's 40th birth
day pic2343.jpg pic2344.jpg pic2355.jpg pic2356.jpg vacations mars pic5533.jpg pic5534.jpg pic5556.jpg pic5684.jpg pic5712.jpg i...
...the entry for pic2343.jpg will have a webkitrelativepath of photoalbums/birth
days/don's 40th birth
day/pic2343.jpg.
IDBDatabase: abort event - Web APIs
eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.addeventlistener('abort', () => { console.log('transaction aborted'); }); // open a read/write db transaction, ready for adding the data const transa...
...eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.onabort = () => { console.log('transaction aborted'); }; // open a read/write db transaction, ready for adding the data const transaction = db.transa...
IDBDatabase: close event - Web APIs
eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.addeventlistener('close', () => { console.log('database connection closed'); }); }; the same example, using the onclose property instead of addeventlis...
...eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.onclose = () => { console.log('database connection closed'); }; }; ...
IDBDatabase: error event - Web APIs
eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const db = dbopenrequest.result; db.addeventlistener('error', () => { console.log(`er...
...eeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const newitem = { tasktitle: 'my task', hours: 10, minutes: 10,
day: 10, month: 'january', year: 2020 }; const db = dbopenrequest.result; db.onerror = () => { console.log(`error adding new i...
IDBDatabase: versionchange event - Web APIs
deneeded = event => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.addeventlistener('success', event => { const db = event.target.result; db.addeventlistener('versionchange', event => { console.log('the version of this database has changed'); }); }); the same example, using the on...
...deneeded = event => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = event.target.result; db.onversionchange = event => { console.log('the version of this database has changed'); }; }; ...
IDBObjectStore - Web APIs
.innerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; }; // create a new item to add in to the object store var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: ...
...30,
day: 24, month: 'december', year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror = function(event) { note.innerhtml += '<li>transaction not opened due to error.
IDBOpenDBRequest: blocked event - Web APIs
() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { // let's try to open the same database with a higher revision version const req2 = indexeddb.open('todolist', 5); // in this case the onblocked handler will be executed req2.addeventlistener('...
...() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { // let's try to open the same database with a higher revision version const req2 = indexeddb.open('todolist', 5); // in this case the onblocked handler will be executed req2.onblocked = () => ...
IDBOpenDBRequest: upgradeneeded event - Web APIs
lt; console.log(`upgrading to version ${db.version}`); // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }); this is the same example, but uses the onupgradeneeded event handler property.
...lt; console.log(`upgrading to version ${db.version}`); // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; ...
IDBRequest: success event - Web APIs
() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; openrequest.addeventlistener('success', (event) => { console.log('database opened successfully!'); }); the same example, but using the onsuccess event handler property: // open the database const openrequest = window.indexeddb.open('t...
...() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; openrequest.onsuccess = (event) => { console.log('database opened successfully!'); }; ...
IDBTransaction: abort event - Web APIs
() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `abort` tr...
...() => { console.log('error creating database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what data items the objectstore will contain objectstore.createindex('hours', 'hours', { unique: false }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('
day', '
day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for adding the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `abort` tr...
Pointer events - Web APIs
much of to
day's web content assumes the user's pointing device will be a mouse.
... #target { touch-action: pan-x; } compatibility with mouse events although the pointer event interfaces enable applications to create enhanced user experiences on pointer enabled devices, the reality is the vast majority of to
day's web content is designed to only work with mouse input.
Using the slider role - Accessibility
in the example below, the slider is used to select a
day of the week.
... <label id="
day-label">
days</label> <div class="
day-slider"> <div id="
day-handle" class="
day-slider-handle" role="slider" aria-labelledby="
day-label" aria-valuemin="1" aria-valuemax="7" aria-valuenow="2" aria-valuetext="mon
day"> </div> </div> the code snippet below shows a function that responds to user input and updates the aria-valuenow and aria-valuetext attributes: var
daynames = ["sun
day", "mon
day", "tues
day", "wednes
day", "thurs
day", "fri
day", "satur
day"]; var updateslider = function (newvalue) { var handle = document.getelementbyid("
day-handle"); handle.setattribute("aria-valuenow", newvalue.tostring()); handle.setattribute("aria-valuetext",
daynames[newvalue]); }; working examples: slider example notes aria attributes used aria-va...
ARIA: grid role - Accessibility
examples calendar example html <table role="grid" aria-labelledby="calendarheader" aria-readonly=true> <caption id="calendarheader">september 2018</caption> <thead role="rowgroup"> <tr role="row"> <td></td> <th role="columnheader" aria-label="sun
day">s</th> <th role="columnheader" aria-label="mon
day">m</th> <th role="columnheader" aria-label="tues
day">t</th> <th role="columnheader" aria-label="wednes
day">w</th> <th role="columnheader" aria-label="thurs
day">t</th> <th role="columnheader" aria-label="fri
day">f</th> <th role="columnheader" aria-label="satur
day">s</th> </tr> </thead> <tbody role="rowgr...
...set.col); i--; } while (result == false); break; case "enter": alert(event.target.textcontent); break; } event.preventdefault(); }); html <table role="grid" aria-labelledby="calendarheader"> <caption id="calendarheader">september 2018</caption> <thead role="rowgroup"> <tr role="row"> <td></td> <th role="columnheader" aria-label="sun
day">s</th> <th role="columnheader" aria-label="mon
day">m</th> <th role="columnheader" aria-label="tues
day">t</th> <th role="columnheader" aria-label="wednes
day">w</th> <th role="columnheader" aria-label="thurs
day">t</th> <th role="columnheader" aria-label="fri
day">f</th> <th role="columnheader" aria-label="satur
day">s</th> </tr> </thead> <tbody role="rowgr...
prefers-color-scheme - CSS: Cascading Style Sheets
html <div class="
day">
day (initial)</div> <div class="
day light-scheme">
day (changes in light scheme)</div> <div class="
day dark-scheme">
day (changes in dark scheme)</div> <br> <div class="night">night (initial)</div> <div class="night light-scheme">night (changes in light scheme)</div> <div class="night dark-scheme">night (changes in dark scheme)</div> css .
day { background: #eee; color: black; } .night { back...
...ground: #333; color: white; } @media (prefers-color-scheme: dark) { .
day.dark-scheme { background: #333; color: white; } .night.dark-scheme { background: black; color: #ddd; } } @media (prefers-color-scheme: light) { .
day.light-scheme { background: white; color: #555; } .night.light-scheme { background: #eee; color: black; } } .
day, .night { display: inline-block; padding: 1em; width: 7em; height: 2em; vertical-align: middle; } result specifications specification status comment media queries level 5the definition of 'prefers-color-scheme' in that specification.
HTML attribute: step - HTML: Hypertext Markup Language
if not explicitly included, step defaults to 1 for number and range, and 1 unit type (minute, week, month,
day) for the date/time input types.
... default values for step input type value example date 1 (
day) <input type="date" min="2019-12-25" step="1"> month 1 (month) <input type="month" min="2019-12" step="12"> week 1 (week) <input type="week" min="2019-w23" step="2"> time 60 (seconds) <input type="time" min="09:00" step="900"> datetime-local 1 (
day) <input type="datetime-local" min="019-12-25t19:30" step="7"> number ...
<input type="time"> - HTML: Hypertext Markup Language
for example, specifying a min of 14:00 and a max of 2:00 means that the permitted time values start at 2:00 pm, run through midnight to the next
day, ending at 2:00 am.
...e the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativepicker.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the hours and minutes dynamically populatehours(); populateminutes(); } function populatehours() { // populate the hours <select> with the 6 open hours of the
day for(var i = 12; i <= 18; i++) { var option = document.createelement('option'); option.textcontent = i; hourselect.appendchild(option); } } function populateminutes() { // populate the minutes <select> with the 60 minutes of each hour for(var i = 0; i <= 59; i++) { var option = document.createelement('option'); option.textcontent = (i < 10) ?
<title>: The Document Title element - HTML: Hypertext Markup Language
example <title>menu - blue house chinese food - foodyum: online takeout to
day!</title> to help the user, update the page title value to reflect significant page state changes (such as form validation problems).
... example <title>2 errors - your order - blue house chinese food - foodyum: online takeout to
day!</title> mdn understanding wcag, guideline 2.4 explanations understanding success criterion 2.4.2 | w3c understanding wcag 2.0 specifications specification status comment html living standardthe definition of '<title>' in that specification.
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
result the result should be familiar to anyone who has used any of the more popular word processors available to
day.
... html <span class="underline">to
day's special</span> <br> chicken noodle soup with carrots css .underline { text-decoration: underline; } result presenting a book title book titles should be presented using the <cite> element instead of <u> or even <i>.
itemscope - HTML: Hypertext Markup Language
<div itemscope itemtype="http://schema.org/recipe"> <h2 itemprop="name">grandma's holi
day apple pie</h2> <img itemprop="image" src="https://udn.realityripple.com/samples/60/d063c361c1.jpg" width="50" height="50" /> <p> by <span itemprop="author" itemscope itemtype="http://schema.org/person"> <span itemprop="name">carol smith</span> </span> </p> <p> published: <time datetime="2009-11-05" itemprop="datepublished">november 5, 2009</time> </p> <span itemprop=...
... structured data itemscope itemtype recipe itemprop name grandma's holi
day apple pie itemprop image https://c1.staticflickr.com/1/30/42759561_8631e2f905_n.jpg itemprop datepublished 2009-11-05 itemprop description this is my grandmother's apple pie recipe.
HTML documentation index - HTML: Hypertext Markup Language
124 <input type="datetime-local"> date, date and time, element, form input, html, html forms, input, input element, input type, reference, time, datetime-local <input> elements of type datetime-local create input controls that let the user easily enter both a date and a time, including the year, month, and
day as well as the time in hours and minutes.
... 236 quirks mode and standards mode gecko, guide, html, needsupdate, web development, web standards, xhtml in the old
days of the web, pages were typically written in two versions: one for netscape navigator, and one for microsoft internet explorer.
Quirks Mode and Standards Mode - HTML: Hypertext Markup Language
in the old
days of the web, pages were typically written in two versions: one for netscape navigator, and one for microsoft internet explorer.
...earlier versions of the html standard recommended other variants, but all existing browsers to
day will use full standards mode for this doctype, even the dated internet explorer 6.
Identifying resources on the Web - HTTP
in the early
days of the web, a path like this represented a physical file location on the web server.
... nowa
days, it is mostly an abstraction handled by web servers without any physical reality.
Date - HTTP
note that date is listed in the forbidden header names in the fetch spec - so this code will not send date header: fetch('https://httpbin.org/get', { 'headers': { 'date': (new date()).toutcstring() } }) header type general header forbidden header name yes syntax date: <
day-name>, <
day> <month> <year> <hour>:<minute>:<second> gmt directives <
day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
... <
day> 2 digit
day number, e.g.
If-Modified-Since - HTTP
header type request header forbidden header name no syntax if-modified-since: <
day-name>, <
day> <month> <year> <hour>:<minute>:<second> gmt directives <
day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
... <
day> 2 digit
day number, e.g.
If-Unmodified-Since - HTTP
header type request header forbidden header name no syntax if-unmodified-since: <
day-name>, <
day> <month> <year> <hour>:<minute>:<second> gmt directives <
day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
... <
day> 2 digit
day number, e.g.
Last-Modified - HTTP
header type response header forbidden header name no cors-safelisted response header yes syntax last-modified: <
day-name>, <
day> <month> <year> <hour>:<minute>:<second> gmt directives <
day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
... <
day> 2 digit
day number, e.g.
Text formatting - JavaScript
(the result is different in another time zone.) const msper
day = 24 * 60 * 60 * 1000; // july 17, 2014 00:00:00 utc.
... const july172014 = new date(msper
day * (44 * 365 + 11 + 197)); const options = { year: '2-digit', month: '2-digit',
day: '2-digit', hour: '2-digit', minute: '2-digit', timezonename: 'short' }; const americandatetime = new intl.datetimeformat('en-us', options).format; console.log(americandatetime(july172014)); // 07/16/14, 5:00 pm pdt number formatting the numberformat object is useful for formatting numbers, for example currencies.
Date.UTC() - JavaScript
syntax since ecmascript 2017: date.utc(year[, month[,
day[, hour[, minute[, second[, millisecond]]]]]]) ecmascript 2016 and earlier: (month used to be required) date.utc(year, month[,
day[, hour[, minute[, second[, millisecond]]]]]) parameters year a full year.
...as of es2017, it no longer is.)
day optional an integer between 1 and 31 representing the
day of the month.
Date.prototype.getTimezoneOffset() - JavaScript
if the host system is configured for
daylight saving, the offset will change depending on the date and time that the date represents and that
daylight saving applies.
... examples using gettimezoneoffset() // get current timezone offset for host device let x = new date(); let currenttimezoneoffsetinhours = x.gettimezoneoffset() / 60; // 1 // get timezone offset for international labour
day (may 1) in 2016 // be careful, the date() constructor uses 0-indexed months, so may is // represented with 4 (and not 5) let labour
day = new date(2016, 4, 1) let labour
dayoffset = labour
day.gettimezoneoffset() / 60; specifications specification ecmascript (ecma-262)the definition of 'date.prototype.gettimezoneoffset' in that specification.
Date.prototype.setFullYear() - JavaScript
an integer between 1 and 31 representing the
day of the month.
... examples using setfullyear() var thebig
day = new date(); thebig
day.setfullyear(1997); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.setfullyear' in that specification.
Date.prototype.toDateString() - JavaScript
the todatestring() method returns the date portion of a date object in english in the following format separated by spaces: first three letters of the week
day name first three letters of the month name two digit
day of the month, padded on the left a zero if necessary four digit year (at least), padded on the left with zeros if necessary e.g.
...in spidermonkey, this consists of the date portion (
day, month, and year) followed by the time portion (hours, minutes, seconds, and time zone).
Intl.DateTimeFormat.prototype.format() - JavaScript
examples using format use the format getter function for formatting a single date, here for serbia: var options = { week
day: 'long', year: 'numeric', month: 'long',
day: 'numeric' }; var datetimeformat = new intl.datetimeformat('sr-rs', options); console.log(datetimeformat.format(new date())); // → "недеља, 7.
... for this reason you cannot expect to be able to compare the results of format() to a static value: let d = new date("2019-01-01t00:00:00.000000z"); let formatteddate = intl.datetimeformat(undefined, { year: 'numeric', month: 'numeric',
day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric' }).format(d); "1.1.2019, 01:00:00" === formatteddate; // true in firefox and others // false in ie and edge note: see also this stackoverflow thread for more details and examples.
Intl.RelativeTimeFormat.prototype.formatToParts() - JavaScript
possible values are: "year", "quarter", "month", "week", "
day", "hour", "minute", "second".
... examples using formattoparts const rtf = new intl.relativetimeformat("en", { numeric: "auto" }); // format relative time using the
day unit rtf.formattoparts(-1, "
day"); // > [{ type: "literal", value: "yester
day"}] rtf.formattoparts(100, "
day"); // > [{ type: "literal", value: "in " }, // > { type: "integer", value: "100", unit: "
day" }, // > { type: "literal", value: "
days" }] specifications specification status comment ecmascript internationalization api (ecma-402)the definition of 'relativetimef...
Number - JavaScript
there is no separate integer type in common every
day use.
... (javascript now has a bigint type, but it was not designed to replace number for every
day uses.
Digital video concepts - Web media technologies
the name "yuv" is generally used to
day to describe this color system, even though the term was originally used specifically for analog coding of color, while ycbcr was used for digital color.
... however, to
day both terms are used for digital color.
Graphic design for responsive sites - Progressive web apps (PWAs)
but to
day it is very much a reality.
...this is why we have included an entire docs section covering each of these topics (the one you are currently in, and app layout.) in addition, these
days there are so many more technologies to choose from than your humble bmps, jpgs, gifs and pngs.
Cross-domain Content Scripts - Archive of obsolete content
pageworker.on("message", function(message) { console.log(message); }); the "page.html" file embeds an iframe whose content is served from "http://en.m.wikipedia.org/": <!doctype html> <!-- page.html --> <html> <head></head> <body> <iframe id="wikipedia" src="http://en.m.wikipedia.org/"></iframe> </body> </html> the "page-script.js" file locates "to
day's featured article" and sends its content to "main.js": // page-script.js var iframe = window.document.getelementbyid("wikipedia"); var to
daysfeaturedarticle = iframe.contentwindow.document.getelementbyid("mp-tfa"); self.postmessage(to
daysfeaturedarticle.textcontent); for this to work, we need to add the "cross-domain-content" key to "package.json": "permissions": { "cross-domain-content": ...
simple-storage - Archive of obsolete content
to store a value, just assign it to a property on storage: var ss = require("sdk/simple-storage"); ss.storage.myarray = [1, 1, 2, 3, 5, 8, 13]; ss.storage.myboolean = true; ss.storage.mynull = null; ss.storage.mynumber = 3.1337; ss.storage.myobject = { a: "foo", b: { c: true }, d: null }; ss.storage.mystring = "o frabjous
day!"; you can store array, boolean, number, object, null, and string values.
lang/functional - Archive of obsolete content
let { chain } = require("sdk/lang/functional"); function person (age) { this.age = age; } person.prototype.happybirth
day = chain(function () this.age++); let person = new person(30); person .happybirth
day() .happybirth
day() .happybirth
day() console.log(person.age); // 33 parameters fn : function the function that will be wrapped by the chain function.
Properties - Archive of obsolete content
note that due to branching (different versions of gecko with different feature sets might be built on the same
day), using this property to "detect" the application version may produce false results.
Attribute (XUL) - Archive of obsolete content
omindex customizable cycler datasources decimalplaces default defaultbutton defaultset description dir disableautocomplete disableautoselect disableclose disabled disablehistory disablekeynavigation disablesecurity dlgtype dragging editable editortype element empty emptytext deprecated since gecko 2 enablecolumndrag enablehistory equalsize eventnode events expr first
dayofweek firstpage first-tab fixed flags flex focused forcecomplete grippyhidden grippytooltiptext group handlectrltab height helpuri hidden hidechrome hidecolumnpicker hideheader hideseconds hidespinbuttons highlightnonmatches homepage href icon id ignoreblurwhilesearching ignorecase ignoreincolumnpicker ignorekeys image inactivetitlebarcolor increment index input...
Application Update - Archive of obsolete content
//pref("app.update.url.override", ""); // interval: time between checks for a new version (in seconds) // default=1
day pref("app.update.interval", 86400); // interval: time before prompting the user to download a new version that // is available (in seconds) default=1
day pref("app.update.nagtimer.download", 86400); // interval: time before prompting the user to restart to install the latest // download (in seconds) default=30 minutes pref("app.update.nagtimer.restart", 1800); // interval: ...
Format - Archive of obsolete content
summary: mozilla.dev.planning - july 17-23, 2006 announcements firefox 2/gecko 1.8.1 bug approvals starting on fri
day july 21 at 10:00a pdt the release triage team will no longer be accepting bugs unless they meet one of the posted criteria.
2006-11-10 - Archive of obsolete content
important dates: technical submissions: mon
day 19th feb 2007 technical paper notification: fri
day 16th march 2007 communication submissions: mon
day 26th march 2007 communication paper notification: fri
day 06th april 2007 all camera ready due: mon
day 16th april 2007 conference dates: mon
day 07th and tues
day 08th may 2007 notable keynotes representatives from w3c, ibm, university of manchester, uk and oxford brookes university, uk.
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - october 13 - october 20, 2006 announcements inter-operability test
day on tues
day october 17 interoperability testing on tues
day, for calendar applications test on how sunbird works with published calendars that were generated.
2006-11-03 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - october 27 - november 3, 2006 announcements test
day results the calendar qa team had a successful test
day on tues
day discussions storage format for events storage format of timestamps in lightning.
2006-11-10 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - november 3 - november 10, 2006 announcements calendar-qa team announces november 14th test
day calendar-qa team celebrate some new functionality of calendar.
Plugins - Archive of obsolete content
xembed extension for mozilla plugins recent versions of mozilla on *nix-based systems include an extension for writing plugins that use xembed instead of using the old xt-based main loop that most plugins have been using since the netscape 3.x
days.
Vulnerabilities - Archive of obsolete content
the arp protocol was standardized over 25 years ago, and threats have changed a great deal since then, so the trust assumptions inherent in its design then are unlikely to still be reasonable to
day.
New in JavaScript 1.3 - Archive of obsolete content
changed functionality in javascript 1.3 changes to date to conform with ecma-262 new constructor date(year, month,
day, [,hours [, minutes [, seconds [, milliseconds ]]]]) additional method parameters: setmonth(month[, date]) sethours(hours[, min[, sec[, ms]]]) setminutes(min[, sec[, ms]]) setseconds(sec[, ms]) the length of an array (property length) is now an unsigned, 32-bit integer.
Organizing your CSS - Learn web development
t classes applied: <div class="media comment"> <img /> <div class="content"></div> </div> the list-item would have media and list-item applied: <ul> <li class="media list-item"> <img /> <div class="content"></div> </li> </ul> the work that nicole sullivan did in describing this approach and promoting it means that even people who are not strictly following an oocss approach to
day will generally be reusing css in this way — it has entered our understanding as a good way to approach things in general.
Styling links - Learn web development
ou should be able to focus on the links on this page with the keyboard by pressing the tab key (on mac, you'll need to use option + tab, or enable the full keyboard access: all controls option by pressing ctrl + f7.) active links are red (try holding down the mouse button on the link as you click it.) interestingly enough, these default styles are nearly the same as they were back in the early
days of browsers in the mid-1990s.
Tools and testing - Learn web development
this module gives you some fundamental background knowledge about how client-side frameworks work and how they fit into your toolset, before moving on to tutorial series covering some of to
day's most popular ones.
Information for users
since this is a worldwide effort, there is always a good chance to find someone to chat with there,
day or night.
Theme concepts
for example, the following code, from the dynamic theme example defines the content for the
day and night elements of the dynamic theme: const themes = { '
day': { images: { theme_frame: 'sun.jpg', }, colors: { frame: '#cf723f', tab_background_text: '#111', } }, 'night': { images: { theme_frame: 'moon.jpg', }, colors: { frame: '#000', tab_background_text: '#fff', } } }; the theme.theme object is then passed to theme.upda...
Building SpiderMonkey with UBSan
this enables all the cheap undefined behavior checks other than: alignment, which hits known bugs in spidermonkey, and is more implementation-defined (slow on x86 / crash on arm) than undefined behavior float-cast-overflow, which hits known bugs in spidermonkey, and isn't exploited by to
day's compilers float-divide-by-zero, which jesse doesn't think is actually undefined behavior (aside from the question of whether cpu overflow flags are set) vptr, a check that requires rtti, which is disabled by default in spidermonkey 4.
Cookies Preferences in Mozilla
cookies) 2 = block all cookies by default 3 = use p3p settings (note: this is only applicable to older mozilla suite and seamonkey versions.) 4 = storage access policy: block cookies from trackers network.cookie.lifetimepolicy default value: 0 0 = accept cookies normally 1 = prompt for each cookie (prompting was removed in firefox 44) 2 = accept for current session only 3 = accept for n
days network.cookie.lifetime.
days default value: 90 only used if network.cookie.lifetimepolicy is set to 3 sets the number of
days that the lifetime of cookies should be limited to.
Eclipse CDT
keeping the index up-to-date as the source changes from
day-to-
day, you'll want to update the index to keep the code assistance working well.
Eclipse CDT Manual Setup
for now it's stored here until that integration happens in order that the eclipse cdt page isn't hugely cluttered with mostly redundant information, make setting up eclipse look much more complicated than it is nowa
days.
Firefox UI considerations for web developers
usa to
day the only icon provided by usa to
day is its classic favicon: <link rel="shortcut icon" href="https://www.gannett-cdn.com/sites/usato
day/images/favicon.png"> since no rich icon is available, firefox creates a screenshot of the home page rendered 560 pixels wide.
Embedding the editor
composer embedded in a xul application developers need to embed composer widgets in their xul applications, by using the <editor> tag as we do to
day.
Getting Started with Chat
mozilla's channels are most active between 9am and 7pm pst mon
day to fri
day, excluding us holi
days.
How to get a stacktrace with WinDbg
(again, press enter after each command.) ~* kp !analyze -v -f lm after these steps are completed, find the file c:\temp\firefox-debug-(to
day's date).txt on your hard drive.
Localization content best practices
date and time formats for example, you shouldn't hard code date formats into applications: %a, %b %e // resulting in wednes
day, may 20 this is fine in english, but in italian results in "mercoledì, mag 20", which sounds unnatural.
Localizing with Mozilla Translator
mt could be changed for a mt product to have a list of ''root'' directories instead of just one, and maybe some
day it will do, but it will probably won't happen before seamonkey 1.1.x dies (and seamonkey 2.0 finally conquers the web, if i may add).
Mozilla DOM Hacking Guide
"what do you want to code to
day?" ;-) all the dom classes are listed in an enum defined in nsidomclassinfo.h, nsdomclassinfoid.
Mozilla Port Blocking
enabling ports user_pref("network.security.ports.banned.override, "port1,port2"); disabling ports user_pref("network.security.ports.banned", "port3,port4"); blocked ports ports blocked by default in mozilla: port service 1 tcpmux 7 echo 9 discard 11 systat 13
daytime 15 netstat 17 qotd 19 chargen 20 ftp data 21 ftp control 22 ssh 23 telnet 25 smtp 37 time 42 name 43 nicname 53 domain 77 priv-rjs 79 finger 87 ttylink 95 supdup 101 hostriame 102 ...
Gecko Profiler FAQ
what you *don’t* want to do is writing a micro-benchmark that call malloc/free in a loop and the like and call it a
day!
Midas
by default (at least to
day), this is true.
About NSPR
to
day nspr may still be appropriate as the platform dependent layer under java, but its primary application is supporting clients written entirely in c or c++.
NSPR Contributor Guide
it must be your own invention, free and clear of encumberment of anyone or anything else; pay close attention to the rights of your "
day-job" employer.
Interval Timing
conceptually, they are based on free-running counters that increment at a fixed rate without possibility of outside influence (as might be observed if one was using a time-of-
day clock that gets reset due to some administrative action).
PRIntervalTime
waiting on events more than half a
day in the future must therefore be based on a calendar time.
NSPR release process
the build+test cycles of the nss tinderboxes are very long, so you usually need to wait half a
day for them to cycle through.
NSS_3.12_release_notes.html
(174) bug 396045: warning: usage of uninitialized variable in ckfw/mechanism.c(719) bug 401986: mac os x leopard build failure in legacydb bug 325805: diff considers mozilla/security/nss/cmd/pk11util/scripts/pkey a binary file bug 385151: remove the link time dependency from nss to softoken bug 387892: add entrust root ca certificate(s) to nss bug 433386: when system clock is off by more than two
days, oscp check fails, can result in crash if user tries to view certificate [[@ secitem_compareitem_util] [[@ memcmp] bug 396256: certutil and pp do not print all the generalnames in a crldp extension bug 398019: correct confusing and erroneous comments in der_asciitotime bug 422866: vfychain -pp command crashes in nss_shutdown bug 345779: useless assignment statements in ec_gf2m_pt_mul_mont bug 34...
sslfnc.html
(a step-down key is needed when the server's public key is stronger than is allowed for export ciphers.) in this case, if the server is expected to continue running for a long time, you should call this function periodically (once a
day, for example) to generate a new step-down key.
SpiderMonkey Build Documentation
developer (debug) build for developing and debugging spidermonkey itself, it is best to have both a debug build (for every
day debugging) and an optimized build (for performance testing), in separate build directories.
Index
that means the code as it is to
day won't match this document, and that's ok.
SpiderMonkey Internals
jslong.cpp, jslong.h 64-bit integer emulation, and compatible macros that use intrinsic c types, like long long, on platforms where they exist (most everywhere, these
days).
Running Automated JavaScript Tests
developers will often want to use the -d option: jstests.py -d path_to_js_shell the -d option skips tests that are marked as randomly failing; random failures are usually just noise when being run for
day-to-
day developer testing.
Redis Tips
talk to your doctor to
day to find out whether zsets might be right for you.
Secure Development Guidelines
buffer bounds validations (bbv) thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest "foo" someone some
day shall type "supercalifragilisticexpialidocious".
AT Development
introduction software accessibility: where are we to
day?
Mozilla internal string guide
nowa
days, all supported platforms have 16-bit literals using u""_ns, so we longer need to rely on macros for portability.
nsIAbCard
string workcity astring workstate astring workzipcode astring workcountry astring jobtitle astring department astring company astring aimscreenname astring anniversaryyear astring anniversarymonth astring anniversary
day astring spousename astring familyname astring defaultaddress astring category astring webpage1 astring used for the contact's work web page webpage2 astring used for the contact's home web page birthyear astring birthmonth astring birth
day astring...
nsIAccessibleProvider
this property is used for upload, input[type="xsd:g
day"] and input[type="xsd:gmonth"] xformslabel 0x00002001 used for label element.
nsIEffectiveTLDService
to use this service, use: var etldservice = components.classes["@mozilla.org/network/effective-tld-service;1"] .getservice(components.interfaces.nsieffectivetldservice); the name "effective tld service" is a historical one; to
day, the items this interface manipulates are called public suffixes, and the list of them is the public suffix list, or psl.
nsIFaviconService
this function will not save favicons for non-bookmarked urls when history is disabled (expiration time is 0
days).
nsIIdleService
gecko 1.9.2 note starting in gecko 1.9.2, there is a once a
day notification sent out if the user remains idle for an extended period: 'idle-daily'.
nsIMsgSearchTerm
ring astring, in string charset, in boolean charsetoverride); matchrfc2047string boolean matchrfc2047string(in string astring, in string charset, in boolean charsetoverride); matchdate boolean matchdate(in prtime atime); matchstatus boolean matchstatus(in unsigned long astatus); matchpriority boolean matchpriority(in nsmsgpriorityvalue priority); matchage boolean matchage(in prtime
days); matchsize boolean matchsize(in unsigned long size); matchlabel boolean matchlabel(in nsmsglabelvalue alabelvalue); matchjunkstatus boolean matchjunkstatus(in string ajunkscore); matchjunkpercent /* * test search term match for junkpercent * * @param ajunkpercent junkpercent for message (0-100, 100 is junk) * @return true if matches */ boolean matchjunkpercent(i...
nsIMsgSearchValue
attribute astring str; attribute nsmsgpriorityvalue priority; attribute prtime date; // see nsmsgmessageflags.idl and nsmsgfolderflags.idl attribute unsigned long status; attribute unsigned long size; attribute nsmsgkey msgkey; attribute long age; // in
days attribute nsimsgfolder folder; attribute nsmsglabelvalue label; attribute nsmsgjunkstatus junkstatus; /* * junkpercent is set by the message filter plugin, and is approximately * proportional to the probability that a message is junk.
nsIUpdateTimerManager
toolkit/mozapps/update/nsiupdatetimermanager.idlscriptable this interface provides a global application service that provides support for long-duration timers (on the order of many
days, weeks, or even months).
nsMsgSearchAttrib
e msgstatus = 5; const nsmsgsearchattribvalue to = 6; const nsmsgsearchattribvalue cc = 7; const nsmsgsearchattribvalue toorcc = 8; const nsmsgsearchattribvalue alladdresses = 9; const nsmsgsearchattribvalue location = 10; /* result list only */ const nsmsgsearchattribvalue messagekey = 11; /* message result elems */ const nsmsgsearchattribvalue agein
days = 12; const nsmsgsearchattribvalue folderinfo = 13; /* for "view thread context" from result */ const nsmsgsearchattribvalue size = 14; const nsmsgsearchattribvalue anytext = 15; const nsmsgsearchattribvalue keywords = 16; // keywords are the internal representation of tags.
nsMsgSearchTerm
%{c++ #define is_string_attribute(_a) \ (!(_a == nsmsgsearchattrib::priority || _a == nsmsgsearchattrib::date || \ _a == nsmsgsearchattrib::msgstatus || _a == nsmsgsearchattrib::messagekey || \ _a == nsmsgsearchattrib::size || _a == nsmsgsearchattrib::agein
days || \ _a == nsmsgsearchattrib::folderinfo || _a == nsmsgsearchattrib::location || \ _a == nsmsgsearchattrib::label || _a == nsmsgsearchattrib::junkstatus || \ _a == nsmsgsearchattrib::folderflag || _a == nsmsgsearchattrib::uint32hdrproperty || \ _a == nsmsgsearchattrib::junkpercent || _a == nsmsgsearchattrib::hasattachmentstatus)) %} ...
nsMsgSearchValue
h/ public/ nsmsgsearchcore.idl use this to specify the value of a search term [ptr] native nsmsgsearchvalue(nsmsgsearchvalue); %{c++ typedef struct nsmsgsearchvalue { nsmsgsearchattribvalue attribute; union { nsmsgpriorityvalue priority; prtime date; pruint32 msgstatus; /* see msg_flag in msgcom.h */ pruint32 size; nsmsgkey key; print32 age; /* in
days */ nsimsgfolder *folder; nsmsglabelvalue label; pruint32 junkstatus; pruint32 junkpercent; } u; char *string; } nsmsgsearchvalue; ...
nsMsgSearchWidgetValue
earch dialog box typedef long nsmsgsearchwidgetvalue; /* fes use this to help build the search dialog box */ [scriptable,uuid(903dd2e8-304e-11d3-92e6-00a0c900d445)] interface nsmsgsearchwidget { const nsmsgsearchwidgetvalue text = 0; const nsmsgsearchwidgetvalue date = 1; const nsmsgsearchwidgetvalue menu = 2; const nsmsgsearchwidgetvalue int = 3; /* added to account for age in
days which requires an integer field */ const nsmsgsearchwidgetvalue none = 4; }; ...
XPCOM primitive
(however, if you are designing that kind of api to
day, you should probably use nsivariant instead.) idl data type interface component idl nsidptr nsisupportsid @mozilla.org/supports-id;1 [scriptable, uuid(d18290a0-4a1c-11d3-9890-006008962422)] interface nsisupportsid : nsisupportsprimitive { attribute nsidptr data; string tostring(); }; astring nsisupportsstring @mozilla.org/supports-string;1 [scriptable, uuid(d79dc970-4a1c-11d3-9890-...
nsIMsgSearchValue
attribute astring str; attribute nsmsgpriorityvalue priority; attribute prtime date; // see nsmsgmessageflags.idl and nsmsgfolderflags.idl attribute unsigned long status; attribute unsigned long size; attribute nsmsgkey msgkey; attribute long age; // in
days attribute nsimsgfolder folder; attribute nsmsglabelvalue label; attribute nsmsgjunkstatus junkstatus; /* * junkpercent is set by the message filter plugin, and is approximately * proportional to the probability that a message is junk.
nsIAbCard/Thunderbird3
same as home, but with `work' instead of `home' other contact: faxnumber, faxnumbertype pagernumber, pagernumbertype cellularnumber, cellularnumbertype jobtitle, department, company _aimscreenname dates: anniversaryyear, anniversarymonth, anniversary
day birthyear, birthmonth, birth
day webpage1 (work), webpage2 (home) custom1, custom2, custom3, custom4 notes integral properties: lastmodifieddate popularityindex prefermailformat (see nsiabprefermailformat) boolean properties: allowremotecontent inherits from: nsiabitem method overview nsivariant getproperty(in autf8string name, in nsivariant...
xptcall FAQ
this all works and is being used in mozilla to
day on numerous platforms.
Xptcall Porting Status
i am doing the porting work with egcs-1.1.2 on netbsd 1.4p (netbsd-current snapshot from a couple of
days ago).
Gloda examples
l messages having any (or several) of all tags defined in tb let query = gloda.newquery(gloda.noun_message); let tagarray = mailservices.tags.getalltags({}); query.tags(...tagarray); let collection = query.getcollection(mylistener); search messages by daterange searches for all messages within a date range id_q=gloda.newquery(gloda.noun_message); // define a date range form yester
day to now id_q.daterange([new date() - 86400000, new date()]); var mylistener = { /* called when new items are returned by the database query or freshly indexed */ onitemsadded: function _onitemsadded(aitems, acollection) { }, /* called when items that are already in our collection get re-indexed */ onitemsmodified: function _onitemsmodified(aitems, acollection) { }, /* c...
Using popup notifications
tils.import('resource://gre/modules/popupnotifications.jsm'); var notify = new popupnotifications(gbrowser, document.getelementbyid("notification-popup"), document.getelementbyid("notification-popup-box")); var notification = notify.show( // browser gbrowser.selectedbrowser, // popup id "pdes-popup", // message "hi, there!, i'm gonna show you something to
day!!", // anchor id null, // main action { label: "click here", accesskey: "d", callback: function() { // you can call your function here } }, // secondary action null, // options { // alternative way to set the popup icon popupiconurl: "chrome://popupnotifications/skin/mozlogo.png" } ); settimeout(function(){ notification.remove(); }, 900); // time in milliseconds to di...
Declaring types
{ fieldn: typen } ] example for example, to support the c tm structure using js-ctypes, you would use the following code: const struct_tm = new ctypes.structtype("tm", [ { "tm_sec": ctypes.int }, { "tm_min": ctypes.int }, { "tm_hour": ctypes.int }, { "tm_m
day": ctypes.int }, { "tm_mon": ctypes.int }, { "tm_year": ctypes.int }, { "tm_w
day": ctypes.int }, { "tm_y
day": ctypes.int }, { "tm_isdst": ctypes.int } ]); to find other types see here: predefined types - primitive types.
Mozilla
symbols are available for at least 30 previous
days worth of nightly builds, and firefox releases from 2.0.0.4.
CanvasRenderingContext2D - Web APIs
the methods listed below remain for historical and compatibility reasons as svgmatrix objects are used in most parts of the api nowa
days and will be used in the future instead.
Document.lastModified - Web APIs
alert(document.lastmodified); // returns: tues
day, december 16, 2017 11:09:42 transforming lastmodified into a date object this example transforms lastmodified into a date object.
FileError - Web APIs
a web app could fail for various reasons, so you don't want to spend the rest of your
day guessing what's going on and going through maddening troubleshooting.
HTMLInputElement.stepDown() - Web APIs
<!-- decrements by intervals of 900 seconds (15 minute) --> <input type="time" max="17:00" step="900"> <!-- decrements by intervals of 7
days (one week) --> <input type="date" max="2019-12-25" step="7"> <!-- decrements by intervals of 12 months (one year) --> <input type="month" max="2019-12" step="12"> the method, when invoked, changes the form control's value by the value given in the step attribute, multiplied by the parameter, within the constraints set within the form control.
In depth: Microtasks and the JavaScript runtime environment - Web APIs
when multiple programs and multiple code objects within those programs start to try to work at once, alongside a browser which also needs processor time—let alone time to render and draw the site and its own ui, handle user events, and so forth—everything becomes clogged up far too easily nowa
days.
IDBDatabase.createObjectStore() - Web APIs
.innerhtml += "<li>error loading database.</li>"; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += "<li>object store created.</li>"; }; specification specification status comment indexed database api 2.0the definition of 'cr...
IDBDatabase.onabort - Web APIs
nnerhtml += '<li>database opening aborted!</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; }; specifications specification status comment indexed database api 2.0the definition of 'on...
IDBDatabase.onerror - Web APIs
nnerhtml += '<li>database opening aborted!</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; }; specifications specification status comment indexed database api 2.0the definition of 'on...
IDBDatabase.onversionchange - Web APIs
nnerhtml += '<li>database opening aborted!</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; db.onversionchange = function(event) { note.innerhtml += '<li>a database change has occurred; you should refres...
IDBDatabase - Web APIs
.</li>'; }; // create an objectstore for this database using // idbdatabase.createobjectstore var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; }; this next line opens up a transaction on the database, then opens an object store that we can then manipulate the ...
IDBObjectStore.add() - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror =...
IDBObjectStore.autoIncrement - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror =...
IDBObjectStore.createIndex() - Web APIs
nerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); }; specifications specification status comment indexed database api 2.0the definition of 'createindex()' in that specification.
IDBObjectStore.deleteIndex() - Web APIs
nerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); objectstore.deleteindex("seconds"); objectstore.deleteindex("contact"); }; specifications specification status comment indexed database api 2.
IDBObjectStore.getKey() - Web APIs
example let openrequest = indexeddb.open("telemetry"); openrequest.onsuccess = (event) => { let db = event.target.result; let store = db.transaction("netlogs").objectstore("netlogs"); let to
day = new date(); let yester
day = new date(to
day); yester
day.setdate(to
day.getdate() - 1); let request = store.getkey(idbkeyrange(yester
day, to
day)); request.onsuccess = (event) => { let when = event.target.result; alert("the 1st activity in last 24 hours was occurred at " + when); }; }; specifications specification status comment indexed database api draft...
IDBObjectStore.indexNames - Web APIs
// this is used a lot below db = this.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror ...
IDBObjectStore.keyPath - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror =...
IDBObjectStore.name - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror =...
IDBObjectStore.transaction - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of the transaction completing, when everything is done transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed.</li>'; }; transaction.onerror =...
IDBOpenDBRequest - Web APIs
nerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will contain objectstore.createindex("hours", "hours", { unique: false }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("
day", "
day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); }; specifications specification status comment indexed database api 2.0the definition of 'idbopendbrequest' in that specification.
IDBTransaction.abort() - Web APIs
this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.oner...
IDBTransaction.db - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerr...
IDBTransaction.error - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.oner...
IDBTransaction.mode - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerr...
IDBTransaction.objectStore() - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerr...
IDBTransaction.onabort - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerr...
IDBTransaction.oncomplete - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerr...
IDBTransaction.onerror - Web APIs
// this is used a lot below db = dbopenrequest.result; // run the adddata() function to add the data to the database adddata(); }; function adddata() { // create a new object ready for being inserted into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready for adding the data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.oner...
IDBTransaction - Web APIs
this is used a lot below db = dbopenrequest.result; // add the data to the database adddata(); }; function adddata() { // create a new object to insert into the idb var newitem = [ { tasktitle: "walk dog", hours: 19, minutes: 30,
day: 24, month: "december", year: 2013, notified: "no" } ]; // open a read/write db transaction, ready to add data var transaction = db.transaction(["todolist"], "readwrite"); // report on the success of opening the transaction transaction.oncomplete = function(event) { note.innerhtml += '<li>transaction completed: database modification finished.</li>'; }; transaction.onerror = fu...
PaymentRequest: shippingoptionchange event - Web APIs
for example, if there are three options (such as "free ground shipping", "2-
day air", and "next
day"), each time the user chooses one of those options, this event handler is called to recalculate the total based on the changed shipping option.
Using DTMF with WebRTC - Web APIs
this article offers a brief high-level overview of how dtmf works over webrtc, then provides a guide for every
day developers about how to send dtmf over an rtcpeerconnection.
Specificity - CSS: Cascading Style Sheets
/stackoverflow.com/questions/3706819/what-are-the-implications-of-using-important-in-css https://stackoverflow.com/questions/9245353/what-does-important-in-css-mean https://stackoverflow.com/questions/5701149/when-to-use-important-property-in-css https://stackoverflow.com/questions/11178673/how-to-override-important https://stackoverflow.com/questions/2042497/when-to-use-important-to-save-the-
day-when-working-with-css the :is() and :not() exceptions the matches-any pseudo-class :is() and the negation pseudo-class :not() are not considered a pseudo-class in the specificity calculation.
Ajax - Developer guides
although x in ajax stands for xml, json is used more than xml nowa
days because of its many advantages such as being lighter and a part of javascript.
Constraint validation - Developer guides
valuemissing constraint violation step date an integer number of
days unless the step is set to the any literal, the value must be min + an integral multiple of the step.
Mobile-friendliness - Developer guides
goal #1 (presentation) “make websites that work well on a variety of screen sizes.” these
days, users can access the web on devices in a wide range of form factors, including phones, tablets, and ereaders.
Writing forward-compatible websites - Developer guides
when using cutting-edge features (even standard ones) that are not universally implemented, make sure to test fallback paths make sure to test what happens in a browser that doesn't implement the feature you're using, especially if you don't use such a browser
day-to-
day while working on the site.
<header> - HTML: Hypertext Markup Language
examples page header <header> <h1>main page title</h1> <img src="mdn-logo-sm.png" alt="mdn logo"> </header> article header <article> <header> <h2>the planet earth</h2> <p>posted on wednes
day, <time datetime="2017-10-04">4 october 2017</time> by jane smith</p> </header> <p>we live on a planet that's blue and green, with so many things still unseen.</p> <p><a href="https://janesmith.com/the-planet-earth/">continue reading....</a></p> </article> specifications specification status comment html living standardthe definition of '<header>' in that speci...
<isindex> - HTML: Hypertext Markup Language
in 2016, after it was removed from edge and chrome, it was proposed to remove isindex from the standard; this removal was completed the next
day, after which safari and firefox also removed support.
<s> - HTML: Hypertext Markup Language
examples <s>to
day's special: salmon</s> sold out<br> <span style="text-decoration:line-through;">to
day's special: salmon</span> sold out accessibility concerns the presence of the s element is not announced by most screen reading technology in its default configuration.
<strike> - HTML: Hypertext Markup Language
example <strike>: <strike>to
day's special: salmon</strike> sold out<br /> <s>: <s>to
day's special: salmon</s> sold out the result of this code is: specifications specification status comment html5the definition of '<strike>' in that specification.
Evolution of HTTP - HTTP
the environment in which http is used to
day is quite different from that seen in the early 1990s.
Connection management in HTTP/1.x - HTTP
to
day, every http/1.1-compliant proxy and server should support pipelining, though many have limitations in practice: a significant reason no modern browser activates this feature by default.
Content-Encoding - HTTP
like the compress program, which has disappeared from most unix distributions, this content-encoding is not used by many browsers to
day, partly because of a patent issue (it expired in 2003).
Cookie2 - HTTP
the obsolete cookie2 http request header used to advise the server that the user agent understands "new-style" cookies, but nowa
days user agents will use the cookie header instead, not this one.
Index - HTTP
55 cookie2 http, obsolete, reference, header, request the obsolete cookie2 http request header used to advise the server that the user agent understands "new-style" cookies, but nowa
days user agents will use the cookie header instead, not this one.
Transfer-Encoding - HTTP
like the compress program, which has disappeared from most unix distributions, this content-encoding is used by almost no browsers to
day, partly because of a patent issue (which expired in 2003).
Firefox user agent string reference - HTTP
general form the ua string of firefox itself is broken down into four components: mozilla/5.0 (platform; rv:geckoversion) gecko/geckotrail firefox/firefoxversion mozilla/5.0 is the general token that says the browser is mozilla compatible, and is common to almost every browser to
day.
HTTP Index - HTTP
110 cookie2 http, obsolete, reference, header, request the obsolete cookie2 http request header used to advise the server that the user agent understands "new-style" cookies, but nowa
days user agents will use the cookie header instead, not this one.
OPTIONS - HTTP
access-control-max-age the above permissions may be cached for 86,400 seconds (1
day).
HTTP
web pages to
day very commonly load cross-site resources, including css stylesheets, images, scripts, and other resources.
Grammar and types - JavaScript
// basic literal string creation `in javascript '\n' is a line-feed.` // multiline strings `in javascript, template strings can run over multiple lines, but double and single quoted strings cannot.` // string interpolation var name = 'bob', time = 'to
day'; `hello ${name}, how are you ${time}?` // construct an http request prefix used to interpret the replacements and construction post`http://foo.org/bar?a=${a}&b=${b} content-type: application/json x-credentials: ${credentials} { "foo": ${foo}, "bar": ${bar}}`(myonreadystatechangehandler); you should use string literals unless you specifically need to use a string object.
JavaScript modules - JavaScript
a background on modules javascript programs started off pretty small — most of its usage in the early
days was to do isolated scripting tasks, providing a bit of interactivity to your web pages where needed, so large scripts were generally not needed.
Assertions - JavaScript
for example, /\bon/ matches "on" in "at noon", and /ye\b/ matches "ye" in "possibly yester
day".
Using Promises - JavaScript
in the old
days, doing several asynchronous operations in a row would lead to the classic callback pyramid of doom: dosomething(function(result) { dosomethingelse(result, function(newresult) { dothirdthing(newresult, function(finalresult) { console.log('got the final result: ' + finalresult); }, failurecallback); }, failurecallback); }, failurecallback); with modern functions, we attach our...
Default parameters - JavaScript
llsomething() // 1 callsomething() // 2 earlier parameters are available to later default parameters parameters defined earlier (to the left) are available to later default parameters: function greet(name, greeting, message = greeting + ' ' + name) { return [name, greeting, message] } greet('david', 'hi') // ["david", "hi", "hi david"] greet('david', 'hi', 'happy birth
day!') // ["david", "hi", "happy birth
day!"] this functionality can be approximated like this, which demonstrates how many edge cases are handled: function go() { return ':p' } function withdefaults(a, b = 5, c = b, d = go(), e = this, f = arguments, g = this.value) { return [a, b, c, d, e, f, g] } function withoutdefaults(a, b, c, d, e, f, g) { switch (arguments.len...
Date.prototype.getFullYear() - JavaScript
var to
day = new date(); var year = to
day.getfullyear(); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getfullyear' in that specification.
Date.prototype.getMilliseconds() - JavaScript
examples using getmilliseconds() the following example assigns the milliseconds portion of the current time to the variable milliseconds: var to
day = new date(); var milliseconds = to
day.getmilliseconds(); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getmilliseconds' in that specification.
Date.prototype.getTime() - JavaScript
// since month is zero based, birth
day will be january 10, 1995 var birth
day = new date(1994, 12, 10); var copy = new date(); copy.settime(birth
day.gettime()); measuring execution time subtracting two subsequent gettime() calls on newly generated date objects, give the time span between these two calls.
Date.prototype.getUTCFullYear() - JavaScript
var to
day = new date(); var year = to
day.getutcfullyear(); specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getutcfullyear' in that specification.
Date.prototype.toISOString() - JavaScript
nction() { return this.getutcfullyear() + '-' + pad(this.getutcmonth() + 1) + '-' + pad(this.getutcdate()) + 't' + pad(this.getutchours()) + ':' + pad(this.getutcminutes()) + ':' + pad(this.getutcseconds()) + '.' + (this.getutcmilliseconds() / 1000).tofixed(3).slice(2, 5) + 'z'; }; })(); } examples using toisostring() let to
day = new date('05 october 2011 14:48 utc') console.log(to
day.toisostring()) // returns 2011-10-05t14:48:00.000z the above example uses parsing of a non–standard string value that may not be correctly parsed in non–mozilla browsers.
Intl.DateTimeFormat.prototype.formatRange() - JavaScript
let date1 = new date(date.utc(2007, 0, 10, 10, 0, 0)); let date2 = new date(date.utc(2007, 0, 10, 11, 0, 0)); let date3 = new date(date.utc(2007, 0, 20, 10, 0, 0)); // > 'wed, 10 jan 2007 10:00:00 gmt' // > 'wed, 10 jan 2007 11:00:00 gmt' // > 'sat, 20 jan 2007 10:00:00 gmt' let fmt1 = new intl.datetimeformat("en", { year: '2-digit', month: 'numeric',
day: 'numeric', hour: 'numeric', minute: 'numeric' }); console.log(fmt1.format(date1)); console.log(fmt1.formatrange(date1, date2)); console.log(fmt1.formatrange(date1, date3)); // > '1/10/07, 10:00 am' // > '1/10/07, 10:00 – 11:00 am' // > '1/10/07, 10:00 am – 1/20/07, 10:00 am' let fmt2 = new intl.datetimeformat("en", { year: 'numeric', month: 'short',
day: 'numeric' }); co...
Intl.DateTimeFormat.prototype.formatRangeToParts() - JavaScript
// { type: 'minute', value: '00', source: "startrange" }, // { type: 'literal', value: ' – ', source: "shared" }, // { type: 'hour', value: '11', source: "endrange" }, // { type: 'literal', value: ':', source: "endrange" }, // { type: 'minute', value: '00', source: "endrange" }, // { type: 'literal', value: ' ', source: "shared" }, // { type: '
dayperiod', value: 'am', source: "shared" } // ] specifications specification intl.datetimeformat.formatrangethe definition of 'formatrangetoparts()' in that specification.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
week
day era year month
day hour minute second timezonename the values resulting from format matching between the corresponding properties in the options argument and the available combinations and representations for date-time formatting in the selected locale.
Intl.Locale.prototype.numberingSystem - JavaScript
l numerals — may be algorithmic fullwide full width digits geor georgian numerals — algorithmic gong gunjala gondi digits gonm masaram gondi digits grek greek upper case numerals — algorithmic greklow greek lower case numerals — algorithmic gujr gujarati digits guru gurmukhi digits hani
days han-character
day-of-month numbering for lunar/other traditional calendars hanidec positional decimal system using chinese number ideographs as digits hans simplified chinese numerals — algorithmic hansfin simplified chinese financial numerals — algorithmic hant traditional chinese numerals — algorithmic hantfin traditional chi...
Object.prototype.__proto__ - JavaScript
warning: while object.prototype.__proto__ is supported to
day in most browsers, its existence and exact behavior has only been standardized in the ecmascript 2015 specification as a legacy feature to ensure compatibility for web browsers.
RegExp - JavaScript
using regular expression on multiple lines let s = 'please yes\nmake my
day!' s.match(/yes.*
day/); // returns null s.match(/yes[^]*
day/); // returns ["yes\nmake my
day"] using a regular expression with the sticky flag the sticky flag indicates that the regular expression performs sticky matching in the target string by attempting to match starting at regexp.prototype.lastindex.
JavaScript
this module gives you some fundamental background knowledge about how client-side frameworks work and how they fit into your toolset, before moving on to tutorial series covering some of to
day's most popular ones.
shortcuts - Web app manifests
examples the following is a list of shortcuts a calendar app might have: "shortcuts" : [ { "name": "to
day's agenda", "url": "/to
day", "description": "list of events planned for to
day" }, { "name": "new event", "url": "/create/event" }, { "name": "new reminder", "url": "/create/reminder" } ] specification specification status comment feedback web app manifestthe definition of 'shortcuts' in that specification.