2 overrides of Match
System.Management.Automation (2)
engine\MshMemberInfo.cs (2)
4189
public override ReadOnlyPSMemberInfoCollection<T>
Match
(string name, PSMemberTypes memberTypes)
4929
public override ReadOnlyPSMemberInfoCollection<T>
Match
(string name, PSMemberTypes memberTypes)
3 references to Match
System.Management.Automation (3)
engine\InternalCommands.cs (3)
705
_inputObject.Members.
Match
(_propertyOrMethodName, PSMemberTypes.All);
1024
_inputObject.Members.
Match
(
2492
ReadOnlyPSMemberInfoCollection<PSMemberInfo> members = _inputObject.Members.
Match
(_property, PSMemberTypes.All);


Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
Basic Popup
Your information will be kept private.
Shortcut to mainpage (dev)
Pest Information
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
This action cannot be undone.
Cancel
Report
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
This action cannot be undone.
Cancel
Report
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
This action cannot be undone.
Cancel
Report
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
This action cannot be undone.
Cancel
Report
Selector Menu
Login with Facebook
Report pest
Pest Information
Logout
SnapPest
This action cannot be undone.
Cancel
Report


Next: Removed Reader Syntax, Previous: Removed Argument Conventions, Up: Removed Language Features
The variables
char-font-limit , char-bits-limit , char-control-bit , char-meta-bit , char-super-bit , char-hyper-bit ,
and *break-on-warnings*
were removed.


This homemade freezer breakfast burrito brought to me by my most excellent sister-in-law. Yum.
5/20/2011, 10:14:45 AM
Favs: 0
Retweets: 0
link--- layout: tweet ---
This homemade freezer breakfast burrito brought to me by my most excellent sister-in-law. Yum.
5/20/2011, 10:14:45 AM
Favs: 0
Retweets: 0
link


Log4cxx components cannot make log4cxx logging calls. However, it is sometimes useful for the user to learn about what log4cxx is doing. You can enable log4cxx internal logging by calling the setInternalDebugging method.
All log4cxx internal debug calls go to standard output where as internal error messages are sent to standard error output. All internal messages are prepended with the string "log4cxx: ".
Static Public Member Functions | |
| static void | setInternalDebugging (bool enabled) |
| Allows to enable/disable log4cxx internal logging. | |
| static void | debug (const LogString &msg) |
| This method is used to output log4cxx internal debug statements. | |
| static void | debug (const LogString &msg, const std::exception &e) |
| static void | error (const LogString &msg) |
| This method is used to output log4cxx internal error statements. | |
| static void | error (const LogString &msg, const std::exception &e) |
| static void | setQuietMode (bool quietMode) |
| In quiet mode LogLog generates strictly no output, not even for errors. | |
| static void | warn (const LogString &msg) |
| This method is used to output log4cxx internal warning statements. | |
| static void | warn (const LogString &msg, const std::exception &e) |
|
|
|
|
|
This method is used to output log4cxx internal debug statements. Output goes to the standard output. |
|
|
|
|
|
This method is used to output log4cxx internal error statements. There is no way to disable error statements. Output goes to stderr. |
|
|
Allows to enable/disable log4cxx internal logging.
|
|
|
In quiet mode LogLog generates strictly no output, not even for errors.
|
|
|
|
|
|
This method is used to output log4cxx internal warning statements. There is no way to disable warning statements. Output goes to stderr. |


public class MarkerShapePainter extends java.lang.Object implements ShapePainter
| Modifier and Type | Field and Description |
|---|---|
protected Marker |
endMarker
End Marker
|
protected ExtendedShape |
extShape
The Shape to be painted.
|
protected Marker |
middleMarker
Middle Marker
|
protected Marker |
startMarker
Start Marker
|
| Constructor and Description |
|---|
MarkerShapePainter(java.awt.Shape shape)
Constructs a new
MarkerShapePainter that can be used to markers
on top of a shape. |
| Modifier and Type | Method and Description |
|---|---|
protected ProxyGraphicsNode |
buildEndMarkerProxy()
Builds a proxy
GraphicsNode for the input Marker to be
drawn at the end position. |
protected void |
buildMarkerGroup()
Builds a new marker group with the current set of markers.
|
protected ProxyGraphicsNode[] |
buildMiddleMarkerProxies()
Builds a proxy
GraphicsNode for the input
Marker to be drawn at the middle positions |
protected ProxyGraphicsNode |
buildStartMarkerProxy()
Builds a proxy
GraphicsNode for the input Marker to be
drawn at the start position |
Marker |
getEndMarker()
Returns the marker that shall be drawn at the last vertex of the given
shape.
|
ExtendedShape |
getExtShape()
Gets the Shape this shape painter is associated with as an
Extended Shape.
|
Marker |
getMiddleMarker()
Returns the marker that shall be drawn at every other vertex (not the
first or the last one) of the given shape.
|
java.awt.Shape |
getPaintedArea()
Returns the area painted by this shape painter.
|
java.awt.geom.Rectangle2D |
getPaintedBounds2D()
Returns the bounds of the area painted by this shape painter
|
protected java.awt.geom.Point2D |
getSegmentTerminatingPoint(double[] coords,
int segType)
Extracts the terminating point, depending on the segment type.
|
java.awt.Shape |
getSensitiveArea()
Returns the area covered by this shape painter (even if not painted).
|
java.awt.geom.Rectangle2D |
getSensitiveBounds2D()
Returns the bounds of the area covered by this shape painte
(even if not painted).
|
java.awt.Shape |
getShape()
Gets the Shape this shape painter is associated with.
|
Marker |
getStartMarker()
Returns the marker that shall be drawn at the first vertex of the given
shape.
|
boolean |
inPaintedArea(java.awt.geom.Point2D pt)
Returns true if pt is in the area painted by this shape painter
|
boolean |
inSensitiveArea(java.awt.geom.Point2D pt)
Returns true if pt is in the sensitive area.
|
double[] |
normalize(double[] v)
Normalizes the input vector.
|
void |
paint(java.awt.Graphics2D g2d)
Paints the specified shape using the specified Graphics2D.
|
void |
setEndMarker(Marker endMarker)
Sets the marker that shall be drawn at the last vertex of the given
shape.
|
void |
setMiddleMarker(Marker middleMarker)
Sets the marker that shall be drawn at every other vertex (not the first
or the last one) of the given shape.
|
void |
setShape(java.awt.Shape shape)
Sets the Shape this shape painter is associated with.
|
void |
setStartMarker(Marker startMarker)
Sets the marker that shall be drawn at the first vertex of the given
shape.
|
protected ExtendedShape extShape
protected Marker startMarker
protected Marker middleMarker
protected Marker endMarker
public MarkerShapePainter(java.awt.Shape shape)
MarkerShapePainter
that can be used to markers
on top of a shape.shape
- Shape to be painted by this painter.
Should not be nullpublic void paint(java.awt.Graphics2D g2d)
paint
in interface ShapePainter
g2d
- the Graphics2D to usepublic java.awt.Shape getPaintedArea()
getPaintedArea
in interface ShapePainter
public java.awt.geom.Rectangle2D getPaintedBounds2D()
getPaintedBounds2D
in interface ShapePainter
public boolean inPaintedArea(java.awt.geom.Point2D pt)
inPaintedArea
in interface ShapePainter
public java.awt.Shape getSensitiveArea()
getSensitiveArea
in interface ShapePainter
public java.awt.geom.Rectangle2D getSensitiveBounds2D()
getSensitiveBounds2D
in interface ShapePainter
public boolean inSensitiveArea(java.awt.geom.Point2D pt)
inSensitiveArea
in interface ShapePainter
public void setShape(java.awt.Shape shape)
setShape
in interface ShapePainter
shape
- new shape this painter should be associated with.
Should not be null.public ExtendedShape getExtShape()
public java.awt.Shape getShape()
getShape
in interface ShapePainter
public Marker getStartMarker()
public void setStartMarker(Marker startMarker)
startMarker
- the start markerpublic Marker getMiddleMarker()
public void setMiddleMarker(Marker middleMarker)
middleMarker
- the middle markerpublic Marker getEndMarker()
public void setEndMarker(Marker endMarker)
endMarker
- the end markerprotected void buildMarkerGroup()
protected ProxyGraphicsNode buildStartMarkerProxy()
GraphicsNode
for the input Marker
to be
drawn at the start positionprotected ProxyGraphicsNode buildEndMarkerProxy()
GraphicsNode
for the input Marker
to be
drawn at the end position.protected ProxyGraphicsNode[] buildMiddleMarkerProxies()
GraphicsNode
for the input
Marker
to be drawn at the middle positionspublic double[] normalize(double[] v)
protected java.awt.geom.Point2D getSegmentTerminatingPoint(double[] coords, int segType)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.


Dear New eMarketer Daily Reader,
Welcome to eMarketer. Your first issue of the eMarketer Daily Newsletter will arrive within two days – but if you didn’t subscribe, or received this message in error, you can cancel here:
<EMAIL_ADDRESS>If you want to change your address or unsubscribe from the eMarketer Daily Newsletter or eMarketer FYI at a later date, a link is provided at the bottom of each issue.
As a subscriber to the eMarketer Daily Newsletter, you will also occasionally receive information about key industry reports that we publish, webinars we are hosting and other insight and analysis relevant to your business.
Access to eMarketer’s complete coverage—featuring data, estimates and case studies curated from thousands of interviews and data sources, as well as context from eMarketer’s full-length reports—requires an eMarketer corporate subscription. To find out if your company is already one of the leading brands, agencies and media companies that rely on eMarketer, or to learn how your company can join them, you can call<PHONE_NUMBER> or request more information here: https://www.emarketer.com/Corporate/inquire.aspx?ecid=8ab72ff4cf564f2e91b5debc9b9bfd6f
Thank you for subscribing to the eMarketer Daily Newsletter.
The Editors
eMarketer
www.emarketer.com
@emarketer
© 2012 eMarketer, Inc.


Vacation Location Selector
Answer the questions below to find your vacation paradise!
Choose the type of place!
Mountains
Beaches
History
When will you be going?
Winter
Spring/Summer
Fall
Choose your preferred activities!
Skiing
Hiking/Kayaking
Museums
What is your budget?
$1500 - $2500
< $1500
> $2500.00
Choose an activity level
High
Moderate
Low
Submit
Book your tickets for Honolulu!
Book your tickets for Rome!
Book your tickets for Aspen!


In this text field, specify the fully qualified path to your Gant installation, or click the ellipsis button, and select the desired directory in the dialog that opens.


This application runs entirely within your browser. As such, no user data is ever sent to our server, and is not stored.
As this application is designed to allow you to manage your YouTube playlists, we require an access token (OAuth 2.0) with authorisation to manage your YouTube account. This token may be stored in browser storage (localStorage) to reduce logins, on explicit user request. At no point is this token ever sent to our or any third-party server apart from the YouTube Data API as detailed below.
This application uses the following third-party services:
We use Cloudflare as a reverse proxy to provide faster page loads and protect us from DDOS attacks. In this capacity, they may store and analyse your IP address. Please refer to Cloudflare's privacy policy for full details.
We use the YouTube Data API to access your YouTube account, in order to retrieve and edit your playlists. All actions taken (especially which videos are in each playlist) will be visible to YouTube, and therefore Google.
Additionally, your IP address may be recorded in webserver logs. This is to allow us to identify and block any attackers. At no point is this IP address linked to your YouTube account - your YouTube account is not sent to our servers.


title: FormAssembly….capture info quickly link: http://www.flamelily.co.uk/2010/07/formassembly-capture-info-quickly/ author: admin description: post_id: 96 created: 2010/07/20 16:59:02 created_gmt: 2010/07/20 15:59:02 comment_status: open post_name: formassembly-capture-info-quickly status: publish post_type: post
Being playing around with FormAssembly recently with some sucess. This is a great tool for online forms and data collection. They have a Salesforce app, Wordpress app and a Google sites tool. Not only that, but they offer a free trial and host the form for you. If you want to get technical you can even download the HTML for use on your own site. This is a great way of creating many forms or questionnaires to capture info quickly and easily, as their form builder is simple to understand and has some great ways you can customise all parts of your form. No software to install just a web app that works. With a free trial account with some limitations its worth giving it a go if you need to capture any kind of information.
Drew: Hello! Thanks for the mention. We always enjoy seeing people make clean forms with our product. Besides the Google Sites integration, we also let you export to Google Spreadsheets, and use HTTP POST to send data to scripts. If you’ve got any questions, give us an email.


Archives
Synergyzer is a bi-monthly magazine that has become the voice of the advertising and marketing industry of Pakistan.
Synergyzer is a bi-monthly magazine that has become the voice of the advertising and marketing industry of Pakistan.
© Copyrights All Rights Reserved 2021


Towards a better understanding of streaming PCA (Yuanzhi Li)
Posted: 2016-05-10 , Modified: 2016-05-10
Tags: pca
Posted: 2016-05-10 , Modified: 2016-05-10
Tags: pca
Given data \(x_i\in \R^d\) sampled from an unknown distribution with \(\E[x_ix_i^T]=X\), where \(x\)’s are independent, compute top \(k\) eigenvectors of \(X\).
(For the asymmetric \(xy^T\) case, finding the top \(k\) is harder.)
Normal SVD is not memory efficient; you need to store a \(d\times d\) matrix. Goal: compute \(k\)-SVD in space \(O(kd)\).
A popular heuristic is to start with a random initial matrix \(U_0\in \R^{d\times k}\). On receiving \(x_i\), update \(U_i=(I+\eta_i x_ix_i^T)U_{i-1}\) and let \(U_i=QR(U)\) (orthogonalization). Let \(\eta_i\sim \rc{i}\). (Orthogonalization is not a projection. It’s a retraction onto the manifold.)
This works very well in practice but it’s complicated to analyze from a theoretical point of view.
Let \(g=\si_k-\si_{k+1}\). The bound is \(\fc{k}{g^3T}\). We use the measure \(\E\ba{\ve{W^TU}_F^2}\) (projection to last \(k\) singular values. \(U\) is the output, \(W\) has the last \(d-k\) singular values).
(Rank 1 is just gradient descent; there is no projection.)
Consider the offline case first: we get \(X\) directly instead of \(x_ix_i^T\). The algorithm is analogous to the subspace power method.
We can do the QR decomposition in the last step. It seems nonlinear, how can it commute? In practice you need to do QR decomposition for numerical accuracy. “To TCS people” you can move QR decomposition to the end.
Analysis: Let \(U_i = UR, U_{i+1} = U'R'\). Then \(U_{i+1} = (I+\eta_{i+1}X)(I+\eta_iX) U_{i-1}RR'\).
(For a regret bound, you can’t do this.)
This is how subspace QR is proved: you push everything to the end.
Let \(V\) contain the top \(k\) eigenvectors and \(W\) the rest. Suppose \(v_i=e_i\). Then for \(P_t=\prod (I+\eta_{t-i}X)\), \(P_t=\smatt{\text{large}}00{\text{small}}\). Multiplying by a random initialization gives \((\text{large}\,\text{small})^T\).
In the online setting, let \(P_t=(I+\eta_{t-i}x_{t-i}x_{t-i}^T)\). The offdiagonal part \(W_t^TP_tV\) is small compared to the diagonal part.
Attempt 2: show concentration. But it doesn’t work because it’s a product, not a sum. It doesn’t even concentrate in the multiplicative scale.
Why? Suppose \(k=1\). Think of \(X\) as diagonal matrix with first eigenvale large and rest small. \((I+\eta e_1e_1^T)e_1e_1^T\). There is some chance that \(x_t\) has some weight in the first and last entry. Then the \((1,d)\) entry of the product is \(\rc{4}\eta_t\).
Unlike the offline setting, \(x_t\) is not perfectly aligned with the eigenspace of \(X\); it can grab something from the eigenvector.Try induction. Suppose \(P_tP_t^T\succ c_tI\). Then \(\E (P_{t+1}P_{t+1}^T) > c_t(I + \eta_{t+1}X)\). \(\si_{\min}\) is not concave; we don’t have \(\E[\si_{\min}(A)]>\si_{\min}[\E(A)]\). (Counterexample: take \(A=e_ie_i^T\) w.p. \(\rc d\).) Min singular value is not a good induction hypothesis. Summarize \(P_t\) with a number. Let \(f:\) matrix \(\to\) value.
When you try to solve a hard problem, just write down the conditions. –Yin-Tat.
“The ideal girlfriend”: \(f(P_t)\)Rank 1 update lemma: Let \(A\) be a symmetric matrix. Then \(\E[f(A+uu^T)]>f(A) + \si_{\min}(\E(uu^T))\).
Apply this on \(P_{t+1}\) vs. \(P_t\). Prove the theorem by martingale concentration.Bound \(W^TP_tW\) term. Using trace? But \(W^TP_tW\) is not small at all. \(W^TP_tW\) “mixes” with \(V^TP_tV\); it can’t interlace.
Remove influence of \(V^TP_tV\) from \(W^TP_tW\).
But they are not the same dimension.
Use random initialization: whp \(W^TP_tW(W^TQ)(V^TP_tQ)^{-1}\) is small.


I am an artist, designer, and writer living in North Carolina. While I specialize in portrait painting (acrylic, watercolor, and digital), I also have extensive experience with design for print and web. I have written short stories, a novel, and am working on multiple webcomics. I'm currently directing a print department for an art company, and reteaching/updating my coding and web design knowledge when I'm not doing all the other things!
I have extensive experience with Photoshop and other Adobe software, as well as digital printing rip software. I know HTML, CSS, and some JavaScript (it's a work in progress!).
Check me out elsewhere around the web! Instagram


Using a combination of PsExec and PowerShell, I created a script to launch mutiple browsers on different laptops. This was a short project I did for a computer lab teacher in my children’s elementary school. This script uses pop ups for data entry.
Warning: The password for an admin account is sent in clear text to acheive this.
The script uses 4 main components to achieve this:
First off, lets create a pop up greeting the user :) I called my program Mass Launch.
Part 2:
Next, we will prompt the user for the website to be sent to the PCs. If the user doesn’t provide a website, the script will end with an error message.
Part 3:
The following part of the script pulls the current domain, and the fills the $pcs array with the computer names. The if statement checks for the pcs to be seperated by 1 space only. The suggested format for the pc text file is as follows: KCSHDB64Z1 KCSG5ZL4Z1 KCS18F54Z1
Part 4:
Finally, the list of PCs is iterrated through launching Chrome with the provided site! This part of the script requires the username and password of an administrator account.
For those who are just looking for the source code, you may copy from below or download it from my repo. Thanks, and happy scripting!


So after shooting in the dark for a bit, I finally got this plug-in working.
Note: You have to disable "Award Improvements" in the better battlelog settings.
This code allows you to change the order of the medals and ribbons.
If you want to try out my layout, here is a link to my plug-in:
https://dl.dropbox.com/s/jgrkcfz9q6t48ii/Awards-2.0.js
/**
/**
Award optimization 2.0
@author KillerKooK
@version 1.3
Change log:
1.2 The medal and ribbon lists can now be ordered individually. Removed the typo fix and put it into a separate plug-in.
1.3 Since battlelog changed the order of the medals and ribbons, the indexes need to be reorder.
To use, you must disable "Award Improvements" under the "Minor Improvements" in the better battlelog settings.
This plug-in allows you to change the order of the medals and ribbons.
/** Medal indexes
Assult rifle medal - 0
Carbine medal - 1
Light Machine gun medal - 2
Sniper rifle medal - 3
Shotgun medal - 5
PDW medal - 6
Handgun medal - 4
Melee medal - 7
Resupply medal - 32
Repair medal - 33
Medical medal - 34
Surveillance medal - 35
Transport warfare medal - 19
Armor warfare medal - 20
Air warfare medal - 21
Stationary emplacement medal - 22
Anti vehicle medal - 8
Accuracy medal - 9
Avenger medal - 10
Savior medal - 11
Nemesis medal - 12
Suppression medal - 13
MVP medal - 14
2nd MVP medal - 15
3rd MVP medal - 16
Ace Squad medal - 17
Combat efficiency medal - 18
Rush medal - 25
M-com Attacker medal - 23
M-com Defender medal - 24
Conquest medal - 26
Flag attacker medal - 30
Flag defender medal - 31
Team Deathmatch medal - 27
Squad Rush medal - 28
Squad Deathmatch medal - 29
Tank Superiority medal - 50
Domination medal - 51
Gun master medal - 52
US Marines service medal - 40
RU Army service medal - 41
Assault service medal - 42
Engineer service medal - 43
Support service medal - 44
Recon service medal - 45
Tank service medal - 46
Helicopter service medal - 47
Jet service medal - 48
Stationary service medal - 49
M18 Claymore medal - 38
Mortar medal - 36
Laser Designator medal - 37
Radio Beacon medal - 39
Ribbon indexes
Assult rifle ribbon - 0
Carbine ribbon - 1
Light Machine gun ribbon - 2
Sniper rifle ribbon - 3
Shotgun ribbon - 5
PDW ribbon - 6
Handgun ribbon - 4
Melee ribbon - 7
Resupply ribbon - 41
Repair ribbon - 42
Medical ribbon - 43
Surveillance ribbon - 44
Transport warfare ribbon - 23
Armor warfare ribbon - 24
Air warfare ribbon - 25
Stationary emplacement ribbon - 26
Disable vehicle ribbon - 8
Anti vehicle ribbon - 9
Accuracy ribbon - 10
Avenger ribbon - 11
Savior ribbon - 12
Nemesis ribbon - 13
Suppression ribbon - 14
MVP ribbon - 15
2nd MVP ribbon - 16
3rd MVP ribbon - 17
Ace Squad ribbon - 18
Combat efficiency ribbon - 19
Rush ribbon - 34
Rush winner ribbon - 29
M-com Attacker ribbon - 27
M-com Defender ribbon - 28
Conquest ribbon - 35
Conquest winner ribbon - 30
Flag attacker ribbon - 39
Flag defender ribbon - 40
Team deathmatch ribbon - 36
Team deathmatch winner ribbon - 31
Squad rush ribbon - 37
Squad Rush winner ribbon - 32
Squad deathmatch ribbon - 38
Squad Deathmatch winner ribbon - 33
Tank superiority winner ribbon - 45
Domination winner ribbon - 46
Gun master winner ribbon - 47
Squad spawn ribbon - 21
Squad wipe ribbon - 22
Anti explosives ribbon - 20
*/
var handler = function(){
if(!BBLog.storage("optimizeAwards") && window.location.href.match(/\/awards\//)){
var container = $("#profile-stats-awards-progression").not("[data-optimization]");
if(container.size()){
container.attr("data-optimization", true);
var all = container.find(".profile-stats-awards-progression-body");
all.prepend('');
var allItems = container.find(".profile-stats-unlock-progression-kit-item");
var med = all.eq(0);
var rib = all.eq(1);
//EDIT MEDAL ORDER HERE
var medals = [0, 1, 2, 3, 5, 6, 4, 7, 32, 33, 34, 35, 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 25, 23, 24, 26, 30, 31, 27, 28, 29, 50, 51, 52, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 38, 36, 37, 39];
//EDIT RIBBON ORDER HERE
var ribbons = [0, 1, 2, 3, 5, 6, 4, 7, 41, 42, 43, 44, 23, 24, 25, 26, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 34, 29, 27, 28, 35, 30, 39, 40, 36, 31, 37, 32, 38, 33, 45, 46, 47, 21, 22, 20];
//medals that are earned by time have a percent
medPercent = [40, 41, 42, 43, 44, 45, 46, 47, 48, 49];
//medals that arn't earned by ribbons or time
medOther = [36, 37, 38, 39];
// mapping medals to ribbons
var medToRib = { 0 : 0, 1 : 1, 2 : 2, 3 : 3, 4 : 4, 5 : 5, 6 : 6, 7 : 7, 8 : 9,
9 : 10, 10 : 11, 11 : 12, 12 : 13, 13 : 14, 14 : 15, 15 : 16, 16 : 17, 17 : 18,
18 : 19, 19 : 23, 20 : 24, 21 : 25, 22 : 26, 23 : 27, 24 : 28, 25 : 29, 26 : 30,
27 : 31, 28 : 32, 29 : 33, 30 : 39, 31 : 40, 32 : 41, 33 : 42, 34 : 43, 36 : 44,
50 : 45, 51 : 46, 52 ];
var appendElementsRib = [];
for (i = 0; i ")[2]
var neededCounts = parseInt(haveNeed.match(/\d+/g)[1]);
var haveCounts = parseInt(haveNeed.match(/\d+/g)[0]);
var required = neededCounts - haveCounts;
required = isNaN(required) || required == 0 ? neededCounts ]);
if (percNum '+perc+'');
}
//Link medals and ribbons that have matches.
if(medToRib[medIndex] >= 0) {
var ribEl = rib.find(".profile-stats-unlock-progression-kit-item]+")");
// on mouseenter highlight grouped entries
medEl.bind("mouseenter", {"ribEl" : ribEl}, function(ev){
var el = ev.data.ribEl;
allItems.removeClass("bblog-hovered-item");
el.addClass('bblog-hovered-item');
}).bind("mouseleave", function(ev){
allItems.removeClass("bblog-hovered-item");
});
// on mouseenter highlight grouped entries
ribEl.bind("mouseenter", {"medEl" : medEl}, function(ev){
var el = ev.data.medEl;
allItems.removeClass("bblog-hovered-item");
el.addClass('bblog-hovered-item');
}).bind("mouseleave", function(ev){
allItems.removeClass("bblog-hovered-item");
});
}
appendElementsMed.push(medEl);
}
for (i = 0; i ');
}
}
};
// add handler to the domchange list
BBLog.bindDomChange(handler);
// execute the handler once for immediate initialization
handler();


-
My Favorite Image
This is a picture of me and my best friend, Victoria. I met her at LBJC, which was my high school rowing club and we have been best friends ever since. This was taken last summer when we went moonlight kayaking together in Newport.
-
My Class Schedule
For the spring quarter of my second year, I am taking four classes. I am taking Cogs 3, HILD 2C, Econ 110B, and Econ 110A. Here is where you can find the class schedule that I made for one of this class's HTML assignments.
-
How to Use Filezilla (FTP)
To use Filezilla, you have to know the class server, which is icogsci1.ucsd.edu. Your username is "cg3s" + your two letters that were assigned to you. The password is the same as your school email password, and the port is 22. After that, you can view all your files on your local site, like your laptop, and transfer them to the remote site, which is your account on the class server.
-
My Favorite Recipe
My favorite thing to bake is banana bread with caramel sauce. It is really easy to make and tastes delicious. I made a webpage for the recipe, which can be found here.
-
Word & Excel
I'm glad that I got to do the Word and Excel assignments for this class, because I think learning those skills could be useful for the future. These assignments made me aware of the tools that were available in these programs. I now have gained skills that makes working in these programs much more efficient.
-
Favorite Assignment
My favorite assignment was the html table, because that was the first assignment that made me really enjoy the class. I had fun with the css sheet because I was able to focus on the appearance of the assignment, rather than just creating it, but creating it was fun too.
-
Least Favorite Assignment
My least favorite assignment was using LearnStreet to learn javascript. Learning javascript was fun, but the website caused lots of technical difficulties. Also, I thought some of the assignemnts were hard and I felt that the program didn’t prepared me enough beforehand for some of the assignemnts.
-
Next Step in Computers
I enjoyed this class so much that I plan on changing my major to cognitive science and specializing in human-computer interaction. I liked that the programming was challenging but rewarding at the same time, and I had a lot of fun designing everything.


Brown Skin Girl: Wizkid Wins Soul Train Songwriting Award
by Gbenga SijuadeThe Nigerian hip-hop star, Ayodeji Balogun aka Wizkid has won SoulTrain’s Ashford and Simpson Songwriters’ award.
Naija News understands that the ‘Ojuelegba’ singer earned the award for his collaboration with Beyonce, Blue Ivy Carter and Saint John on the sensational song of Beyonce’s ‘Lion Heart: The Gift’ album.
Wizkid shares the award with other credited songwriters including, Beyoncé Knowles, Carlos St. John, Adio Marchant and Shawn Carter.
Others are Stacy BartheAnathi Mnyango, Michael Uzowuru, Ayodeji Balogun and Richard Isong.
This was the third time Wizkid had made the nominees’ list for the prestigious award.


type HTMLTime interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTime // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTime // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTime // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTime // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTime // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTime // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTime // DateTime specifies the date and time. DateTime(v string) HTMLTime // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTime // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTime // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTime // ID specifies a unique id for an element. ID(v string) HTMLTime // Lang specifies the language of the element's content. Lang(v string) HTMLTime // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTime // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTime // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTime // Title specifies extra information about an element. Title(v string) HTMLTime // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTime // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTime // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTime // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTime // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTime // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTime // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTime // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTime // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTime // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTime // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTime // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTime // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTime // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTime // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTime // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTime // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTime // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTime // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTime // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTime // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTime // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTime // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTime // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTime // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTime // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTime // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTime // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTime // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTime // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTime // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTime // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTime }
HTMLTime is the interface that describes a <time> HTML element.
type HTMLTitle ¶
type HTMLTitle interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTitle // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTitle // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTitle // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTitle // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTitle // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTitle // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTitle // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTitle // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTitle // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTitle // ID specifies a unique id for an element. ID(v string) HTMLTitle // Lang specifies the language of the element's content. Lang(v string) HTMLTitle // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTitle // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTitle // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTitle // Title specifies extra information about an element. Title(v string) HTMLTitle }
HTMLTitle is the interface that describes a <title> HTML element.
type HTMLTr ¶
type HTMLTr interface { UI // Body set the content of the element. Body(elems ...UI) HTMLTr // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLTr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLTr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLTr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLTr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLTr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLTr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLTr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLTr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLTr // ID specifies a unique id for an element. ID(v string) HTMLTr // Lang specifies the language of the element's content. Lang(v string) HTMLTr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLTr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLTr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLTr // Title specifies extra information about an element. Title(v string) HTMLTr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLTr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLTr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLTr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLTr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLTr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLTr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLTr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLTr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLTr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLTr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLTr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLTr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLTr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLTr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLTr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLTr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLTr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLTr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLTr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLTr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLTr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLTr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLTr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLTr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLTr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLTr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLTr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLTr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLTr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLTr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLTr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLTr }
HTMLTr is the interface that describes a <tr> HTML element.
type HTMLU ¶
type HTMLU interface { UI // Body set the content of the element. Body(elems ...UI) HTMLU // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLU // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLU // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLU // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLU // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLU // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLU // Dir specifies the text direction for the content in an element. Dir(v string) HTMLU // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLU // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLU // ID specifies a unique id for an element. ID(v string) HTMLU // Lang specifies the language of the element's content. Lang(v string) HTMLU // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLU // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLU // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLU // Title specifies extra information about an element. Title(v string) HTMLU // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLU // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLU // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLU // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLU // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLU // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLU // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLU // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLU // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLU // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLU // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLU // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLU // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLU // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLU // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLU // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLU // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLU // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLU // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLU // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLU // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLU // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLU // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLU // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLU // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLU // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLU // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLU // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLU // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLU // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLU // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLU // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLU }
HTMLU is the interface that describes a <u> HTML element.
type HTMLUl ¶
type HTMLUl interface { UI // Body set the content of the element. Body(elems ...UI) HTMLUl // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLUl // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLUl // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLUl // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLUl // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLUl // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLUl // Dir specifies the text direction for the content in an element. Dir(v string) HTMLUl // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLUl // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLUl // ID specifies a unique id for an element. ID(v string) HTMLUl // Lang specifies the language of the element's content. Lang(v string) HTMLUl // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLUl // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLUl // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLUl // Title specifies extra information about an element. Title(v string) HTMLUl // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLUl // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLUl // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLUl // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLUl // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLUl // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLUl // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLUl // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLUl // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLUl // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLUl // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLUl // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLUl // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLUl // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLUl // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLUl // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLUl // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLUl // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLUl // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLUl // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLUl // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLUl // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLUl // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLUl // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLUl // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLUl // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLUl // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLUl // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLUl // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLUl // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLUl // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLUl // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLUl }
HTMLUl is the interface that describes a <ul> HTML element.
type HTMLVar ¶
type HTMLVar interface { UI // Body set the content of the element. Body(elems ...UI) HTMLVar // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLVar // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVar // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLVar // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLVar // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVar // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVar // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVar // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVar // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVar // ID specifies a unique id for an element. ID(v string) HTMLVar // Lang specifies the language of the element's content. Lang(v string) HTMLVar // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVar // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVar // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVar // Title specifies extra information about an element. Title(v string) HTMLVar // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLVar // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLVar // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLVar // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLVar // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLVar // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLVar // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLVar // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLVar // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLVar // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLVar // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLVar // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLVar // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLVar // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLVar // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLVar // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLVar // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLVar // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLVar // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLVar // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLVar // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLVar // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLVar // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLVar // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLVar // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLVar // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLVar // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLVar // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLVar // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLVar // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLVar // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLVar // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLVar }
HTMLVar is the interface that describes a <var> HTML element.
type HTMLVideo ¶
type HTMLVideo interface { UI // Body set the content of the element. Body(elems ...UI) HTMLVideo // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLVideo // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLVideo // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLVideo // AutoPlay specifies that the audio/video will start playing as soon as it is ready. AutoPlay(v bool) HTMLVideo // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLVideo // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLVideo // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc). Controls(v bool) HTMLVideo // CrossOrigin sets the mode of the request to an HTTP CORS Request. CrossOrigin(v string) HTMLVideo // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLVideo // Dir specifies the text direction for the content in an element. Dir(v string) HTMLVideo // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLVideo // Height specifies the height of the element (in pixels). Height(v int) HTMLVideo // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLVideo // ID specifies a unique id for an element. ID(v string) HTMLVideo // Lang specifies the language of the element's content. Lang(v string) HTMLVideo // Loop specifies that the audio/video will start over again, every time it is finished. Loop(v bool) HTMLVideo // Muted specifies that the audio output of the video should be muted. Muted(v bool) HTMLVideo // Poster specifies an image to be shown while the video is downloading, or until the user hits the play button. Poster(v string) HTMLVideo // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Preload(v string) HTMLVideo // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLVideo // Src specifies the URL of the media file. Src(v string) HTMLVideo // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLVideo // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLVideo // Title specifies extra information about an element. Title(v string) HTMLVideo // Width specifies the width of the element. Width(v int) HTMLVideo // OnAbort calls the given handler on abort. OnAbort(h EventHandler, scope ...interface{}) HTMLVideo // OnBlur calls the given handler when the element loses focus.  OnCanPlay(h EventHandler, scope ...interface{}) HTMLVideo // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering. OnCanPlayThrough(h EventHandler, scope ...interface{}) HTMLVideo // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLVideo // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLVideo // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLVideo // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLVideo // OnCueChange calls the given handler when the cue changes in a track element. OnCueChange(h EventHandler, scope ...interface{}) HTMLVideo // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLVideo // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLVideo // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLVideo // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLVideo // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLVideo // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLVideo // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLVideo // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLVideo // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLVideo // OnDurationChange calls the given handler when the length of the media changes. OnDurationChange(h EventHandler, scope ...interface{}) HTMLVideo // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects). OnEmptied(h EventHandler, scope ...interface{}) HTMLVideo // OnEnded calls the given handler when the media has reach the end. OnEnded(h EventHandler, scope ...interface{}) HTMLVideo // OnError calls the given handler when an error occurs. OnError(h EventHandler, scope ...interface{}) HTMLVideo // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLVideo // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLVideo // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLVideo // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLVideo // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded. OnLoadStart(h EventHandler, scope ...interface{}) HTMLVideo // OnLoadedData calls the given handler when media data is loaded. OnLoadedData(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLVideo // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLVideo // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLVideo // OnPause calls the given handler when the media is paused either by the user or programmatically. OnPause(h EventHandler, scope ...interface{}) HTMLVideo // OnPlay calls the given handler when the media is ready to start playing. OnPlay(h EventHandler, scope ...interface{}) HTMLVideo // OnPlaying calls the given handler when the media actually has started playing. OnPlaying(h EventHandler, scope ...interface{}) HTMLVideo // OnProgress calls the given handler when the browser is in the process of getting the media data. OnProgress(h EventHandler, scope ...interface{}) HTMLVideo // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). OnRateChange(h EventHandler, scope ...interface{}) HTMLVideo // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLVideo // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLVideo // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLVideo // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended. OnSeeked(h EventHandler, scope ...interface{}) HTMLVideo // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active. OnSeeking(h EventHandler, scope ...interface{}) HTMLVideo // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLVideo // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason. OnStalled(h EventHandler, scope ...interface{}) HTMLVideo // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLVideo // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason. OnSuspend(h EventHandler, scope ...interface{}) HTMLVideo // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media). OnTimeUpdate(h EventHandler, scope ...interface{}) HTMLVideo // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute"). OnVolumeChange(h EventHandler, scope ...interface{}) HTMLVideo // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data). OnWaiting(h EventHandler, scope ...interface{}) HTMLVideo // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLVideo // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded. OnloadedMetaData(h EventHandler, scope ...interface{}) HTMLVideo }
HTMLVideo is the interface that describes a <video> HTML element.
type HTMLWbr ¶
type HTMLWbr interface { UI // Body set the content of the element. Body(elems ...UI) HTMLWbr // Text sets the content of the element with a text node containing the stringified given value. Text(v interface{}) HTMLWbr // AccessKey specifies a shortcut key to activate/focus an element. AccessKey(v string) HTMLWbr // Aria stores accessible rich internet applications (ARIA) data. Aria(k string, v interface{}) HTMLWbr // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated. Class(v string) HTMLWbr // ContentEditable specifies whether the content of an element is editable or not. ContentEditable(v bool) HTMLWbr // DataSet stores custom data private to the page or application. DataSet(k string, v interface{}) HTMLWbr // Dir specifies the text direction for the content in an element. Dir(v string) HTMLWbr // Draggable specifies whether an element is draggable or not. Draggable(v bool) HTMLWbr // Hidden specifies that an element is not yet, or is no longer relevant. Hidden(v bool) HTMLWbr // ID specifies a unique id for an element. ID(v string) HTMLWbr // Lang specifies the language of the element's content. Lang(v string) HTMLWbr // Spellcheck specifies whether the element is to have its spelling and grammar checked or not. Spellcheck(v bool) HTMLWbr // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles. Style(k, v string) HTMLWbr // TabIndex specifies the tabbing order of an element. TabIndex(v int) HTMLWbr // Title specifies extra information about an element. Title(v string) HTMLWbr // OnBlur calls the given handler when the element loses focus. OnBlur(h EventHandler, scope ...interface{}) HTMLWbr // OnChange calls the given handler when the value of the element is changed. OnChange(h EventHandler, scope ...interface{}) HTMLWbr // OnClick calls the given handler when there is a mouse click on the element. OnClick(h EventHandler, scope ...interface{}) HTMLWbr // OnContextMenu calls the given handler when a context menu is triggered. OnContextMenu(h EventHandler, scope ...interface{}) HTMLWbr // OnCopy calls the given handler when the user copies the content of an element. OnCopy(h EventHandler, scope ...interface{}) HTMLWbr // OnCut calls the given handler when the user cuts the content of an element. OnCut(h EventHandler, scope ...interface{}) HTMLWbr // OnDblClick calls the given handler when there is a mouse double-click on the element. OnDblClick(h EventHandler, scope ...interface{}) HTMLWbr // OnDrag calls the given handler when an element is dragged. OnDrag(h EventHandler, scope ...interface{}) HTMLWbr // OnDragEnd calls the given handler at the end of a drag operation. OnDragEnd(h EventHandler, scope ...interface{}) HTMLWbr // OnDragEnter calls the given handler when an element has been dragged to a valid drop target. OnDragEnter(h EventHandler, scope ...interface{}) HTMLWbr // OnDragLeave calls the given handler when an element leaves a valid drop target. OnDragLeave(h EventHandler, scope ...interface{}) HTMLWbr // OnDragOver calls the given handler when an element is being dragged over a valid drop target. OnDragOver(h EventHandler, scope ...interface{}) HTMLWbr // OnDragStart calls the given handler at the start of a drag operation. OnDragStart(h EventHandler, scope ...interface{}) HTMLWbr // OnDrop calls the given handler when dragged element is being dropped. OnDrop(h EventHandler, scope ...interface{}) HTMLWbr // OnFocus calls the given handler when the element gets focus. OnFocus(h EventHandler, scope ...interface{}) HTMLWbr // OnInput calls the given handler when an element gets user input. OnInput(h EventHandler, scope ...interface{}) HTMLWbr // OnInvalid calls the given handler when an element is invalid. OnInvalid(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyDown calls the given handler when a user is pressing a key. OnKeyDown(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyPress calls the given handler when a user presses a key. OnKeyPress(h EventHandler, scope ...interface{}) HTMLWbr // OnKeyup calls the given handler when a user releases a key. OnKeyup(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseDown calls the given handler when a mouse button is pressed down on an element. OnMouseDown(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element. OnMouseMove(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseOut calls the given handler when the mouse pointer moves out of an element. OnMouseOut(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseOver calls the given handler when the mouse pointer moves over an element. OnMouseOver(h EventHandler, scope ...interface{}) HTMLWbr // OnMouseUp calls the given handler when a mouse button is released over an element. OnMouseUp(h EventHandler, scope ...interface{}) HTMLWbr // OnPaste calls the given handler when the user pastes some content in an element. OnPaste(h EventHandler, scope ...interface{}) HTMLWbr // OnReset calls the given handler when the Reset button in a form is clicked. OnReset(h EventHandler, scope ...interface{}) HTMLWbr // OnScroll calls the given handler when an element's scrollbar is being scrolled. OnScroll(h EventHandler, scope ...interface{}) HTMLWbr // OnSearch calls the given handler when the user writes something in a search field. OnSearch(h EventHandler, scope ...interface{}) HTMLWbr // OnSelect calls the given handler after some text has been selected in an element. OnSelect(h EventHandler, scope ...interface{}) HTMLWbr // OnSubmit calls the given handler when a form is submitted. OnSubmit(h EventHandler, scope ...interface{}) HTMLWbr // OnWheel calls the given handler when the mouse wheel rolls up or down over an element. OnWheel(h EventHandler, scope ...interface{}) HTMLWbr }
HTMLWbr is the interface that describes a <wbr> HTML element.
type Handler ¶
type Handler struct { // The page authors. Author string // A placeholder background color for the application page to display before // its stylesheets are loaded. // // DEFAULT: #2d2c2c. BackgroundColor string // The path of the static resources that the browser is caching in order to // provide offline mode. // // Note that Icon, Styles and Scripts are already cached by default. // // Paths are relative to the root directory. CacheableResources []string // The page description. Description string // The environment variables that are passed to the progressive web app. // // Reserved keys: // - GOAPP_VERSION // - GOAPP_GOAPP_STATIC_RESOURCES_URL Env Environment // The icon that is used for the PWA, favicon, loading and default not // found component. Icon Icon // The path of the default image that is used by social networks when // linking the app. Image string // The URLs that are launched in the app tab or window. // // By default, URLs with a different domain are launched in another tab. // Specifying internal URLs is to override that behavior. A good use case // would be the URL for an OAuth authentication. InternalURLs []string // The page keywords. Keywords []string // The text displayed while loading a page. LoadingLabel string // The name of the web application as it is usually displayed to the user. Name string // The cache that stores pre-rendered pages. // // Default is a LRU cache that keeps pages up to 24h and have a maximum size // of 8MB. PreRenderCache PreRenderCache // The static resources that are accessible from custom paths. Files that // are proxied by default are /robots.txt, /sitemap.xml and /ads.txt. ProxyResources []ProxyResource // Additional headers to be added in head element. RawHeaders []string // The paths or urls of the JavaScript files to use with the page. // // eg: // app.Handler{ // Scripts: []string{ // "/web/test.js", // Static resource // "https://foo.com/test.js", // External resource // }, // }, Scripts []string // The name of the web application displayed to the user when there is not // enough space to display Name. ShortName string // The resource provider that provides static resources. Static resources // are always accessed from a path that starts with "/web/". // // eg: // "/web/main.css" // // Default: LocalDir("") Resources ResourceProvider // The paths or urls of the CSS files to use with the page. // // eg: // app.Handler{ // Styles: []string{ // "/web/test.css", // Static resource // "https://foo.com/test.css", // External resource // }, // }, Styles []string // The theme color for the application. This affects how the OS displays the // app (e.g., PWA title bar or Android's task switcher). // // DEFAULT: #2d2c2c. ThemeColor string // The page title. Title string // The version number. This is used in order to update the PWA application // in the browser. It must be set when deployed on a live system in order to // prevent recurring updates. // // Default: Auto-generated in order to trigger pwa update on a local // development system. Version string // contains filtered or unexported fields }
Handler is an HTTP handler that serves an HTML page that loads a Go wasm app and its resources.
type Icon ¶
type Icon struct { // The path or url to a square image/png file. It must have a side of 192px. // // Path is relative to the root directory. Default string // The path or url to larger square image/png file. It must have a side of // 512px. // // Path is relative to the root directory. Large string // The path or url to a square image/png file that is used for IOS/IPadOS // home screen icon. It must have a side of 192px. // // Path is relative to the root directory. // // DEFAULT: Icon.Default AppleTouch string }
Icon describes a square image that is used in various places such as application icon, favicon or loading icon.
type Kind ¶
type Kind uint
Kind represents the specific kind of a user interface element.
const ( // UndefinedElem represents an undefined UI element. UndefinedElem Kind = iota // SimpleText represents a simple text element. SimpleText // HTML represents an HTML element. HTML // Component represents a customized, independent and reusable UI element. Component // Selector represents an element that is used to select a subset of // elements within a given list. Selector // RawHTML represents an HTML element obtained from a raw HTML code snippet. RawHTML )
type Mounter ¶
type Mounter interface { Composer // The function called when the component is mounted. It is always called on // the UI goroutine. OnMount(Context) }
Mounter is the interface that describes a component that can perform additional actions when mounted.
type MsgHandler ¶
type MsgHandler func(Context, interface{})
MsgHandler represents a handler to listen to messages sent with Context.Post.
type Navigator ¶
Navigator is the interface that describes a component that can perform additional actions when navigated on.
type Observer ¶
type Observer interface { // Defines a condition that reports whether the observer keeps observing the // associated state. Multiple conditions can be defined by successively // calling While(). While(condition func() bool) Observer // Executes the given function on the UI goroutine when the observed value // changes. Multiple functions can be executed by successively calling // OnChange(). OnChange(fn func()) Observer // Stores the value associated with the observed state into the given // receiver. Panics when the receiver is not a pointer or nil. // // The receiver is updated each time the associated state changes. It is // unchanged when its pointed value has a different type than the associated // state value. Value(recv interface{}) }
Observer is an observer that observes changes for a given state.
type Page ¶
type Page interface { // Returns the page title. Title() string // Sets the page title. SetTitle(string) // Returns the page description. Description() string // Sets the page description. SetDescription(string) // Returns the page author. Author() string // Sets the page author. SetAuthor(string) // Returns the page keywords. Keywords() string // Sets the page keywords. SetKeywords(...string) // Set the page loading label. SetLoadingLabel(string) // Returns the image used by social networks when linking the page. Image() string // Set the image used by social networks when linking the page. SetImage(string) // Returns the page URL. URL() *url.URL // Replace the the current page URL by the given one in the browser history. // // Does not work when pre-rendering. ReplaceURL(*url.URL) // Returns the page width and height in px. Size() (w int, h int) }
Page is the interface that describes a web page.
type PreRenderCache ¶
type PreRenderCache interface { // Get returns the item at the given path. Get(ctx context.Context, path string) (PreRenderedItem, bool) // Set stored the item at the given path. Set(ctx context.Context, i PreRenderedItem) }
PreRenderCache is the interface that describes a cache that stores pre-rendered resources.
func NewPreRenderLRUCache ¶
func NewPreRenderLRUCache(size int, itemTTL time.Duration, onEvict ...func(path string, i PreRenderedItem)) PreRenderCache
NewPreRenderLRUCache creates an in memory LRU cache that stores items for the given duration. If provided, on eviction functions are called when item are evicted.
type PreRenderedItem ¶
type PreRenderedItem struct { // The request path. Path string // The response content type. ContentType string // The response content encoding. ContentEncoding string // The response body. Body []byte }
PreRenderedItem represent an item that is stored in a PreRenderCache.
type PreRenderer ¶
type PreRenderer interface { // The function called when the component is server-side pre-rendered. // // If pre-rendering requires blocking operations such as performing an HTTP // request, ensure that they are done synchronously. A good practice is to // avoid using goroutines during pre-rendering. OnPreRender(Context) }
PreRenderer is the interface that describes a component that performs instruction when it is server-side pre-rendered.
A pre-rendered component helps in achieving SEO friendly content.
type ProxyResource ¶
type ProxyResource struct { // The URL path from where a static resource is accessible. Path string // The path of the static resource that is proxied. It must start with // "/web/". ResourcePath string }
ProxyResource is a proxy descriptor that maps a given resource to an URL path.
type RangeLoop ¶
type RangeLoop interface { UI // Slice sets the loop content by repeating the given function for the // number of elements in the source. // // It panics if the range source is not a slice or an array. Slice(f func(int) UI) RangeLoop // Map sets the loop content by repeating the given function for the number // of elements in the source. Elements are ordered by keys. // // It panics if the range source is not a map or if map keys are not strings. Map(f func(string) UI) RangeLoop }
RangeLoop represents a control structure that iterates within a slice, an array or a map.
type Resizer ¶
type Resizer interface { // The function called when the application is resized or a parent component // called its ResizeContent() method. It is always called on the UI // goroutine. OnResize(Context) }
Resizer is the interface that describes a component that is notified when the app has been resized or a parent component calls the ResizeContent() method.
type ResourceProvider ¶
type ResourceProvider interface { // Package returns the path where the package resources are located. Package() string // Static returns the path where the static resources directory (/web) is // located. Static() string // AppWASM returns the app.wasm file path. AppWASM() string }
ResourceProvider is the interface that describes a resource provider that tells the Handler how to locate and get the package and static resources.
Package resources are the resource required to operate go-app.
Static resources are resources such as app.wasm, CSS files, images.
The resource provider is used to serve static resources when it satisfies the http.Handler interface.
func CustomProvider ¶
func CustomProvider(path, prefix string) ResourceProvider
CustomProvider returns a resource provider that serves static resources from a local directory located at the given path and prefixes URL paths with the given prefix.
func GitHubPages ¶
func GitHubPages(repoName string) ResourceProvider
GitHubPages returns a resource provider that provides resources from GitHub pages. This provider must only be used to generate static websites with the GenerateStaticWebsite function.
func LocalDir ¶
func LocalDir(root string) ResourceProvider
LocalDir returns a resource provider that serves static resources from a local directory located at the given path.
func RemoteBucket ¶
func RemoteBucket(url string) ResourceProvider
RemoteBucket returns a resource provider that provides resources from a remote bucket such as Amazon S3 or Google Cloud Storage.
type ServerDispatcher ¶
type ServerDispatcher interface { Dispatcher // Consume executes all the remaining UI instructions. Consume() // ConsumeNext executes the next UI instructions. ConsumeNext() // Close consumes all the remaining UI instruction and releases allocated // resources. Close() // Pre-renders the given component. PreRender() }
ServerDispatcher is the interface that describes a dispatcher that emulates a server environment.
func NewServerTester ¶
func NewServerTester(n UI) ServerDispatcher
NewServerTester creates a testing dispatcher that simulates a client environment.
type State ¶
type State struct { // Reports whether the state is persisted in local storage. IsPersistent bool // Reports whether the state is encrypted before being persisted in local // storage. IsEncrypted bool // The time when the state expires. The state never expires when zero value. ExpiresAt time.Time // Reports whether a state is broadcasted to other browser tabs and windows. IsBroadcasted bool // contains filtered or unexported fields }
A state represents an observable value available across the app.
type StateOption ¶
type StateOption func(*State)
StateOption represents an option applied when a state is set.
func ExpiresAt ¶
func ExpiresAt(t time.Time) StateOption
ExpiresAt returns a state option that sets a state value to its zero value at the given time.
Values persisted to local storage with the Persist option are removed from it.
func ExpiresIn ¶
func ExpiresIn(d time.Duration) StateOption
ExpiresIn returns a state option that sets a state value to its zero value after the given duration.
Values persisted to local storage with the Persist option are removed from it.
type Tag ¶
Tag is a key-value pair that adds context to an action.
type Tagger ¶
type Tagger interface { // Returns a collection of tags. Tags() Tags }
Tagger is the interface that describes a collection of tags that gives context to something.
type Tags ¶
Tags represent key-value pairs that give context to what they are used with.
type TestUIDescriptor ¶
type TestUIDescriptor struct { // The location of the node. It is used by the TestMatch to find the // element to test. // // If empty, the expected UI element is compared with the root of the tree. // // Otherwise, each integer represents the index of the element to traverse, // from the root's children to the element to compare Path []int // The element to compare with the element targeted by Path. Compare // behavior varies depending on the element kind. // // Simple text elements only have their text value compared. // // HTML elements have their attribute compared and check if their event // handlers are set. // // Components have their exported field values compared. Expected UI }
TestUIDescriptor represents a descriptor that describes a UI element and its location from its parents.
type UI ¶
type UI interface { // Kind represents the specific kind of a UI element. Kind() Kind // JSValue returns the javascript value linked to the element. JSValue() Value // Reports whether the element is mounted. Mounted() bool // contains filtered or unexported methods }
UI is the interface that describes a user interface element such as components and HTML elements.
var ( // NotFound is the ui element that is displayed when a request is not // routed. NotFound UI = ¬Found{} )
func FilterUIElems ¶
FilterUIElems returns a filtered version of the given UI elements where selector elements such as If and Range are interpreted and removed. It also remove nil elements.
It should be used only when implementing components that can accept content with variadic arguments like HTML elements Body method.
type Updater ¶
type Updater interface { // The function called when one of the component exported fields is modified // by its nearest parent component. It is always called on the UI goroutine. OnUpdate(Context) }
Updater is the interface that describes a component that can do additional instructions when one of its exported fields is modified by its nearest parent component.
type Value ¶
type Value interface { // Bool returns the value v as a bool. It panics if v is not a JavaScript // boolean. Bool() bool // Call does a JavaScript call to the method m of value v with the given // arguments. It panics if v has no method m. The arguments get mapped to // JavaScript values according to the ValueOf function. Call(m string, args ...interface{}) Value // Float returns the value v as a float64. It panics if v is not a // JavaScript number. Float() float64 // Get returns the JavaScript property p of value v. It panics if v is not a // JavaScript object. Get(p string) Value // Index returns JavaScript index i of value v. It panics if v is not a // JavaScript object. Index(i int) Value // InstanceOf reports whether v is an instance of type t according to // JavaScript's instanceof operator. InstanceOf(t Value) bool // Int returns the value v truncated to an int. It panics if v is not a // JavaScript number. Int() int // Invoke does a JavaScript call of the value v with the given arguments. It // panics if v is not a JavaScript function. The arguments get mapped to // JavaScript values according to the ValueOf function. Invoke(args ...interface{}) Value // IsNaN reports whether v is the JavaScript value "NaN". IsNaN() bool // IsNull reports whether v is the JavaScript value "null". IsNull() bool // IsUndefined reports whether v is the JavaScript value "undefined". IsUndefined() bool // JSValue implements Wrapper interface. JSValue() Value // Length returns the JavaScript property "length" of v. It panics if v is // not a JavaScript object. Length() int // New uses JavaScript's "new" operator with value v as constructor and the // given arguments. It panics if v is not a JavaScript function. The // arguments get mapped to JavaScript values according to the ValueOf // function. New(args ...interface{}) Value // Set sets the JavaScript property p of value v to ValueOf(x). It panics if // v is not a JavaScript object. Set(p string, x interface{}) // SetIndex sets the JavaScript index i of value v to ValueOf(x). It panics // if v is not a JavaScript object. SetIndex(i int, x interface{}) // String returns the value v as a string. String is a special case because // of Go's String method convention. Unlike the other getters, it does not // panic if v's Type is not TypeString. Instead, it returns a string of the // form "<T>" or "<T: V>" where T is v's type and V is a string // representation of v's value. String() string // Truthy returns the JavaScript "truthiness" of the value v. In JavaScript, // false, 0, "", null, undefined, and NaN are "falsy", and everything else // is "truthy". See // https://developer.mozilla.org/en-US/docs/Glossary/Truthy. Truthy() bool // Type returns the JavaScript type of the value v. It is similar to // JavaScript's typeof operator, except that it returns TypeNull instead of // TypeObject for null. Type() Type // contains filtered or unexported methods }
Value is the interface that represents a JavaScript value. On wasm architecture, it wraps the Value from https://golang.org/pkg/syscall/js/ package.
func ValueOf ¶
func ValueOf(x interface{}) Value
ValueOf returns x as a JavaScript value:
| Go | JavaScript | | ---------------------- | ---------------------- | | js.Value | [its value] | | js.Func | function | | nil | null | | bool | boolean | | integers and floats | number | | string | string | | []interface{} | new array | | map[string]interface{} | new object |
Panics if x is not one of the expected types.
Source Files ¶
- action.go
- app.go
- cache.go
- component.go
- condition.go
- context.go
- contextmenu.go
- crypto.go
- dispatcher.go
- element.go
- engine.go
- html.go
- http.go
- js.go
- js_nowasm.go
- log.go
- node.go
- notfound.go
- page.go
- range.go
- raw.go
- resource.go
- route.go
- scripts.go
- state.go
- static.go
- storage.go
- strings.go
- tag.go
- testing.go
- text.go


--- title: Progressive Enhancement 2.0 excerpt: 'Progressive Enhancement 2.0 by Nicholas Zakas: http://t.co/qPCEeTnA. Great talk as usual from @slicknet' date: '2012-03-26 21:04:34 +0200' date_gmt: '2012-03-26 19:04:34 +0200' categories: - Webdev tags: - tweets - web - design - development ---
Progressive Enhancement 2.0 by Nicholas Zakas: http://t.co/qPCEeTnA. Great talk as usual from @slicknet