Changes to ratemyfocus.breckyunits.com

ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated basic.html
basic.html
Changed around line 357
- window.location = "https://buy.stripe.com/9AQ3fYgzfgHbguY5kP";
+ window.location = "https://buy.stripe.com/bIYdUC1El4Yt1A45kQ";
ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated basic.html
basic.html
Changed around line 7
-
Changed around line 94
+ .loading {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(255, 255, 255, 0.8);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ z-index: 1000;
+ }
Changed around line 130
-
- Calculate FocusRating (Basic)
-
+
Changed around line 145
- let embeddings = [];
- let projectedPoints = [];
Changed around line 174
- // Automatically trigger analysis
- calculateFocusArea();
- // Rest of the JavaScript remains the same
Changed around line 224
- function analyzeText() {
- const text = document.getElementById("textInput").value;
- embeddings = basicEmbedding(text);
- projectedPoints = simplePCA(embeddings);
- updateVisualization();
- }
-
- function analyzeTextPro() {
- window.location = "https://buy.stripe.com/9AQ3fYgzfgHbguY5kP";
- }
-
- function updateVisualization() {
+ function updateVisualization(
+ projectedPoints,
+ messages,
+ focusEmbedding = null,
+ ) {
- chart = new Chart(ctx, {
- type: "scatter",
- data: {
- datasets: [
+ const datasets = [
+ {
+ label: "Thoughts",
+ data: projectedPoints.map((point, index) => ({
+ x: point[0],
+ y: point[1],
+ message: messages[index],
+ })),
+ backgroundColor: "rgba(0, 102, 204, 0.5)",
+ },
+ ];
+
+ // Add focus point if provided
+ if (focusEmbedding) {
+ datasets.push({
+ label: "Target",
+ data: [
- label: "Thought Embeddings",
- data: projectedPoints.map((point) => ({
- x: point[0],
- y: point[1],
- })),
- backgroundColor: "rgba(0, 102, 204, 0.5)",
+ x: focusEmbedding[0],
+ y: focusEmbedding[1],
+ message: document.getElementById("focusThought").value,
- },
+ backgroundColor: "rgba(255, 0, 0, 0.8)",
+ pointRadius: 8,
+ });
+ }
+
+ chart = new Chart(ctx, {
+ type: "scatter",
+ data: { datasets },
Changed around line 275
+ plugins: {
+ tooltip: {
+ callbacks: {
+ label: function (context) {
+ return context.raw.message;
+ },
+ },
+ },
+ legend: {
+ display: true,
+ },
+ },
- function calculateFocusArea() {
- const focusThought = document
- .getElementById("focusThought")
- .value.toLowerCase();
- const text = document.getElementById("textInput").value;
- const lines = text
- .toLowerCase()
- .split(/\n+/)
- .filter((w) => w.length > 0);
+ function showLoading() {
+ const loadingDiv = document.createElement("div");
+ loadingDiv.className = "loading";
+ loadingDiv.id = "loadingIndicator";
+
+ const spinnerHTML = `
+
+
+ border-top: 4px solid #0066cc;
+ border-radius: 50%;
+ width: 40px;
+ height: 40px;
+ animation: spin 1s linear infinite;
+ margin: 0 auto;
+ margin-bottom: 10px;">
+
+
Analyzing...
+
+ `;
- const totalLines = lines.length;
- const hits = lines.filter((line) => line.includes(focusThought)).length;
- const focusRating = (100 * hits) / totalLines;
+ loadingDiv.innerHTML = spinnerHTML;
+ document.body.appendChild(loadingDiv);
+ }
- document.getElementById("results").innerHTML = `
-

RateMyFocus Results

-

Total Thoughts: ${totalLines}

-

FocusRating for ${focusThought}: ${focusRating.toFixed(0)}% 🔍

- `;
+ function hideLoading() {
+ const loadingDiv = document.getElementById("loadingIndicator");
+ if (loadingDiv) {
+ loadingDiv.remove();
+ }
+
+ function analyzeText() {
+ showLoading();
+
+ setTimeout(() => {
+ const text = document.getElementById("textInput").value;
+ const focusThought = document.getElementById("focusThought").value;
+ const lines = text.split(/\n+/).filter((line) => line.length > 0);
+
+ const totalLines = lines.length;
+ const hits = lines.filter((line) =>
+ line.toLowerCase().includes(focusThought.toLowerCase()),
+ ).length;
+
+ const focusRating = (100 * hits) / totalLines;
+
+ const embeddings = basicEmbedding(text);
+ const focusEmbedding = basicEmbedding(focusThought)[0];
+ const projectedPoints = simplePCA(embeddings);
+
+ const focusProjected = simplePCA([focusEmbedding])[0];
+
+ updateVisualization(projectedPoints, lines, focusProjected);
+
+ document.getElementById("results").innerHTML = `
+

RateMyFocus Results

+

Total Thoughts: ${totalLines}

+

FocusRating for ${focusThought}: ${focusRating.toFixed(1)}% 🔍

+

Using basic word matching

+ `;
+
+ hideLoading();
+ }, 100); // Small delay to ensure loading indicator shows even for quick operations
+ }
+
+ async function analyzeTextPro() {
+ window.location = "https://buy.stripe.com/9AQ3fYgzfgHbguY5kP";
+ }
+
+ // Add the spin animation to the existing style section
+ const styleSheet = document.styleSheets[0];
+ styleSheet.insertRule(
+ `
+ @keyframes spin {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(360deg); }
+ }
+ `,
+ styleSheet.cssRules.length,
+ );
ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated basic.html
basic.html
Changed around line 113
- own line. Emails, tweets, texts, etc, to calculate your RateMyFocus.
+ own line. Emails, tweets, texts, etc, to calculate your FocusRating.
- Calculate RateMyFocus (Basic)
+ Calculate FocusRating (Basic)
- Calculate RateMyFocus (Pro)
+ Calculate FocusRating (Pro)
ffff:72.234.190.31
ffff:72.234.190.31
2 months ago
Updated basic.html
basic.html
Changed around line 4
- content="https://thoughtfocus.breckyunits.com/og.png"
+ content="https://ratemyfocus.breckyunits.com/og.png"
- ThoughtFocus - Measure Your Focus By Your Words
+ RateMyFocus - Measure The Focus Of Your Published Thoughts
Changed around line 99
-

ThoughtFocus · Measure Your Focus by Your Words · TF = FT/T

+

+ RateMyFocus · Measure The Focus of Your Published Thoughts · FR = FT/T
+
Changed around line 112
- Paste everything you wrote today, each message or document on its own
- line. Emails, tweets, texts, etc, to calculate your ThoughtFocus.
+ Paste everything you published today, each message or document on its
+ own line. Emails, tweets, texts, etc, to calculate your RateMyFocus.
- Calculate ThoughtFocus (Basic)
+ Calculate RateMyFocus (Basic)
- Calculate ThoughtFocus (Pro)
+ Calculate RateMyFocus (Pro)
Changed around line 277
- const focusScore = (100 * hits) / totalLines;
+ const focusRating = (100 * hits) / totalLines;
-

ThoughtFocus Results

+

RateMyFocus Results

-

ThoughtFocus for ${focusThought}: ${focusScore.toFixed(0)}% 🔍

+

FocusRating for ${focusThought}: ${focusRating.toFixed(0)}% 🔍

ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 23
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 23
- opacity: 0.5;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 23
- opacity: 0.9;
+ opacity: 0.5;
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 24
+ background: gold;
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 22
+ .pro-button:hover {
+ opacity: 0.9;
+ color: black;
+ }
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 20
+ color: black;
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 64
- .pro-button {
- background: gold;
- }
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 19
- background: #gold;
+ background: gold;
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated basic.html
basic.html
Changed around line 65
- background: #gold;
+ background: gold;
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated index.scroll
index.scroll
Changed around line 1
- claude.html
+ basic.html
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Renamed claude.html to basic.html
basic.html
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated claude.html
claude.html
Changed around line 18
+ .pro-button {
+ background: #gold;
+ }
root
root
2 months ago
Added favicon.ico
favicon.ico
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated claude.html
claude.html
Changed around line 2
+
+ property="og:image"
+ content="https://thoughtfocus.breckyunits.com/og.png"
+ />
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated meta.scroll
meta.scroll
Changed around line 1
+ buildHtml
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated meta.scroll
meta.scroll
Changed around line 1
+ baseUrl https://thoughtfocus.breckyunits.com/
+ openGraphImage og.png
+
+ metaTags
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated meta.scroll
meta.scroll
root
root
2 months ago
Added og.png
og.png
root
root
2 months ago
Added tf.min.js
tf.min.js
Changed around line 1
+ /**
+ * @license
+ * Copyright 2023 Google LLC. All Rights Reserved.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =============================================================================
+ */
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).tf=e.tf||{})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=function(e){return e&&e.Math==Math&&e},a=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,l=u&&!s.call({1:2},1)?function(e){var t=u(this,e);return!!t&&t.enumerable}:s,c={f:l},p=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h={}.toString,f=function(e){return h.call(e).slice(8,-1)},d="".split,m=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?d.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return m(v(e))},y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},b=function(e,t){if(!y(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!y(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!y(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!y(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},x={}.hasOwnProperty,w=function(e,t){return x.call(e,t)},k=a.document,N=y(k)&&y(k.createElement),I=function(e){return N?k.createElement(e):{}},S=!o&&!i((function(){return 7!=Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,C={f:o?T:function(e,t){if(e=g(e),t=b(t,!0),S)try{return T(e,t)}catch(e){}if(w(e,t))return p(!c.f.call(e,t),e[t])}},E=function(e){if(!y(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,R={f:o?A:function(e,t,n){if(E(e),t=b(t,!0),E(n),S)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_=o?function(e,t,n){return R.f(e,t,p(1,n))}:function(e,t,n){return e[t]=n,e},O=function(e,t){try{_(a,e,t)}catch(n){a[e]=t}return t},F="__core-js_shared__",D=a[F]||O(F,{}),M=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(e){return M.call(e)});var L,z,P,B=D.inspectSource,W=a.WeakMap,V="function"==typeof W&&/native code/.test(B(W)),U=n((function(e){(e.exports=function(e,t){return D[e]||(D[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),G=0,j=Math.random(),H=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++G+j).toString(36)},q=U("keys"),K=function(e){return q[e]||(q[e]=H(e))},X={},Y=a.WeakMap;if(V){var J=D.state||(D.state=new Y),Z=J.get,Q=J.has,$=J.set;L=function(e,t){return t.facade=e,$.call(J,e,t),t},z=function(e){return Z.call(J,e)||{}},P=function(e){return Q.call(J,e)}}else{var ee=K("state");X[ee]=!0,L=function(e,t){return t.facade=e,_(e,ee,t),t},z=function(e){return w(e,ee)?e[ee]:{}},P=function(e){return w(e,ee)}}var te,ne,re={set:L,get:z,has:P,enforce:function(e){return P(e)?z(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!y(t)||(n=z(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ae=n((function(e){var t=re.get,n=re.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var s,u=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||w(i,"name")||_(i,"name",t),(s=n(i)).source||(s.source=r.join("string"==typeof t?t:""))),e!==a?(u?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=i:_(e,t,i)):l?e[t]=i:O(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||B(this)}))})),ie=a,oe=function(e){return"function"==typeof e?e:void 0},se=function(e,t){return arguments.length<2?oe(ie[e])||oe(a[e]):ie[e]&&ie[e][t]||a[e]&&a[e][t]},ue=Math.ceil,le=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?le:ue)(e)},pe=Math.min,he=function(e){return e>0?pe(ce(e),9007199254740991):0},fe=Math.max,de=Math.min,me=function(e,t){var n=ce(e);return n<0?fe(n+t,0):de(n,t)},ve=function(e){return function(t,n,r){var a,i=g(t),o=he(i.length),s=me(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},ge={includes:ve(!0),indexOf:ve(!1)},ye=ge.indexOf,be=function(e,t){var n,r=g(e),a=0,i=[];for(n in r)!w(X,n)&&w(r,n)&&i.push(n);for(;t.length>a;)w(r,n=t[a++])&&(~ye(i,n)||i.push(n));return i},xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=xe.concat("length","prototype"),ke={f:Object.getOwnPropertyNames||function(e){return be(e,we)}},Ne={f:Object.getOwnPropertySymbols},Ie=se("Reflect","ownKeys")||function(e){var t=ke.f(E(e)),n=Ne.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=Ie(t),r=R.f,a=C.f,i=0;i=74)&&(te=Le.match(/Chrome\/(\d+)/))&&(ne=te[1]);var We,Ve=ne&&+ne,Ue=!!Object.getOwnPropertySymbols&&!i((function(){return!Symbol.sham&&(Me?38===Ve:Ve>37&&Ve<41)})),Ge=Ue&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,je=Array.isArray||function(e){return"Array"==f(e)},He=function(e){return Object(v(e))},qe=Object.keys||function(e){return be(e,xe)},Ke=o?Object.defineProperties:function(e,t){E(e);for(var n,r=qe(t),a=r.length,i=0;a>i;)R.f(e,n=r[i++],t[n]);return e},Xe=se("document","documentElement"),Ye=K("IE_PROTO"),Je=function(){},Ze=function(e){return"
+
+
+
+
+
+

ThoughtFocus · Measure Your Focus by Your Words · TF = FT/T

+
+
+
+ type="text"
+ id="focusThought"
+ placeholder="What is your current focus? Try to describe in 1 word."
+ />
+
+

+ Paste everything you wrote today, each message or document on its own
+ line. Emails, tweets, texts, etc, to calculate your ThoughtFocus.
+

+
+
+
+
+
+ Calculate ThoughtFocus (Basic)
+
+
+ Calculate ThoughtFocus (Pro)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
ffff:24.165.26.201
ffff:24.165.26.201
2 months ago
Updated claude.html
claude.html
root
root
2 months ago
initial blank_template template
.gitignore
Changed around line 1
+ .DS_Store
+ *.html
+ *.txt
+ *.xml
+ *.css
+ *.js
+ *.csv
+ requests.scroll
index.scroll
Changed around line 1
+ buildHtml
+ theme roboto
+
+ Hello World my name is