webXMPP

Check-in [83b7abbca1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fiddle with making "them" changes stand out
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:83b7abbca17c5229eb5d32749744248af36decf96f568c20ba7f672dea5ea3ea
User & Date: ajv-899-334-8894@vsta.org 2017-04-06 04:02:33
Context
2017-04-19
18:19
Split out so we can support Chrome via Google's proprietary messaging. check-in: 6645a08598 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-04-06
04:02
Fiddle with making "them" changes stand out check-in: 83b7abbca1 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-04-04
04:46
Some other update notes check-in: d8dc0821f8 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/ui.js.

183
184
185
186
187
188
189
190
191
192
193

194
195
196





197
198
199

200
201
202
203
204
205
206
	ourTexts.removeChild(ourTexts.lastChild);
    }

    // Add each message to the div as its own element
    let curThem = "";
    for (let i = 0; i < ourMsgs.length; ++i) {
	const m = ourMsgs[i];
	let l = "";

	// State who it is if it isn't the same as the
	//  line above.

	if (m.them != curThem) {
	    l = m.them + " ";
	    curThem = m.them;





	}

	// Message direction

	if (m.rx) {
	    l += "> ";
	} else {
	    l += "< ";
	}

	// Body







<



>

<

>
>
>
>
>



>







183
184
185
186
187
188
189

190
191
192
193
194

195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
	ourTexts.removeChild(ourTexts.lastChild);
    }

    // Add each message to the div as its own element
    let curThem = "";
    for (let i = 0; i < ourMsgs.length; ++i) {
	const m = ourMsgs[i];


	// State who it is if it isn't the same as the
	//  line above.
	// Bold'ed so it's easy to spot
	if (m.them != curThem) {

	    curThem = m.them;
	    const n = document.createTextNode(m.them);
	    const d = document.createElement("div");
	    d.appendChild(n);
	    d.style.fontWeight = "bold";
	    ourTexts.appendChild(d);
	}

	// Message direction
	let l = "";
	if (m.rx) {
	    l += "> ";
	} else {
	    l += "< ";
	}

	// Body